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
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
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
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
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
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
Martine Lenders
15056c0530
gh-actions: rename release test artifacts (part 2)
2020-08-20 22:18:44 +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
9a893e1bf5
boards/hifive1b: add support for openocd programmer
2020-08-20 12:26:54 +02:00
Francisco
613d0cfffd
Merge pull request #14767 from hugueslarrive/boards/common/blxxxpill
...
boards/common/blxxxpill: DMA feature added
2020-08-20 09:11:03 +02:00
Francisco
35b4cbbb6e
Merge pull request #14765 from hugueslarrive/boards/nucleo-f303k8
...
boards/nucleo-f303k8: DMA feature added
2020-08-20 09:09:57 +02:00
benpicco
593568ca21
Merge pull request #14798 from bergzand/pr/core/sched_no_mpu_enable
...
sched: Remove extra mpu_enable during context switch
2020-08-20 00:10:01 +02:00
benpicco
157705c0c6
Merge pull request #14772 from maribu/esp_sched_cleanup
...
cpu/esp: Use API to access sched internals
2020-08-20 00:09:35 +02:00
benpicco
9be2c25ac1
Merge pull request #14789 from leandrolanzieri/pr/pkg/cmsis_dsp_nn_cleanup
...
pkg/cmsis-[dsp/nn]: cleanup makefiles
2020-08-20 00:09:04 +02:00
benpicco
5913e0dc25
Merge pull request #14786 from leandrolanzieri/pr/cpu/esp_atmega/check_stdio
...
cpu/[esp/atmega]_common: check if other STDIO implementation is selected
2020-08-20 00:08:41 +02:00
Benjamin Valentin
ae8ed273ab
pkg/cn-cbor bump to 1.0.0
...
Upstream changed, original upstream is archived now with this note:
> Jim Schaad now is so far ahead of this repo that you are most
> likely better off using his repo as your upstream.
2020-08-19 23:25:25 +02:00
hugues
0b648f44d4
boards/nucleo-f746zg: Add dma, eth, pwm and spi features
2020-08-19 22:53:44 +02:00
e6fd3630eb
sched: Remove extra mpu_enable during context switch
2020-08-19 20:13:28 +02:00
hugues
6c35a6a69f
boards/common/blxxxpill: DMA feature added
2020-08-19 18:25:03 +02:00
hugues
bdf9d8eee6
boards/nucleo-f303k8: DMA feature added
2020-08-19 18:08:17 +02:00
Francisco
e9833f68d6
Merge pull request #14794 from bergzand/pr/stm32/dma_add_unsuported_trigger_define
...
stm32: Add define for when DMA channel selection is not supported
2020-08-19 17:13:10 +02:00
5fab8f7a9a
stm32: Add define for when DMA channel selection is not supported
...
This adds a placeholder define for when the DMA peripheral available on
the MCU doesn't support channel/trigger filtering. This is the case on
the stm32f1 and stm32f3 family.
2020-08-19 16:09:55 +02:00
Francisco
0d66683c28
Merge pull request #14784 from leandrolanzieri/pr/boards/common/atmega/use_weak_functions
...
boards/common/[atmega|arduino-atmega]: use weak for common functions
2020-08-19 13:39:42 +02:00
Francisco
505b9b4a30
Merge pull request #14785 from leandrolanzieri/pr/cpu/cc26x2_cc13x2/remove_pm
...
cpu/cc26x2_cc13x2: remove unnecessary pm.c
2020-08-19 13:29:16 +02:00