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

31448 Commits

Author SHA1 Message Date
benpicco
64fb92e65d
Merge pull request #14574 from maribu/fix-indent-switch
uncrustify-riot.cfg: Don't indent switch cases
2020-08-24 11:15:40 +02:00
Marian Buschsieweke
eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
Keith Packard
76f6362292 cpu/fe310: Don't register __libc_fini_array with atexit
Picolibc makes atexit state per-thread instead of global, so we can't
register destructors with atexit in a non-thread context as we won't
have any TLS space initialized.

Signed-off-by: Keith Packard <keithp@keithp.com>
2020-08-23 13:13:28 -07:00
ff3bee24b9 picolibc: Provide integration into the build system [v3]
Support for picolibc as alternative libc implementation is added with
this commit. For now only cortex-m CPU's are supported.

Enable via PICOLIBC=1

---
v2:
	squash fixes in

v3:
	Remove picolibc integer printf/scanf stuff from sys/Makefile.include,
	it gets set in makefiles/libc/picolibc.mk

fixup for dependency
2020-08-23 13:12:57 -07:00
b64f8a22a3 picolibc: Add default syscall implementations [v2]
picolibc: Use thread_getpid for getpid() in picolibc_syscalls_default

Instead of directly accessing the sched_active_pid variable (which
isn't defined in this context), use the existing wrapper function
to get that value.

Signed-off-by: Keith Packard <keithp@keithp.com>

---
v2:
	Squash a couple of fixes in

	* fixup! picolibc: Use thread_getpid for getpid() in
          picolibc_syscalls_default

	* squashme: Add `times` to picolibc syscalls

	* Add __noreturn__ attribute to _exit

	* Add VFS syscall wrappers. This provides the POSIX api used
          by picolibc stdio
2020-08-23 12:43:51 -07:00
Marian Buschsieweke
8745d820ba
core/thread_flags: Fix code indention
Apply coding convention on the indent in the single switch statement within
core.
2020-08-23 21:18:10 +02:00
Marian Buschsieweke
bb064e0580
uncrustify-riot.cfg: Don't indent switch cases
`uncrustify` currently enforces that cases in a switch statement are indented,
but the should be on the same level as the switch statement according to the
coding convention. This commit fixes this.
2020-08-23 21:17:20 +02:00
Marian Buschsieweke
7b743cda13
drivers/at86rf2xx: Fix address generation
Do not generate address during reset, but during setup. Otherwise the device
will get a new address after every reset. Also: Use common IEEE 802.15.4
setup function for this.
2020-08-23 21:09:21 +02:00
659c351c02
Merge pull request #14821 from bergzand/pr/cortexm_common/enable_mpu_after_config
cortexm_common: Enable MPU after configuring regions
2020-08-23 18:02:40 +02:00
79737fb44f
Merge pull request #14831 from benpicco/drivers/at86rf2xx-fix_assert
drivers/at86rf2xx: fix assert
2020-08-23 14:48:27 +02:00
Benjamin Valentin
0f4c5f5b10 drivers/at86rf2xx: fix assert
The assert is reversed. It must check if the config value does not
exceed the maximum address length, not the other way round.

previously this would lead to a crash when setting a short address:

2020-08-23 13:59:56,080 #  ifconfig 7 set addr_short 2
2020-08-23 13:59:56,081 # 0xdcad
2020-08-23 13:59:56,083 # *** RIOT kernel panic:
2020-08-23 13:59:56,085 # FAILED ASSERTION.

With this it works as expected

2020-08-23 14:05:07,988 #  ifconfig 7 set addr_short 2
2020-08-23 14:05:07,992 # success: set (short) address on interface 7 to 2
2020-08-23 14:05:52 +02:00
Antonio Galea
1031da354f boards/yarm: delay terminal connection after flashing 2020-08-23 02:35:15 +02:00
Antonio Galea
21c69d6899 boards/yarm: adapt memory requirements for test 2020-08-22 16:37:17 +02:00
Antonio Galea
80cc4b3204 boards/yarm: skip tests requiring too much RAM 2020-08-22 16:36:28 +02:00
Martine Lenders
6e504bf326
Merge pull request #14825 from haukepetersen/fix_gnrcnib_typo
net/gnrc/nib_ft.c: fix minor typo in comment
2020-08-21 22:44:35 +02:00
Marian Buschsieweke
92ae260617
Merge pull request #14778 from benpicco/sys/luid_netdev
sys/luid: add luid_netdev_get_eui48() & luid_netdev_get_eui64()
2020-08-21 21:30:14 +02:00
bb62b242c1
Merge pull request #14823 from aabadie/pr/cpu/stm32g0_disable_mpu
cpu/stm32: disable MPU for cortex-m0+ (stm32g0 and stm32l052t8)
2020-08-21 16:53:45 +02:00
Martine Lenders
fb63453a1d
Merge pull request #14498 from brummer-simon/evtimer-add_mbox_support
evtimer: add mbox support
2020-08-21 16:33:06 +02:00
Hauke Petersen
05347190b9 net/gnrc/nib_ft.c: fix minor typo in comment 2020-08-21 16:06:04 +02:00
Benjamin Valentin
9823801cf6 drivers/at86rf215: use netdev_ieee802154_setup() 2020-08-21 15:33:19 +02:00
Benjamin Valentin
d29397cfd8 netdev_ieee802154: add netdev_ieee802154_setup() 2020-08-21 15:33:19 +02:00
b4aa2dae3e
cpu/stm32: remove MPU feature from stm32l052t8 2020-08-21 15:25:26 +02:00
Simon Brummer
5d67daebb2 evtimer: add mbox support 2020-08-21 15:19:22 +02:00
Antonio Galea
6a59569f1f boards/yarm: definition for SAML21J18B CPU model 2020-08-21 15:18:41 +02:00
fd71e09b69
cpu/stm32: disable MPU for stm32g0
MPU is broken on cortex-m0+ in the current state
2020-08-21 14:56:47 +02:00
edb9726322
Merge pull request #14800 from benpicco/pkg/cn-cbor-1.0.0
pkg/cn-cbor bump to 1.0.0
2020-08-21 14:04:58 +02:00
40c05de192
Merge pull request #14734 from hugueslarrive/boards/nucleo-f334r8
boards/nucleo-f334r8: dma support added
2020-08-21 13:52:30 +02:00
e2d8d40792
cortexm_common: Enable MPU after configuring regions
Reordering this ensures that the MPU regions are configured before
enabling the MPU and restricting the memory access.
2020-08-21 13:38:59 +02:00
4da86404ec
boards/nucleo-l452re: use common L4 clock configuration 2020-08-21 13:03:32 +02:00
Martine Lenders
0b6394c55d
Merge pull request #14812 from miri64/gnrc_sixlowpan_frag_rb/fix/icnlowpan-sfr-fixes
gnrc_sixlowpan_frag_rb: Check possibly uninitialized pointers
2020-08-21 12:33:49 +02:00
hugues
4509027e0a boards/nucleo-f334r8: dma support added 2020-08-21 12:19:25 +02:00
a95dfa4154
Merge pull request #14731 from hugueslarrive/boards/nucleo-f746zg
boards/nucleo-f746zg: Add dma, eth, pwm and spi feature
2020-08-21 11:42:57 +02:00
Benjamin Valentin
a272a879b7 boards/saml1x: add openocd.cfg
Previously trying `make debug` on these boards would result in

    Error: Unable to locate OpenOCD configuration file
           (/home/benpicco/dev/RIOT/boards/saml10-xpro/dist/openocd.cfg)

Add a common `openocd.cfg` to fix this.
2020-08-21 11:31:04 +02:00
5536f1afc5
tests/pkg_fatfs_vfs: blacklist nucleo-l031k6
Adding the extra prints to the hard fault handler bumped this test over
the available ROM for this board
2020-08-21 10:51:59 +02:00
benpicco
c7d9b4b4c4
Merge pull request #14793 from leandrolanzieri/pr/pkg/tinydtls/check_prng
pkg/tinydtls: enforce the selection of a crypto secure PRNG
2020-08-21 10:43:47 +02:00
Martine Lenders
0b50187732
Merge pull request #14813 from miri64/gh-actions/fix/unify-name
gh-actions: rename release test artifacts (part 2)
2020-08-21 09:45:19 +02:00
Leandro Lanzieri
531367a9a2
pkg/tinydtls: enforce the selection of a crypto secure PRNG
Also add a sanity checks on the prng_ modules.
2020-08-21 08:39:34 +02:00
Martine Lenders
66de39a20a
gnrc_sixlowpan_frag_rb: Check possibly uninitialized pointers 2020-08-20 23:51:38 +02:00
Benjamin Valentin
584d66190b pkg/wolfssl: bump version to 4.5.0
Update to the latest upstream release

https://www.wolfssl.com/docs/wolfssl-changelog/
2020-08-20 23:14:51 +02:00
Martine Lenders
15056c0530
gh-actions: rename release test artifacts (part 2) 2020-08-20 22:18:44 +02:00
Antonio Galea
d0f52b59c2 boards/yarm: added board 2020-08-20 19:03:50 +02:00
benpicco
d01e7b90b5
Merge pull request #14806 from bergzand/pr/saml1x/disable_mpu_feature
saml1x: Remove MPU feature
2020-08-20 16:45:32 +02:00
73b3d2aa20
Merge pull request #14547 from aabadie/pr/lora/ztimer
drivers/sx127x: pkg/semtech-loramac: replace xtimer by ztimer
2020-08-20 15:14:05 +02:00
6fa2b44c01
saml1x: Remove MPU feature
The MPU on the cortex-m23 has some differences with the MPU on the older
cortex-m devices. It is not implemented in the cortex-m MPU driver. This
removes the available feature as it gives a false sense of security by
advertising the feature, but implementing it with noop's
2020-08-20 14:37:08 +02:00
abfbc8a813
pkg/semtech-loramac: add documentation about ztimer 2020-08-20 14:08:03 +02:00
f1d5e98c81
sys/ztimer: fix ztimer msec convert for 250kHz timers 2020-08-20 13:41:40 +02:00
f4bc27e408
boards/lobaro-lorabox: move xtimer defines to board.h 2020-08-20 13:41:40 +02:00
52748dd935
pkg/semtech-loramac: migrate to ztimer usage 2020-08-20 13:41:40 +02:00
6199ada6b5
drivers/sx127x: migrate to ztimer 2020-08-20 13:41:32 +02:00
6bf6b6be6c
Merge pull request #14428 from aabadie/pr/boards/hifive1b_openocd
boards/hifive1b: add support for openocd programmer
2020-08-20 13:30:38 +02:00