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

30456 Commits

Author SHA1 Message Date
Francisco
1167867d02
Merge pull request #14362 from maribu/msp430-irq-inline
cpu/msp430_common: Update to inline-able IRQ API
2020-07-15 15:34:04 +02:00
José Alamos
90911f4bf9
Merge pull request #14510 from miri64/riotctrl.netif/bug/multi-iface-w-stats
riotctrl_shell.netif: fix for multiple interfaces with netstats
2020-07-15 15:23:46 +02:00
Martine Lenders
198eda14e6
riotctrl_shell.gnrc: remove superfluous quotation marks 2020-07-15 13:46:34 +02:00
Marian Buschsieweke
1a8defd209
cpu/msp430_common: Refactor cpu.{c,h}
Drop `__enable_irq()` and `__disable_irq()` and replace single remaining
call of them with the standard IRQ API, as this is now equally fast.
2020-07-15 13:09:11 +02:00
Martine Lenders
5599b067ab
examples/micropython: fix checked PID
With https://github.com/RIOT-OS/RIOT/pull/14224 the idle thread became
optional, so the main thread can have either 1 or 2 as PID, depending
if the idle thread is included or not. As this might also change in the
future, it is probably the best to just expect any number.
2020-07-15 12:43:02 +02:00
Marian Buschsieweke
aec9eb7f6a
cpu/stm32: Fix uart_init()
- Make use of the fact that gpio_init_af() does not need prior call to
  gpio_init() for all STM32 families anymore and drop call to gpio_init()
- Initialize the UART periph first, before initializing the pins
    - While uninitialized, the UART periph will send signal LOW to TXD. This
      results in a start bit being picked up by the other side.
    - Instead, we do not connect the UART periph to the pins until it is
      initialized, so that the TXD level will already be HIGH when the pins
      are attached.
    - This results in no more garbage being send during initialization
2020-07-15 12:12:46 +02:00
Marian Buschsieweke
73c9161517
cpu/stm32: Fix gpio_init() / gpio_int_af()
- Do not set an intermediate mode, prepare correct mode settings in a temporary
  variable
- Consistently enabled the GPIO periph in gpio_init_af()
    - Previously, STM32 F1 did not require a separate call to gpio_init() prior
      to a call of gpio_init_af(), but other STM32 families did
    - Now, gpio_init_af() can be used without gpio_init() consistently
- STM32 F1: Do not touch ODR for non input pins
    - For input pins, this enables / disabled pull up resistors. For outputs,
      this register should remain untouched (according to API doc)
2020-07-15 12:12:45 +02:00
Francisco
83396ac83c
Merge pull request #14486 from aabadie/pr/tools/pkg_clean_build_standalone
tools: build more tools with tools-buildtest
2020-07-15 11:22:26 +02:00
Marian Buschsieweke
5ecafab83d
sys/pm: Correctly access pm_blocker
Replace `volatile` access to pm_blocker by guarding the accesses with
`irq_disable()` ... `irq_restore()`.

