Leandro Lanzieri
4f2494fa1a
sys/stdio: add module to Kconfig
2020-08-12 12:22:41 +02:00
Leandro Lanzieri
67b2519a7d
sys: add newlib modules to Kconfig
2020-08-12 12:22:40 +02:00
Leandro Lanzieri
14499e3b7e
drivers/periph_common: Add modules to Kconfig
2020-08-12 12:22:40 +02:00
Leandro Lanzieri
b98527ef53
cpu: Add 'periph' module to Kconfig
...
Select it from cortexm_common module as it is always needed.
2020-08-12 12:22:39 +02:00
Leandro Lanzieri
0ddd2886b7
cpu/sam0_common: add sam0_common_periph module to Kconfig
2020-08-12 12:22:39 +02:00
Leandro Lanzieri
2d53003ee2
cpu/cortexm_common: Model cortexm_common modules
...
This models cortexm_common and cortexm_common_periph modules.
2020-08-12 12:22:39 +02:00
Leandro Lanzieri
4ad2180f81
kconfig: Add default modules' symbols
2020-08-12 12:22:38 +02:00
Leandro Lanzieri
f5e57fbca4
core: Add modules to Kconfig
2020-08-12 12:22:35 +02:00
Francisco Molina
8ed8daa493
cpu/cc2538/timer: fix 32 bit timer reload value
...
The interval load value was only set to 0xffff regardless of the counter
mode used which mad the 32bit timer apparently stop after 0xffff (it
would never reach values >0xffff).
When a GPTM is configured to one of the 32-bit modes, TAILR appears as a
32-bit register (the upper 16-bits correspond to the contents of the
GPTM Timer B Interval Load (TBILR) register). In a 16-bit mode, the
upper 16 bits of this register read as 0s and have no effect on the
state of TBILR.
Thsi commit set the correct value for TAILR depending on the configured
timer mode.
2020-08-12 11:35:42 +02:00
Martine Lenders
76709fa453
Merge pull request #14745 from benpicco/nanocoap-coverity
...
nanocoap: validate input with NDEBUG
2020-08-12 07:43:51 +02:00
15b1816e4a
Merge pull request #14746 from aabadie/pr/examples/lorawan_test_typo
...
examples/lorawan: fix typo in automatic test script
2020-08-11 18:00:33 +02:00
benpicco
419ee52ddc
Merge pull request #14711 from benpicco/cpu/sam0_common/gpio-intermediate_irq
...
cpu/sam0_common: GPIO: ignore stale interrupts
2020-08-11 16:32:57 +02:00
377d389ce9
Merge pull request #14609 from fjmolinas/pr_openwsn_bump
...
pkg/openwsn: bump version
2020-08-11 16:25:36 +02:00
Benjamin Valentin
d4aa8aad10
nanocoap: validate input with NDEBUG
...
A malformed or malicious CoAP request may contain invalid field lengths.
`nanocoap` protects with this by using `assert()`, which safely crashes
the application in debug mode.
In release mode the check is removed.
Instead of allowing arbitrary memory writes, return 0 on invalid inputs.
Discovered by [Coverity](https://scan3.coverity.com/reports.htm#v46910/p10250/fileInstanceId=38357789&defectInstanceId=9793779&mergedDefectId=297306 )
2020-08-11 15:54:23 +02:00
9faeff63a6
examples/lorawan: fix typo in automatic test script
2020-08-11 15:50:28 +02:00
2c5e1d6590
tests/pkg_lvgl: adapt to new lvgl API
2020-08-11 15:39:01 +02:00
71a6bfc32d
pkg/lvgl: bump to version 7.0.0
2020-08-11 15:39:01 +02:00
Francisco Molina
aa1e7797b0
pkg/openwsn: bump version
...
With the new version some OpenWSN modules are optional:
- openwsn_cjoin (and therefore opewnsn_coap)
- openwsn_6lo_fragmentation
- openwsn_icmpv6echo
- openwsn_crypto
- openwsn_udp (optional but kept as default)
New optional modules have been added:
- openwsn_iee802154e_security (link layer security)
- openwsn_adaptive_msf (MSF dynamic slot allocation)
Openvisualizer needs to be updated to be compatible with the new
version.
2020-08-11 15:24:33 +02:00
benpicco
1887e55962
Merge pull request #14743 from benpicco/gnrc_sixlowpan_iphc_coverty
...
gnrc_sixlowpan_iphc: fix issues found by Coverity scan
2020-08-11 14:38:57 +02:00
Benjamin Valentin
2ed7f66d33
gnrc_sixlowpan_iphc: fix last byte of iphc_hdr always being 0
...
Coverty scan found this:
> CID 298295 (#1 of 1): Operands don't affect result (CONSTANT_EXPRESSION_RESULT) result_independent_of_operands:
> (ipv6_hdr_get_fl(ipv6_hdr) & 255) >> 8 is 0 regardless of the values of its operands.
Looking at the code, this appears to be a copy & paste error from the previous line.
2020-08-11 14:09:28 +02:00
benpicco
ea42705637
Merge pull request #14564 from benpicco/cpu/stm32-bitarithm_test_and_clear
...
cpu/stm32: GPIO: use bitarithm_test_and_clear()
2020-08-11 14:05:38 +02:00
benpicco
3ef906c841
Merge pull request #14563 from benpicco/cpu/sam0_common-bitarithm_test_and_clear
...
cpu/sam0_common: GPIO: use bitarithm_test_and_clear()
2020-08-11 14:05:06 +02:00
Benjamin Valentin
a9a0671232
gnrc_sixlowpan_iphc: fix Out-of-bounds read
...
Coverty scan found this:
> CID 298279 (#1 of 1): Out-of-bounds read (OVERRUN)
> 21. overrun-local: Overrunning array of 16 bytes at byte offset 64 by dereferencing pointer
The original intention was probably to advance the destination pointer by 4 bytes, not
4 * the destination type size.
2020-08-11 13:31:22 +02:00
a9193e0036
tests/ztimer_msg: check result of thread_create()
2020-08-11 12:12:14 +02:00
6f3f2b9b52
tests/xtimer_msg: check result of thread_create()
2020-08-11 12:12:08 +02:00
Francisco
ad3568be87
Merge pull request #14712 from benpicco/gpio_init_int-clarify
...
periph/gpio: clarify behavior of gpio_irq_enable()
2020-08-11 11:30:05 +02:00
Francisco
4ba791fcb9
Merge pull request #14724 from fjmolinas/pr_cc2538_makefile.include
...
boards: use common Makefile.include for cc2538 boards
2020-08-11 11:29:35 +02:00
Marian Buschsieweke
2fb7d84ae5
Merge pull request #14627 from fjmolinas/ps-robust-array-lookup
...
sys/ps: Improve robustness against string table errors.
2020-08-11 10:54:24 +02:00
Leandro Lanzieri
98994d33ec
Merge pull request #14654 from cgundogan/pr/kconfig_incremental
...
Kconfig: enable incremental compilation on config changes
2020-08-11 10:35:17 +02:00
Francisco Molina
75dbad847c
makefiles/tools/cc2538-bsl.inc.mk: specify BAUD for reset
2020-08-11 09:57:09 +02:00
Francisco Molina
5811fab369
boards: use common Makefile.include for cc2538 boards
...
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2020-08-11 09:57:09 +02:00
Cenk Gündoğan
0e8ee4bf0f
.github/workflows: add fixdep to automated testing
2020-08-11 09:47:32 +02:00
Cenk Gündoğan
964413c34a
ci: changed_files: ignore fixdep.c for cppcheck
2020-08-11 09:47:32 +02:00
Cenk Gündoğan
4fac8800bd
tools: whitespacecheck: ignore fixdep.c
2020-08-11 09:47:32 +02:00
Cenk Gündoğan
132b7328e3
make: kconfig: use fixdep to enable incremental compilation
2020-08-11 09:47:32 +02:00
Martine Lenders
3895ad5870
gh-actions: rename release test artifacts
2020-08-11 09:31:08 +02:00
Cenk Gündoğan
f49eb4305c
dist: tools: import fixdep from linux
2020-08-10 12:17:59 +02:00
Cenk Gündoğan
b65c6abad5
Merge pull request #14727 from leandrolanzieri/pr/kconfig/refactor_integration
...
makefiles/kconfig: refactor integration and add genconfig script
2020-08-10 12:17:29 +02:00
Francisco
16f47fc893
Merge pull request #14502 from benpicco/cpu/sam0_common/flashpage_cleanup
...
cpu/sam0_common: flashpage: clean up implementation
2020-08-10 08:21:49 +02:00
Marian Buschsieweke
7d9aed7f66
Merge pull request #14391 from benpicco/cpu/stm32-timer_periodic
...
cpu/stm32: implement periph_timer_periodic
2020-08-10 07:58:27 +02:00
Benjamin Valentin
29f83a6f25
tests/driver_soft_uart: Makefile.ci: add small stm32 boards
2020-08-09 22:55:22 +02:00
Benjamin Valentin
a0972c9e0c
cpu/stm32: implement periph_timer_periodic
...
Seems like the Interrupt flag for a Capture/Compare channel gets set when
- the CC-value is reached
- the timer resets before the CC value is reached.
We only want the first event and ignore the second one. Unfortunately I did
not find a way to disable the second event type, so it is filtered in software.
That is we need to
- ignore the CC-interrupts when the COUNT register register is reset
- ignore the CC-interrupts > TOP value/ARR (auto-reload register)
2020-08-09 22:55:22 +02:00
Benjamin Valentin
110a626b97
tests/periph_timer_periodic: lower CYCLE_MS
...
Reduce CYCLE_MS to 25 ms so the period also fits into a 16 bit 1 MHz
timer.
2020-08-09 22:55:22 +02:00
benpicco
0064397fc2
Merge pull request #14736 from gschorcht/boards/feather_m0/split_wifi_version
...
boards/feather-m0: separate directory for the wifi version
2020-08-09 20:58:10 +02:00
benpicco
6ca7b26a51
Merge pull request #14725 from aabadie/pr/boards/stm32l4_spi_divtable
...
boards/stm32l4: use common spi_divtable where possible
2020-08-09 20:57:19 +02:00
Gunar Schorcht
cae29539e8
examples/lua_REPL: add feather-m0-wifi to insufficient memory list
2020-08-09 20:24:05 +02:00
Gunar Schorcht
7e57c562df
tests/bench_timer: add fether-m0-wifi to low memory boards
2020-08-09 20:20:59 +02:00
Gunar Schorcht
163190a7f2
boards/feather-m0: separate directory for the wifi version
2020-08-08 17:04:58 +02:00
Marian Buschsieweke
234a720571
Merge pull request #14516 from benpicco/bitband_hw
...
cortexm_common: fix check for bitbanding feature
2020-08-08 14:26:49 +02:00
Benjamin Valentin
0e22910c94
cpu/sam_common: set CPU_HAS_BITBAND
...
- https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf
- http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11100-32-bit%20Cortex-M4-Microcontroller-SAM4S_Datasheet.pdf
2020-08-08 12:44:11 +02:00