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

27440 Commits

Author SHA1 Message Date
Sören Tempel
5bb3b3dfea tests: add test for the mpu_noexec_ram pseudomodule
The Makefiles have been copied from the mpu_stack_guard test.
2020-03-10 11:16:22 +01:00
660b11261d
makefiles/dfu: remove unapplicable variables 2020-03-10 11:01:43 +01:00
Benjamin Valentin
5d8c00e302 cpu/cc2538: implement periph/pm
cc2538 implements 4 sleep modes.
In the lightest mode (3) any interrupt source can wake up the CPU.
In mode 2, only RTT, GPIO or USB may wake the CPU.
In mode 1 only RTT and GPIO can wake the CPU.
In mode 0 only GPIO can wake the CPU.

In mode 0 and 1 the lower 16k RAM are lost. This is a problem since those
are usually used by RIOT.

The linkerscripts in cc2538/ldscripts take different approaches towards that.
Some only use the upper 16k and leave the other half to be managed by the
application.

`cc2538sf53.ld` which is used by `openmote-b` uses the entire RAM starting
at the lower half, so it will not be able to wake up from those modes.

A quick fix to test those modes with `tests/periph_pm` would be

--- a/cpu/cc2538/ldscripts/cc2538sf53.ld
+++ b/cpu/cc2538/ldscripts/cc2538sf53.ld
@@ -21,7 +21,7 @@ MEMORY
 {
     rom (rx)    : ORIGIN = 0x00200000, LENGTH = 512K - 44
     cca         : ORIGIN = 0x0027ffd4, LENGTH = 44
-    ram (w!rx)  : ORIGIN = 0x20000000, LENGTH = 32K
+    ram (w!rx)  : ORIGIN = 0x20004000, LENGTH = 16K
 }
