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

28939 Commits

Author SHA1 Message Date
c1049bbd7a
Merge pull request #14072 from Meumeu/fix_ztimer_cpp
sys/ztimer: fix extern "C" guard
2020-05-13 22:20:06 +02:00
Guillaume Meunier
4967b141fa sys/ztimer: fix extern "C" guard at the end of ztimer.h and ztimer/config.h 2020-05-13 21:31:17 +02:00
benpicco
88e4c0ffef
Merge pull request #14016 from benpicco/luid_get_be
sys/luid: provide luid_get_lb(), fix documentation
2020-05-13 21:14:31 +02:00
Benjamin Valentin
e195e0269c sys/luid: provide luid_get_lb(), fix documentation
This does two things:

The documentation of `luid_get()` is wrong, or at least confusing.

It talks about

> an 8-bit incrementing counter value into the most significant byte

while the implementation does

    ((uint8_t *)buf)[0] ^= lastused++;	// 0 is LSB!

Now it could be argued that the intention was that the ID is supposed
to be used in Big Endian contexts and that was an omission, however
to keep everyone's sanity, let's keep it simple and just state that this
actually changes the LSB.

Also add a `luid_get_lb()` function that does the same, but modifies the
most significant byte - or the last byte if looking at the index.

This can then be used directly by e.g. #13743
2020-05-13 20:47:53 +02:00
da2230df48
Merge pull request #13999 from fjmolinas/pr_cortexm_inline_irq
cpu/cortexm_common: add inlined header only def for irq_%
2020-05-12 21:15:57 +02:00
benpicco
a87c4ef488
Merge pull request #14067 from gschorcht/cpu/esp/fix_make_flash_dependency
cpu/esp_common: revert the change in PR 14041
2020-05-12 20:39:05 +02:00
8761c47e43
nrf51: move common SPI implementation 2020-05-12 19:15:25 +02:00
Martine Lenders
b031337e29
Merge pull request #14066 from jue89/fix/fmt_hex_bytes_null
sys/fmt: add fmt_hex_bytes size probing
2020-05-12 18:29:52 +02:00
Benjamin Valentin
d34551e8da cpu/nrf52: use vendor defines for flash size
We don't need to define FLASHPAGE_SIZE and FLASHPAGE_NUMOF ourself if
the BPROT peripheral is present.
Now why nrf52840 doesn't have it, I don't know, but for nrf52832 and
nrf23811 the values in BPROT_REGIONS_SIZE and BPROT_REGIONS_NUM match
the values manually provided here before.
2020-05-12 18:10:15 +02:00
Gunar Schorcht
fef3c101b7 Revert "cpu/esp_common: fix dependency of flash target on ELF file"
This reverts commit d0cc955394.
2020-05-12 18:07:48 +02:00
Martine Lenders
e0d628e61b
Merge pull request #14064 from miri64/examples/fix/netif-single
examples/emcute: set GNRC_NETIF_SINGLE
2020-05-12 17:41:27 +02:00
Juergen Fitschen
aeb1230266 sys/fmt: add fmt_hex_bytes size probing 2020-05-12 17:39:25 +02:00
benpicco
e3591535ce
Merge pull request #13972 from Citrullin/nrf52_bmp
Add bmp config for nrf52
2020-05-12 16:59:34 +02:00
benpicco
1ab4ff7f91
Merge pull request #14061 from benpicco/cpu/nrf5211-fix
cpu/nrf52: add missing vendor files
2020-05-12 16:58:32 +02:00
benpicco
0b1a6bb955
Merge pull request #14062 from maribu/corerf
boards/microduino-corerf: Fix duplicated includes
2020-05-12 16:58:14 +02:00
Francisco Molina
b5e4224a6f
cpu/cortexm_common: remove special cortexm_sleep handle for stm32l152re
__set_PRIMASK(state) had been directly inlined to avoid a hardfault that
occured when branching after waking up from sleep with DBG_STANDBY,
DBG_STOP or DBG_SLEEP set in DBG_CR.

The hardfault occured when returning from the branch to irq_restore,
since the function is now inlined the branch does not happen either.

Refer to #14015 for more details.
2020-05-12 16:37:34 +02:00
Francisco Molina
4ad3164599
cpu/cortexm_common/irq_arch: fix irq_enable return type 2020-05-12 16:37:34 +02:00
Francisco Molina
cb5cbe7431
cpu/cortexm_common: add inlined header only def for irq_%
irq_% are not inlined by the compiler which leads to it branching
to a function that actually implement a single machine instruction.

Inlining these functions makes the call more efficient as well as
saving some bytes in ROM.
2020-05-12 16:37:34 +02:00
Martine S. Lenders
3cb746a587
examples/emcute: set GNRC_NETIF_SINGLE
The shell command offers no capability to parse the outgoing network
interface in the gateway host, so link-local addresses are not usable
with this example without this patch.
2020-05-12 16:15:02 +02:00
Philipp Blum
3240dfc0b2 boards/common/nrf52: add config for bmp 2020-05-12 15:54:38 +02:00
Martine Lenders
a6fe69b0e8
Merge pull request #13740 from miri64/gnrc_ipv6_nib/fix/abr-add-pio-iface
gnrc_ipv6_nib: only add prefix of same interface to ABR
2020-05-12 15:43:45 +02:00
Benjamin Valentin
20a044c956 cpu/nrf52: fix nrf52811 interrupt vector table
SPI1 and TWI0 share the same IRQ, not SPI1 and TWI1
2020-05-12 15:10:06 +02:00
Marian Buschsieweke
966b0e22e5
boards/microduino-corerf: Fix duplicated includes
avrdude.mk and serial.mk was included twice. As a result of the former, avrdude
wasted one flash cycle and some time by writing the same firmware twice.
2020-05-12 15:00:14 +02:00
Benjamin Valentin
d53bc7bf73 cpu/nrf52: add peripherals.h vendor files
Those make our lives much easier.
2020-05-12 14:52:06 +02:00
Benjamin Valentin
fb2f2c456f cpu/nrf52: add nrf52811 vendor files 2020-05-12 14:49:26 +02:00
Martine S. Lenders
d66583b542
gnrc_sock: re-issue MSG_RECV event if there are still received messages
... after `*_recv()` was called.

