1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

28146 Commits

Author SHA1 Message Date
benpicco
ec296f8439
Merge pull request #13756 from fjmolinas/pr_cc2538_timer_order
boards/common/cc2538/include: re-order timer config
2020-03-31 17:40:27 +02:00
Dylan Laduranty
6a788b3c02
Merge pull request #13761 from RIOT-OS/cpu/samd5x/rtc_workaround
cpu/samd5x: disable RTC on init to prevent undefined RTC state
2020-03-31 17:25:25 +02:00
Benjamin Valentin
2d14a328c4 board/common/saml1x: enable buck converter 2020-03-31 17:18:58 +02:00
Benjamin Valentin
895eb943d8 cpu/sam0_common: add cpu_pm_cb_enter()/leave()
This allows to implement needed work-arounds surrounding sleep on
a per-MCU basis.
2020-03-31 17:18:58 +02:00
Benjamin Valentin
005de7024b cpu/saml1x: enable buck voltage regulator
Switch from the on-chip LDO to the on-chip buck voltage regulator.
2020-03-31 17:18:58 +02:00
Benjamin Valentin
9b90fd478a cpu/sam0_common: provide function to switch voltage regulator
Add a fucntion to switch between LDO and Buck concerter to provide the
internal CPU voltage.
The Buck Converter is not compatible with internal fast oscillators (DFLL, DPLL)
and requires an inductivity to be present on the board.
2020-03-31 17:18:20 +02:00
benpicco
d5156d6da3
Merge pull request #13759 from benpicco/riotboot_flashwrite_t-stack
sys/riotboot: add a warning about the size of riotboot_flashwrite_t
2020-03-31 17:02:19 +02:00
Francisco
1a8b35f54b
Merge pull request #13377 from leandrolanzieri/pr/kconfig_migrate/drivers/periph_wdt
drivers/periph/wdt: Expose configurations to Kconfig
2020-03-31 16:36:36 +02:00
Dylan Laduranty
783ffdc28a
Merge pull request #13607 from benpicco/cpu/sam0_common/generic_RAM_ROM
cpu/sam0_common: derive ROM_LEN & RAM_LEN from part number
2020-03-31 15:55:04 +02:00
46b6a95309
Merge pull request #13671 from jia200x/pr/move_thread_flags_error
core/thread_flags: remove #error from header file
2020-03-31 15:48:41 +02:00
Benjamin Valentin
d12abe6a2b cpu/samd5x: disable RTC on init to prevent undefined RTC state
When changing the clock configuration while the RTC is running, the
RTC may end up in an undefined state that leaves it unresponsive.

The RTC is not reset to stay persistent across reboots/hibernate, so
it will not be reset on init.
Instead, disable the RTC while configuring the clocks, rtc_init() will
take care of re-enabling it.

@dylad introduced this workaround for saml21, samd5x needs it too.

To reproduce, set the CLOCK_CORECLOCK of a samd5x board (e.g. same54-xpro)
to 48 MHz.
Run any RTC application. The CPU will be stuck in _wait_syncbusy() after
a reboot.
This patch will fix this. (You will need to power-cycle the board if the
RTC has entered the stuck state as it will never be reset.)
2020-03-31 15:34:55 +02:00
benpicco
e7c1605119
Merge pull request #13691 from benpicco/tests/driver_netdev_common
tests/driver_netdev_common: add compile-test for network drivers
2020-03-31 14:50:28 +02:00
benpicco
97acdd94c5
Merge pull request #13677 from gschorcht/cpu/esp/esp_wifi/modem_sleep
cpu/esp_common: allow WiFi modem sleep mode
2020-03-31 14:15:06 +02:00
Leandro Lanzieri
f69427fcf7
cpu/saml1x: Add Kconfig file 2020-03-31 13:39:41 +02:00
Leandro Lanzieri
218f7bfe0c
cpu/saml21: Add Kconfig file 2020-03-31 13:39:41 +02:00
Leandro Lanzieri
daf38f2500
cpu/samd5x: Add Kconfig file 2020-03-31 13:39:40 +02:00
Leandro Lanzieri
c43543c21a
cpu/samd21: Add Kconfig file 2020-03-31 13:39:40 +02:00
Leandro Lanzieri
cf53a86308
cpu/sam0_common: Add CPU-specific WDT peripheral configuration 2020-03-31 13:39:39 +02:00
Leandro Lanzieri
e94f4a65a7
Kconfig: Optionally add CPU-specific symbols 2020-03-31 13:39:39 +02:00
Leandro Lanzieri
8cca9bfc28
drivers/wdt: Expose configuration to Kconfig 2020-03-31 13:39:38 +02:00
Leandro Lanzieri
00b71a2708
drivers/wdt: Move WDT_WARNING_PERIOD to 'CONFIG_' namespace 2020-03-31 13:39:37 +02:00
Benjamin Valentin
2867ab8b9b sys/riotboot: add a warning about the size of riotboot_flashwrite_t
On e.g. samd5x FLASHPAGE_SIZE is 8k (4k on kinetis, stm32w, nrf52)
so placing this struct on the stack will almost always cause a stack
overflow.
2020-03-31 13:27:05 +02:00
Gunar Schorcht
1505c105d2 cpu/esp32: allow WiFi modem sleep
Due to stability reasons, the SoftAP interface of the WiFi module was always enabled in former versions even if only the station interface was used. Therefore the WiFi modem had to be always active and the SoC could not enter the modem sleep mode. Therefore, the SoftAP interface is only enabled when ESP-NOW is used.
2020-03-31 13:17:23 +02:00
934f68ead8
Merge pull request #13094 from francois-berder/pic32-uart-3
UART RX implementation on PIC32 devices
2020-03-31 10:45:43 +02:00
9de2ff72a8
Merge pull request #10867 from kaspar030/uncrustify_core
core: uncrustify
2020-03-30 21:23:54 +02:00
8efe5960aa core: uncrustify 2020-03-30 17:02:08 +02:00
f99bc894de core: make some formatting uncrustify friendly (or ignore) 2020-03-30 17:00:32 +02:00
4a31068d15 core: disable uncrustify for atomic_*.c 2020-03-30 17:00:32 +02:00
Francisco Molina
8437673237
boards/common/cc2538/include: re-order timer config 2020-03-30 16:09:18 +02:00
Francisco
e738508308
Merge pull request #13195 from HendrikVE/shell-fix-longcmd
sys/shell: correctly detect and handle long lines
2020-03-30 13:37:17 +02:00
Hendrik van Essen
e38e3c5db9
tests/driver_pca9685: add atmega32u4 boards to Makefile.ci
fixed shell is too big for atmega32u4 based boards
2020-03-30 12:32:57 +02:00
Hendrik van Essen
a9b21ed911
tests/shell: remove redundant parentheses 2020-03-30 12:26:23 +02:00
Hendrik van Essen
68a35f53de
tests/shell: add test case for exceeding lines
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:23 +02:00
Hendrik van Essen
8a8416a6f6
tests/shell: fix test case for line cancelling
The test for the line cancellation (ctrl-c) functionality was unable to
detect error because of the way pexpect matches output.