2020-03-10 10:35:46 +01:00
Alexandre Moguilevski
648a5b9c58 cpu/sam0_common: add samd21j17d 2020-03-10 10:26:45 +01:00
Francisco
1b5f22ec2e
Merge pull request #8410 from OTAkeys/pr/fix_stm32f1_boards
boards: fix CLOCK_PLL_PREDIV on stm32f1-based boards
2020-03-10 09:35:48 +01:00
benpicco
82b96ff831
Merge pull request #13592 from aydoganersoz/qcbor_pkg_add
pkg/qcbor: Add QCBOR package
2020-03-09 21:48:15 +01:00
Dylan Laduranty
87ee82afd3
Merge pull request #13601 from benpicco/sam0-disable-mux
cpu/sam0_common: gpio: add gpio_disable_mux() function
2020-03-09 20:35:53 +01:00
Aydogan Ersoz
d66f35c31a add QCBOR package 2020-03-09 20:29:50 +01:00
benpicco
6f7293d7c3
Merge pull request #13559 from aabadie/pr/sys/crypto_modules_rework
sys/crypto: define cipher using a module instead of CFLAGS
2020-03-09 19:41:27 +01:00
benpicco
f0ac1624c5
Merge pull request #13594 from aabadie/pr/tools/cc2538-bsl_rework
tools/cc2538-bsl: deduplicate buildsystem integration
2020-03-09 19:39:43 +01:00
Benjamin Valentin
5c4c45fd3f cpu/sam0_common: gpio: add gpio_disable_mux() function
Inverse to gpio_init_mux()
2020-03-09 19:23:33 +01:00
803698037a
Merge pull request #13554 from OTAkeys/fix/memarray_init
memarray: fix memarray init
2020-03-09 19:21:33 +01:00
benpicco
d405cb7dd1
Merge pull request #13577 from kaspar030/fix_ztimer_rtt_logic
sys/ztimer: fix typo in rtt conversion selection
2020-03-09 19:11:07 +01:00
benpicco
0cf6e39be5
Merge pull request #13589 from maribu/stm32f103-jtag-pins
cpu/stm32f103: Allow boards to expose JTAG pins as GPIOs
2020-03-09 19:07:52 +01:00
b4418426ba
boards/cc2538: use common cc2538-bsl handling file 2020-03-09 18:26:08 +01:00
Gunar Schorcht
75bd22f55b
Merge pull request #13599 from leandrolanzieri/pr/boards/esp32-wroom-32/remove_driver_configurations
boards/esp32-wroom-32: Remove driver configurations from Makefile.dep
2020-03-09 18:22:15 +01:00
a83510c354
makefiles: add common file for cc2538-bsl flasher 2020-03-09 18:17:37 +01:00
Vincent Dupont
4647659ea8 boards: fix CLOCK_PLL_PREDIV on stm32f1xx boards 2020-03-09 18:00:48 +01:00
Vincent Dupont
21bbfbed1d stm32_common/stmclk: check if CLOCK_PLL_PREDIV is valid 2020-03-09 18:00:47 +01:00
Vincent Dupont
97cfd1e512 memarray: fix memarray init
If memarray data is not initialized to 0 (for instance during a
re-init). The last element of the array is not properly cleared thus
leading to returning an invalid pointer when everything is allocated.
2020-03-09 17:56:34 +01:00
Leandro Lanzieri
ab10b33848 boards/esp32-wroom-32/doc: Add SPI freq configuration for mrf24j40 2020-03-09 16:51:35 +01:00
Leandro Lanzieri
cffc9b70bf boards/esp32-wroom-32: Remove drivers configuration from Makefile.dep
This removes the configuration parameters for mrf24j40 and enc28j60
drivers, which were present in the boards's Makefile.dep. There is
already documentation regarding how to correctly configure these devices
for the board.
2020-03-09 16:49:11 +01:00
MichelRottleuthner
26f3caf9d7
Merge pull request #13495 from pokgak/pr/sock_dtls/fix_timeout_when_waiting
examples/dtls-sock: fix timeout msg stays in mbox
2020-03-09 16:33:05 +01:00
Aiman Ismail
e0a02705b2 examples/dtls-sock: change unsupported %zd to %d 2020-03-09 15:08:52 +01:00
Aiman Ismail
aa3cbacceb net/sock_dtls: do not put msg in mbox on timeout 2020-03-09 15:08:52 +01:00
José Alamos
de4a1bf552
Merge pull request #13595 from gschorcht/gnrc/lorawan/fix_downlink_handling
gnrc/lorawan: fixes the handling of downlink frames without payload
2020-03-09 15:08:25 +01:00
benpicco
780e6a7630
Merge pull request #13596 from gschorcht/tests/driver_sx127x_fix_enum
tests: fix netopt_state_t value handling in driver_sx127x
2020-03-09 15:03:17 +01:00
Gunar Schorcht
b8777e9a9d tests: fix enumeration type usage in driver_sx127x 2020-03-09 13:53:57 +01:00
Gunar Schorcht
de38fc5e2e gnrc/lorawan: fix handling of downlink message without payload 2020-03-09 12:33:03 +01:00
José Alamos
5e9733645f
Merge pull request #13591 from gschorcht/gnrc/lorawan/fix_set_state
gnrc/lorawan: fix netopt_state_t value handling
2020-03-09 10:53:28 +01:00
Gunar Schorcht
3adbbdcf9b drivers/sx127x: fix length check of netstat_opt_tin _set 2020-03-08 17:10:46 +01:00
Gunar Schorcht
32c78e3317 gnrc/lorawan: fix netopt_state_t size in link_layer
`netopt_state_t` is an enumeration type which is not necessarily 1 byte. If `uint8_t` is used, the cast `*((const netopt_state_t*) val` in `sx127x_netdev::_set`tries to read the real size, which can be more than the given length of 1 byte. Therefore, `netstat_opt_t` has to be used instead of `uint8_t`
2020-03-08 17:10:24 +01:00
980e06bcd6
ci/buildssytem: ensure PYOCD_ADAPTER_INIT is not exported 2020-03-08 15:12:44 +01:00
fb27409b73
makefiles/pyocd: only export PYOCD_ADAPTER_INIT when required 2020-03-08 15:12:44 +01:00
c27870face
ci/buildssytem: ensure FLASH_TARGET_TYPE is not exported 2020-03-08 15:12:44 +01:00
2ec09ebd74
boards/nrf52: remove useless export of FLASH_TARGET_TYPE 2020-03-08 15:12:44 +01:00
2977b06a8d
makefiles/pyocd: only export FLASH_TARGET_TYPE when required 2020-03-08 15:12:44 +01:00
benpicco
2cc3d386fd
Merge pull request #13572 from miri64/sliptty/enh/global-addr
sliptty/start_network.sh: configure global address for SLIP interface
2020-03-08 15:04:45 +01:00
Martine Lenders
0bd58bd624
examples: use slip-only option with DHCPv6 for border router 2020-03-08 14:44:50 +01:00
Martine S. Lenders
44baa250f7
CODEOWNERS: update for slipdev and sliptty 2020-03-08 14:44:50 +01:00
Marian Buschsieweke
8fd8c8273f
boards/{nucleo-f103rb,b*pill}: Expose JTAG pins as GPIOs
The Nucleo-F103RB comes with an internal SWD programmer/debugger. Thus, the JTAG
pins are not going to be used for debugging / programming anyway. The pins are
exposed on the headers, so allowing them to be used as GPIOs make a lot of
sense.