`volatile` does only guarantee that no compiler optimizations are performed on
a variable access, but does not provide atomic access. E.g. on systems with
a memory bus of less than 32 bit, the access to pm_blocker cannot be done
with a single CPU instruction. Thus, resorting to disabling IRQs is the easiest
and most portable way to actually achieve atomic access.
2020-07-15 11:21:59 +02:00
Martine Lenders
7cff1b915d
Merge pull request #14422 from maribu/cortexm_thread_arch
cpu/cortexm_common: Fixes for thread_arch.c and dropped workaround
2020-07-15 11:19:28 +02:00
Marian Buschsieweke
91a294aa45
cpu/cortexm_common: Drop LTO workaround for Cortex M thread_arch.c
The `ldr    r1, =sched_active_thread` instruction couldn't be assembled with
LTO, as the no immediate offset could be found to construct the address of
`sched_active_thread`. This commit instructs the assembler to generate a
literate pool which can be used to construct the address. While this issue
was only triggered during LTO, it theoretically could also pop up without LTO
due to unrelated changes. Thus, it is a good idea to create the literate pool
even without LTO enabled.
2020-07-15 10:37:15 +02:00
Marian Buschsieweke
0feebcb094
cpu/cortexm_common: Drop #7776's LTO workaround
The workaround from #7776 is no longer needed with recent toolchains, e.g. such
as the toolchain in the riot/riotbuild docker image.
2020-07-15 10:37:15 +02:00
Martine Lenders
ba329daeee
Merge pull request #14515 from benpicco/CODING_CONVENTIONS-float
CODING_CONVENTIONS.md: add a note about float
2020-07-15 10:27:54 +02:00
Leandro Lanzieri
db29db330b
Merge pull request #14513 from akshaim/Kconfig_credman
net/credman : Expose configurations to Kconfig
2020-07-15 10:10:54 +02:00
benpicco
50f8fdd492
Merge pull request #14322 from benpicco/drivers/soft_uart
drivers/soft_uart: add software based UART implementation
2020-07-15 00:13:32 +02:00
Benjamin Valentin
b080d3da7a drivers/soft_uart: implement inverted TX & RX
In the current implementation, RX is flank based, so it's entirely level
agnostic.
I still chose to include a SOFT_UART_FLAG_INVERT_RX flag for symmetry and
to allow for a possible future, sampling based implementation.
2020-07-14 23:04:36 +02:00
Benjamin Valentin
5d1dddb3fc tests/driver_soft_uart: add test for software UART 2020-07-14 23:04:36 +02:00
Benjamin Valentin
96c67b0fa5 drivers/soft_uart: add software based UART implementation 2020-07-14 22:51:59 +02:00
Benjamin Valentin
7c4097bd52 CODING_CONVENTIONS.md: add a note about float
Floating point math should be avoided in the embedded space.
2020-07-14 20:41:00 +02:00
Akshai M
b898c65ecf net/credman : Update documentation 2020-07-14 21:26:19 +05:30
Akshai M
1ad76240c5 net/credman : Expose to Kconfig
Expose 'CONFIG_CREDMAN_MAX_CREDENTIALS' to Kconfig
2020-07-14 21:26:19 +05:30
Akshai M
774c18ea79 net/credman : Move 'CREDMAN_MAX_CREDENTIALS' to 'CONFIG_' 2020-07-14 21:26:19 +05:30
Martine Lenders
d968f16cc1 riotctrl_shell.netif: fix for multiple interfaces with netstats 2020-07-14 14:32:29 +02:00
Martine S. Lenders
92957e571f riotctrl_shell.tests: provide case for multiple interfaces with stats 2020-07-14 14:32:29 +02:00
Jannes
0c04de92ac sys/include/net: Add SOME/IP header 2020-07-14 11:00:54 +02:00
Martine Lenders
60def88929
Merge pull request #14058 from jia200x/pr/fix_gnrc_lorawan
net/gnrc_netif_lorawan: fix unaligned copy
2020-07-13 17:47:25 +02:00
Jose Alamos
96ee1d2bf8 net/gnrc_netif_lorawan: fix unaligned copy 2020-07-13 16:57:26 +02:00
benpicco
e2e51ae7ef
Merge pull request #14368 from jia200x/pr/byteorder_bebuftohs
core/byteorder: add uint32 from/to buffer funcs
2020-07-13 12:31:43 +02:00
Martine Lenders
8b14bd64cf
Merge pull request #12543 from MrKevinWeiss/pr/doc/contributingguide
CONTRIBUTING/MAINTAINING: Clarify guidelines
2020-07-13 11:51:06 +02:00
Jose Alamos
2592dd7805 unittest/byteorder: add tests for uint32 from/to funcs 2020-07-13 11:21:31 +02:00
Jose Alamos
244d5191c8 core/byteorder: add uint32 from/to buffer funcs 2020-07-13 11:21:30 +02:00
MrKevinWeiss
e8674fd6dd MAINTAINING: Clarify guidelines
Push for helping contributors and providing snippits.
2020-07-13 10:57:03 +02:00
Martine Lenders
651b506fd4
Merge pull request #14494 from miri64/emb6/cleanup/rm
pkg/emb6: remove deprecated package
2020-07-11 02:45:48 +02:00
Martine S. Lenders
ac3a22f548
LOSTANDFOUND.md: document removal of emb6 2020-07-11 02:19:44 +02:00
Martine S. Lenders
4f243c52ea
pkg/emb6: remove deprecated package
Deprecation was noted in 7cf1bab2e6
2020-07-11 02:18:17 +02:00
Martine Lenders
8939ffaaf7
Merge pull request #14495 from aabadie/pr/wsn430_lost_and_found
LOSTANDFOUND.md: add note about wsn430 boards
2020-07-11 02:17:33 +02:00
benpicco
db9ed5a440
Merge pull request #14499 from btcven/2020_07_10-gnrc_udp
tests/gnrc_udp/udp.c: fix netif_hdr typo
2020-07-10 23:52:24 +02:00
Jean Pierre Dudey
80435ae838
tests/gnrc_udp/udp.c: fix netif_hdr typo
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-07-10 14:47:10 -05:00
171284a86c
LOSTANDFOUND.md: add reference for wsn430 boards 2020-07-10 20:42:50 +02:00
e63cd54f3b
Merge pull request #14491 from aabadie/pr/remove_wsn430_iotlab
boards: remove support for wsn430-1_3b and wsn430-1_4
2020-07-10 20:40:47 +02:00
Benjamin Valentin
f4e9ede7bc drivers/sps30: fix conflict with libc function name 2020-07-10 17:31:29 +02:00
Benjamin Valentin
5f4838e716 drivers/sht3x: fix conflict with libc function name 2020-07-10 17:31:29 +02:00
Benjamin Valentin
b9ed7e9ffd drivers/bme680: fix conflict with libc function name 2020-07-10 17:31:29 +02:00
Martine Lenders
8e74bfa511
Merge pull request #14306 from leandrolanzieri/pr/net/nettest_remove
net/gnrc: Remove deprecated module gnrc_nettest
2020-07-10 17:12:59 +02:00
5555dd3a97
tests/float: adapt comment for msp430 about increased timeout 2020-07-10 16:49:08 +02:00
67843a2b11
examples: test: remove remaining occurences of wsn430 2020-07-10 16:49:08 +02:00
8b8e281789
boards: remove Senslab wsn430 boards
These boards are no longer available on IoT-LAB
2020-07-10 16:49:08 +02:00
9d0253bed3
Makefile.include: remove remaining references to wsn430 2020-07-10 16:49:08 +02:00
5efbb97b5c
dist/testbed-support: remove iotlab wsn430 mapping
The boards were removed (EOL) and thus are no longer usable using IOTLAB_NODE
2020-07-10 16:49:08 +02:00
Martine S. Lenders
8dba9a9188
netopt: remove deprecated alias NETOPT_LINK_CONNECTED 2020-07-10 16:18:13 +02:00