This prevents a client from needing to call `*_recv()` in a loop.
2020-05-12 14:01:56 +02:00
673ba21b9e
Merge pull request #14045 from benpicco/mtd_mapper_sectors
mtd_mapper: count offset in sectors
2020-05-12 13:47:12 +02:00
Martine Lenders
fcd36f7b77
Merge pull request #13975 from kaspar030/uncrustify_ztimer
sys/ztimer: uncrustify
2020-05-12 13:14:05 +02:00
Martine Lenders
4e6df34576
gnrc_ipv6_nib: only add prefix of same interface to ABR
It doesn't make sense for an Authoritative Border Router to manage a
prefix that does not belong to the border router's downstream
interface.
2020-05-12 13:06:20 +02:00
Disconnect3d
d91c19b727 shell/commands: fixed off by one when checking for clearalarm command 2020-05-12 12:39:25 +02:00
6ac3e12661
Merge pull request #14053 from PeterKietzmann/pr_random_sha1prng_optimize
sys/random: optimize sha1prng
2020-05-12 12:02:54 +02:00
Benjamin Valentin
81b07895af mtd_mapper: count offset in sectors
The offset of MTD regions must be aligned with erase sectors.
So in order not to waste address space, avoid misconfiguration and
eventually support storage media > 4 GiB, give the offset in sectors
instead of bytes.
2020-05-12 12:02:05 +02:00
benpicco
e45777d077
Merge pull request #13809 from Vinggui/master
Added a new flashing parameter for generic cheap St-link and bluepill(-128kib) boards.
2020-05-12 11:48:43 +02:00
adb46b9ee7
Merge pull request #14006 from benpicco/sdcard_fixes
pkg/fs: initialize MTD device before accessing it's properties
2020-05-12 11:31:39 +02:00
4042fa2ddf
Merge pull request #13944 from benpicco/drivers/ethos-luid
drivers/ethos: use luid_get_eui48()
2020-05-12 10:47:06 +02:00
Kevin "Tristate Tom" Weiss
2444f06440
Merge pull request #12769 from JannesVolkens/can_test
tests/conn_can: Add can tranceiver and pin configuration
2020-05-11 22:30:52 +02:00
ba9afe98c3 sys/ztimer: uncrustify 2020-05-11 16:43:50 +02:00
Jannes
f0e994532a tests/conn_can: Add can tranceiver
- Add tja1042 pin configuration to tests/can_trx
- Add ncv7356 pin configuration to tests/can_trx
- Add can transceivers to tests/conn_can
- Add tja1042 pin configuration to tests/conn_can
- Add ncv7356 pin configuration to tests/conn_can
- rename print functions
- Add to CFLAGS
2020-05-11 14:10:42 +02:00
aa2e84218f
Merge pull request #14052 from bergzand/pr/nrf52840dk/add_mtd
nrf52840dk: Add MTD configuration
2020-05-11 13:01:33 +02:00
José Alamos
089e0a2b44
Merge pull request #14048 from jue89/fix/gnrc_lorawan_abp
net/gnrc/netif/lorawan: fix ABP device activation
2020-05-11 11:34:59 +02:00
PeterKietzmann
eb62ac6ff1 sys/random/sha1prng: make random_init use init_by_array 2020-05-11 10:38:44 +02:00
PeterKietzmann
54d6b0d096 sys/random/sha1prng: remove redundant sha1 update in state transistion 2020-05-11 10:37:24 +02:00
PeterKietzmann
3f626e39ab sys/random/sha1prng: rename seed size to state size 2020-05-11 10:35:58 +02:00
4f41c60e05
nrf52840dk: Add MTD configuration 2020-05-11 10:26:29 +02:00
benpicco
63a4d126e4
Merge pull request #14008 from Citrullin/nrf52811_cpu
Initial nrf52811 support
2020-05-10 17:32:12 +02:00
Philipp Blum
35dcf637f2 cpu/nrf52: add support for nrf52811 2020-05-10 17:10:33 +02:00
Juergen Fitschen
4741b30eff examples/gnrc_lorawan: fixed README 2020-05-09 20:21:55 +02:00
Juergen Fitschen
1eb3b596c4 net/gnrc/netif/lorawan: fixed ABP device activation 2020-05-09 20:16:29 +02:00
Juergen Fitschen
255c76ff35 net/gnrc/netif/lorawan: fixed deprecated NETOPT_LINK_CONNECTED 2020-05-09 20:11:16 +02:00
Benjamin Valentin
baeb5134b7 drivers/mrf24j40: add Turbo Mode
MRF24J40 supports a proprietary turbo mode with a data rate of 625 kbit/s
instead of the standard 250 kbit/s.

It can be enabled through

    ifconfig 7 set high_rate 1
2020-05-09 16:10:46 +02:00