The Bluepill / Blackpill boards only expose the SWD pins on the debug header,
but the JTAG pins (not also used by SWD) are exposed on the GPIO pin headers.
Hence, exposing them as regular GPIOs seems to be a reasonable choice.
2020-03-08 13:06:34 +01:00
Marian Buschsieweke
e326acfc78
cpu/{stm32r1,stm32_common}: Allow exposing JTAG pins as GPIOs
- cpu/stm32f1: Removed previous code in gpio_init() to provide PB4 on the
  Nucleo-F103RB only
- cpu/stm32_common: Introduced STM32F1_DISABLE_JTAG which, if defined in
  board.h, exposes the JTAG only pins as GPIOs. This keeps the SWD pins, so that
  SWD debugging remains possible
2020-03-08 13:05:35 +01:00
Marian Buschsieweke
02a425f114
drivers/cc110x: Handle lost IRQs more gracefully
When an IRQ is lost during cc110x_send(), the driver will remain locked until
another IRQ is triggered. This commit changes the behavior to wait for at most
an reasonable upper bound, which is chosen to not only allow the driver to
recover but also (at least in theory) complete the transmission correctly.
2020-03-08 12:49:57 +01:00
Sören Tempel
2c1a627118 Add mpu_noexec_ram pseudomodule 2020-03-07 13:09:55 +01:00
95f34e00b9
Merge pull request #13578 from benpicco/tests-auto_init
tests: clean up use of auto_init
2020-03-06 20:19:54 +01:00
Martine Lenders
c30f83ac3b
Merge pull request #13579 from jia200x/pr/gnrc_netif_send
gnrc_netif_send: add send function
2020-03-06 20:07:45 +01:00
0b082d8cff
sys: extend crypto_* dependency resolution
Add dependency resolution for crypto_aes_unroll and
crypto_aes_precalculated pseudomodules

Co-authored-by Gunar Schorcht <gunar@schorcht.net>
2020-03-06 19:54:23 +01:00
5332ecec33
tests/crypto*: use crypto_% modules instead of CFLAGS 2020-03-06 19:49:58 +01:00
bba96a1cd5
examples/gnrc_lorawan: use crypto_aes module instead of CFLAGS 2020-03-06 19:49:58 +01:00
08162f72b6
sys/crypto: update documentation 2020-03-06 19:49:58 +01:00