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

32194 Commits

Author SHA1 Message Date
Benjamin Valentin
6fa15ff3f6 sys/luid: improve luid_base() algorithm
CPU IDs may contain very little entropy. Often only a single byte
may change between two CPUs.

To mitigate this use a somewhat 'proper' hash algorithm (I chose DJB2
hash simply because it's small) and 'extend' it to the required output
size.

For 50 STM32 CPU IDs from the grenoble site, this produces a much more
random LUID output.
2020-10-18 14:52:02 +02:00
Marian Buschsieweke
652aac4e57
Merge pull request #15236 from benpicco/cpu/cortexm_common_idle_flush
cpu/cortexm_common: flush pipeline before disabling interrupts in idle
2020-10-16 22:29:12 +02:00
Benjamin Valentin
c48b331051 cpu/cortexm_common: flush pipeline before disabling interrupts in idle
When enabling & disabling interrupts back-to-back pending interrupts
are not serviced on Cortex-M23/M33.

Flush the pipeline to give interrupts a chance of executing in `sched_arch_idle()`.

This fixes `no_idle_thread` on Cortex-M23.
2020-10-16 15:36:28 +02:00
f26537cbc3
Merge pull request #15235 from aabadie/pr/drivers/fix_typo_auto_init_adc
drivers/saul: fix typo in auto_init adc function name
2020-10-16 14:08:12 +02:00
fd1057ee9f
drivers/saul: fix typo in auto_init adc function name 2020-10-16 12:33:37 +02:00
José Alamos
fc8961ec27
Merge pull request #15081 from akshaim/PR_LoRaWAN_IN_865
net/lorawan : Support for IN865 region, Improve debugging
2020-10-16 12:22:18 +02:00
chrysn
efae309a5a
Merge pull request #15233 from maribu/auto_init_adc_rename
sys/auto_init: auto_init_adc -> auto_init_saul_adc
2020-10-16 11:02:27 +02:00
Marian Buschsieweke
b145f4b0b6
sys/auto_init: auto_init_adc -> auto_init_saul_adc
Avoid confusion between peripheral device initialization and SAUL registration
by renaming `auto_init_adc()` to `auto_init_saul_adc()`.
2020-10-16 09:48:05 +02:00
benpicco
0f726b17d5
Merge pull request #15228 from jia200x/pr/hal_read_func
ieee802154/radio: add `read` function
2020-10-15 21:31:10 +02:00
benpicco
3714b97e17
Merge pull request #15230 from brummer-simon/gnrc_tcp-internal_api_cleanup
GNRC TCP: internal api cleanup
2020-10-15 21:27:50 +02:00
benpicco
ee189fa428
Merge pull request #15187 from bergzand/pr/info/add_json
info.inc.mk: Add info-build-json as JSON-formatted build info
2020-10-15 21:27:26 +02:00
benpicco
f6cccf54a1
Merge pull request #15222 from aabadie/pr/boards/nucleo-l011k4
boards/nucleo-l011k4: add support
2020-10-15 21:26:03 +02:00
8ca1c65f79
pkg/lua: blacklist picolibc feature 2020-10-15 18:52:51 +02:00
160d9a53b9
cpu/cortexm_common: also check for picolibc in USEMODULE 2020-10-15 18:52:51 +02:00
e424d177d7
tests/periph_uart_nonblocking: relax allowed precision to 1.005 2020-10-15 18:52:51 +02:00
05fbeb65b1
tests: skip nucleo-l011k4 where it doesn't fit 2020-10-15 18:52:51 +02:00
13e56b3e3e
examples: skip nucleo-l011k4 where it doesn't fit 2020-10-15 18:52:51 +02:00
f000ab67a3
boards/nucleo-l011k4: add support 2020-10-15 18:52:51 +02:00
68b6e4f7ef
boards/nucleo32: fix arduino pinmap for stm32l011k4 2020-10-15 16:24:33 +02:00
58ad0168e7
cpu/stm32: stm32l011 lines doesn't provide hwrng 2020-10-15 16:24:33 +02:00
2e2b87dda5
cpu/stm32: define EEPROM size for stm32l011k4 2020-10-15 16:24:33 +02:00
e51279b228
cpu/stm32l0: fix clk control register reset
on stm32l011, RCC_CR_CSSON is not defined
2020-10-15 16:24:33 +02:00
Simon Brummer
55a5062292 gnrc_tcp: cleanup internal api 2020-10-15 15:16:03 +02:00
benpicco
be261f0138
Merge pull request #15223 from aabadie/pr/cpu/stm32f4f7_overdrive_en
cpu/stm32: enable overdrive mode on f4 and f7 for high clock speeds
2020-10-15 14:49:38 +02:00
benpicco
4edf5c7cbd
Merge pull request #15208 from benpicco/ieee802154_submac-etx
netdev/ieee802154_submac: add retransmission reporting
2020-10-15 14:31:54 +02:00
Benjamin Valentin
87151db891 ieee802154_submac: mark retrans as invalid if driver does not report it 2020-10-15 13:26:42 +02:00
Benjamin Valentin
37aad4ef38 netdev/ieee802154_submac: add retransmission reporting
If we do software retransmissions, we already keep a count.
Allow to query it with `NETOPT_TX_RETRIES_NEEDED`.
2020-10-15 13:26:42 +02:00
Marian Buschsieweke
c38ca6d718
Merge pull request #15212 from miri64/gnrc_pkt/enh/pkt-list-ops
gnrc_pkt: introduce packet list operations
2020-10-15 12:13:03 +02:00
9b33d8da9a
Merge pull request #15229 from benpicco/boards/microduino-corerf-bl
boards/microduino-corerf: don't set bootloader size
2020-10-15 08:18:36 +02:00
Benjamin Valentin
c29825a173 boards/microduino-corerf: don't set bootloader size
This already gets set by `common/atmega/Makefile.include`.
Setting it in the board prevents auto-selection if a bootloader
is used.
2020-10-14 23:37:42 +02:00
benpicco
ab8ec91f1f
Merge pull request #15225 from Nishchay-sopho/drivers/scd30/add_soft_reset
drivers/scd30: Add reset function to Sensirion scd30 sensor
2020-10-14 20:52:51 +02:00
Jose Alamos
b796d9805d ieee802154/submac: adapt to radio hal API change 2020-10-14 18:07:28 +02:00
Jose Alamos
ee5adad401 ieee802154/radio: replace indication mechanism 2020-10-14 18:07:28 +02:00
Martine Lenders
f2e1c1ac87
Merge pull request #15209 from brummer-simon/gnrc_tcp-cleanup_debug_messages
gnrc_tcp: Overhaul all debug messages
2020-10-14 17:42:19 +02:00
8df645cfe9
Merge pull request #15011 from benpicco/picolobc_feature
picolibc: model as a feature
2020-10-14 17:02:04 +02:00
Simon Brummer
0cc06a5993 gnrc_tcp: Overhaul all debug messages 2020-10-14 16:58:53 +02:00
Benjamin Valentin
45270dada0 cpu/fe310: blacklist picolibc on CI
The RISC-V toolchain in riotdocker has issues with picolibc and
will still include newlib headers.

This leads to conflicts like

```
In file included from [01m[Knanostubs.c:22[m[K:
[01m[K/usr/local/picolibc/riscv-none-embed/include/stdio.h:270:23:[m[K [01;31m[Kerror: [m[Kconflicting types for '[01m[K__FILE[m[K'
 typedef struct __file [01;31m[K__FILE[m[K;
                       [01;31m[K^~~~~~[m[K
In file included from [01m[K/opt/gnu-mcu-eclipse/riscv-none-gcc/8.2.0-2.2-20190521-0004/riscv-none-embed/include/reent.h:93[m[K,
                 from [01m[Knanostubs.c:20[m[K:
[01m[K/opt/gnu-mcu-eclipse/riscv-none-gcc/8.2.0-2.2-20190521-0004/riscv-none-embed/include/sys/reent.h:287:26:[m[K [01;36m[Knote: [m[Kprevious declaration of '[01m[K__FILE[m[K' was here
 typedef struct __sFILE   [01;36m[K__FILE[m[K;
                          [01;36m[K^~~~~~[m[K
```

The problem does not occur when installing both the toolchain and picolibc
directly from the Debian / Ubuntu repositories, but CI uses an older Ubuntu
version that does not have those packages yet, so it builds them manually.

Blacklist RISC-V until CI has been updated.
2020-10-14 16:32:01 +02:00
Martine Lenders
ac097bb73d
Merge pull request #15227 from kYc0o/pr-remove_event_netdev_t_gnrc_netif
gnrc_netif: remove unused `event_netdev_t` struct
2020-10-14 15:45:55 +02:00
Nishchay-sopho
eb1064eef4 drivers/scd30: Add reset function to Sensirion scd30 sensor 2020-10-14 15:07:01 +02:00
Francisco Acosta
05b089b3c4 gnrc_netif: remove unused event_netdev_t struct 2020-10-14 14:46:35 +02:00
044acf1175
cpu/stm32: enable power overdrive on f4 and f7
This is only enabled if the HCLK clock is above 168MHz on F4 and 180MHz on f7
2020-10-14 13:36:20 +02:00
Hauke Petersen
d5b89a5795
Merge pull request #15224 from haukepetersen/fix_board_particlemeshspi
boards/common/particle-mesh: fix SPI configuration
2020-10-14 13:26:58 +02:00
Hauke Petersen
855148b28f boards/common/particle-mesh: fix SPI configuration 2020-10-14 12:44:31 +02:00
632a3613b5
Merge pull request #14413 from aabadie/pr/mips/toolchain_update_adapt
mips: adapt for toolchain update (2020.06-01)
2020-10-13 20:47:35 +02:00
Akshai M
2c526a7d29 net/lorawan : Expose to Kconfig
Expose LORAMAC_REGION_XX_XXX to Kconfig as a choice
2020-10-14 00:16:47 +05:30
Akshai M
2af79830f2 examples/gnrc_lorawan : Update README.md and Makefile
README.md : Update
Makefile : Add configuration to set region.
2020-10-14 00:16:47 +05:30
Akshai M
1ef362edea drivers/sx127x : Improve debugging 2020-10-14 00:16:47 +05:30
Akshai M
1a54238244 gnrc/lorawan : Improve debugging
gnrc_lorawan.c, gnrc_lorawan_mlme.c : Add additional debug
statements
net/gnrc/lorawan/region.h : Added debug statements
2020-10-14 00:16:47 +05:30
benpicco
bdf82eddc6
Merge pull request #15221 from nmeum/pr/netif-deadlock
gnrc_netif: add missing gnrc_netif_release() to early return
2020-10-13 19:03:39 +02:00
c40f0a5b43
cpu/mips: remove never used load memory address 2020-10-13 18:57:39 +02:00