While working on the long line shell bug, a regression was about to be
introduced because of this. This commit fixes the test by directly reading from
the child process and expects an exact response.

Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:22 +02:00
Hendrik van Essen
c1e3e613a5
tests/shell: check for shell prompt
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:22 +02:00
Hendrik van Essen
32d7c9b6b8
tests/shell: check for startup message
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:21 +02:00
Hendrik van Essen
393eadcfb9
tests/shell: avoid sending an extra empty line on native
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:21 +02:00
Hendrik van Essen
c8daf596c9
tests/shell: add test case for shell's buffer size
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:21 +02:00
Hendrik van Essen
3860355380
sys/shell: rephrase/reformat some comments 2020-03-30 12:26:20 +02:00
Juan Carrano
2810637306
sys/shell: correctly detect and handle long lines
The numeric value for EOF is -1. This caused the shell to return
the same code when EOF was encountered and when the line lenght was
exceeded. Additionally, if the line length is exceeded, the correct
behaviour is to consume the remaining characters until the end of
the line, to prevent the following line from containing (potentially
dangerous) garbage.

Co-authored-by: Hendrik van Essen <hendrik.ve@fu-berlin.de>
2020-03-30 12:26:20 +02:00
benpicco
bcdb693bd3
Merge pull request #10957 from kaspar030/add_pkg_libbase58
pkg: add pkg libbase58
2020-03-30 11:56:31 +02:00
Martine Lenders
889e8b7cf8
Merge pull request #13752 from gschorcht/sys/shell/fix_gnrc_netif
sys/shell: fix ifconfig command for NETOPT_LINK
2020-03-30 09:44:13 +02:00
Gunar Schorcht
8a1cfd99da sys/shell: fix ifconfig command for NETOPT_LINK 2020-03-30 09:01:21 +02:00
c526b11195 tests: add pkg_libbase58 test 2020-03-29 23:18:34 +02:00
d8751f79d4 pkg: add libbase58 2020-03-29 23:18:34 +02:00
Benjamin Valentin
611f4161d6 drivers/at86rf215: fix reset after deep sleep
When the radio is in DEEP SLEEP, reading the state register will return 0.
This makes the reset routine abort early even though the device is connected
and still waking up.

Instead, just add a timeout to the polling of the WAKEUP IRQ bit.
In practise it has shown that the loop will be taken two times on 'normal'
reset and four times when the radio was in DEEP SLEEP.

Polling 255 times sure does not hurt.

To reproduce the issue, put both interfaces into SLEEP mode,
then reboot the module:

    ifconfig 7 set state sleep
    ifconfig 8 set state sleep
    reboot
2020-03-29 19:44:40 +02:00
benpicco
7e85081ddc
Merge pull request #13748 from gschorcht/cpu/esp32/fix_wake_up_sources
cpu/esp32: fix wake-up sources for sleep modes
2020-03-29 17:38:54 +02:00
benpicco
48eaef7aa1
Merge pull request #13747 from gschorcht/boards/esp32-heltec-lora-v2
boards: define the interrupt flank for BTN0 for ESP32 Heltec Lora32 V2
2020-03-29 17:38:47 +02:00
Gunar Schorcht
85b18a1c10 cpu/esp32: fix wake-up sources for sleep modes
When entering a sleep mode, all wake-up sources should first be disabled before the wake-up sources required for the sleep mode are then stepwise enabled again. Otherwise, an wake-up configuration of one sleep mode may affect the wake-up within another sleep mode.
2020-03-29 12:55:50 +02:00
Gunar Schorcht
0c4fb6c092 boards/esp32-heltec-lora-v2: define BTN0_INT_FLANK 2020-03-29 11:59:17 +02:00