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

23377 Commits

Author SHA1 Message Date
Marian Buschsieweke
615e25f319
drivers: Removed driver for CC110x transceivers
- Removed cc110x driver
- Updated all makefiles
- Kept both board specific configurations and support for it in RIOT's
  upper layers, so re-implementations don't need to start from zero
2019-08-19 12:56:47 +02:00
b683205098
Merge pull request #12026 from gschorcht/cpu/esp32/printf_puts_fix
cpu/esp32: fixes printf and puts
2019-08-19 11:45:03 +02:00
Vincent Dupont
5a953a2137
Merge pull request #11991 from gschorcht/cpu/stp32_common/can/auto-init-cleanup
sys/auto_init/can: cleanup for STM32 CAN controller driver
2019-08-19 09:40:36 +02:00
Gunar Schorcht
6a378f71a0 cpu/esp32: fixes printf and puts
printf and puts used ets_printf before. Unfortunately, ets_printf adds an additional \r for each \n which is not consistent with other RIOT platforms. As a result some automatic tests failed. Therefore, both functions write now character-wise directly to the UART interface.
2019-08-17 11:34:20 +02:00
Marian Buschsieweke
59f0064075
Merge pull request #12023 from MrKevinWeiss/pr/stm/i2c1/endianess
cpu/stm32: Fix 16 bit reg endianness for i2c_1
2019-08-16 15:33:42 +02:00
MrKevinWeiss
b0c05431f7 cpu/stm32: Fix 16 bit reg endianess for i2c_1
Since i2c_1 i2c_write_regs is cpu specific reg endianess must be swapped there
Change reg from little endian to big endian
2019-08-16 15:04:13 +02:00
913614ef04
Merge pull request #11004 from jcarrano/shell_cancel_line_ctrl-c
sys/shell: cancel current line on CTRL-C.
2019-08-16 13:00:33 +02:00
Sebastian Meiling
226ace7bb6
Merge pull request #9852 from bergzand/pr/rpl/fix_debug_hdrs
gnrc_rpl: remove DEBUG from header files
2019-08-16 11:27:48 +02:00
b33ee93d22
gnrc_rpl: remove DEBUG from header files
This conflicts with the DEBUG setting in C files that include these
headers making it impossible to enable the DEBUG setting in these C
files.
2019-08-16 10:11:41 +02:00
Francisco
5653004d52
Merge pull request #11875 from cladmi/pr/test_utils/sync
test_utils_interactive_sync: add a helper for synchronizing tests
2019-08-15 19:12:11 +02:00
Juan Carrano
2946f4b192 tests/shell: Test cancelling a line with ctrl-C.
Send garbage, cancel it and issue a valid command. No errors should
ocurr.
2019-08-15 17:40:17 +02:00
Juan Carrano
3f46863426 tests/shell: use tuple instead of dictionary in test scripts.
Python dictionaries are not guaranteed to be ordered until version
3.7. In 3.6 they are ordered too, but that is an implementation
detail. riotdocker seems to be using 3.5.

As it stands now, it would not be a problem if the test commands
are run in a random order, except that:

- It would result in non-reproduceable tests.
- It hinders testing other functionality, such as exiting the shell.
2019-08-15 17:13:42 +02:00
Juan Carrano
fa9337d73c sys/shell: cancel current line on CTRL-C.
CTRL-C cancels the current line, similar to how getty works.

This is useful if one is using a dumb terminal to communicate with
a node, as it saves having to repeatedly type backspace to discard the
current line. It also helps when connecting to an already running node,
as one does not know what is on the line buffer, the safest thing to do
is to begin by sending a ctrl-C.

This is a suggestion of @benemorius.
2019-08-15 17:13:42 +02:00
Juan Carrano
cdfece682f tests/shell: Use socat as the RIOT_TERMINAL.
For test scripts, a terminal that does not modify the input and output
streams, configured without local echo, is preferred as it ensures the
test setup is introducing as little noise as possible.
2019-08-15 17:12:54 +02:00
Gaëtan Harter
ac8a6cf3a3
tests/libfixmath: use test_utils_interactive_sync
Replace the 'xtimer_sleep' hack to prevent flooding at startup to use
test_utils_interactive_sync for synchronizing.
2019-08-15 12:30:59 +02:00
Gaëtan Harter
4c209ab8d7
tests/libfixmath: explicitly import ARRAY_SIZE definition
ARRAY_SIZE is implicitly imported by "xtimer.h" which will be removed of
this file.
2019-08-15 12:30:37 +02:00
Gaëtan Harter
ed27d3b68b
tests/posix_time: use test_utils_interactive_sync
Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
1172ca9f93
tests/xtimer_usleep: use test_utils_interactive_sync
Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
f193ffd604
tests/cond_order: use test_utils_interactive_sync
Use test_utils_interactive_sync for synchronizing some case treat
the output before `reset` as the start of the test,
which fails for some boards/configurations.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
e5e9d81cce
testrunner/utils: add helper for test_utils_interactive_sync
Add helper to do the synchronisation.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
027426793c
test_utils_interactive_sync: add a helper for synchronizing tests
Add an implementation that waits for 's' to print 'START' and return.
If 'r' is given is prints 'READY' to allow querying for state.

The help and answered string have to be different to not match the other.
Using puts/getchar was smaller than using `stdio_read/stdio_write` on the
example I tested with `esp32`.
2019-08-15 12:26:28 +02:00
Francisco
3e753834e7
Merge pull request #11857 from cladmi/pr/make/buildtest/docker
makefiles/buildtest: always execute 'buildtest' loop on host machine
2019-08-14 17:53:18 +02:00
Gaëtan Harter
7d10da832a
makefiles/buildtest: always execute 'buildtest' loop on host machine
This remove executing buildtest `for` loop in docker.

When building completely in docker, 'buildtest' would hide issues when
the host toolchain would be used when doing `make all` directly.
It has the consequence that it now starts a container for each
compilation which is slower.

The previous behavior can be reproduced by using

    BUILD_IN_DOCKER=1 make buildtest-indocker

A side effect is also that now `BUILDTEST_MAKE_REDIRECT` would work when
doing `buildtest` with docker.
2019-08-14 17:02:34 +02:00
Gaëtan Harter
a048001e96
makefiles/buildtest: add a buildtest-indocker
Add a 'buildtest-indocker' that forces executing 'buildtest' for loop
completely inside the container.
It prevents starting one container per compilation wich is slower but
it could hide errors where the host toolchain would be used

It is currently equivalent to `buildtest` but will change when the
`buidtest` handling will be move outside of `BUILD_IN_DOCKER`.

Display an error when executed without BUILD_IN_DOCKER=1.
2019-08-14 17:02:35 +02:00
Francisco
414df99a4c
Merge pull request #11083 from cladmi/pr/docker/hack/bootloader
tests/mcuboot: handle building in docker
2019-08-14 15:17:44 +02:00
Sebastian Meiling
950b83e63e
Merge pull request #10252 from jcarrano/flake8-report-existence
tools/ci: correcly report flake8 version.
2019-08-14 11:11:50 +02:00
Marian Buschsieweke
c225636966
Merge pull request #10555 from gschorcht/irq_handler
sys: single interrupt handler thread for interrupts in modules with blocking functions
2019-08-13 15:08:53 +02:00
Gunar Schorcht
5fe75a9766 tests/sys_irq_handler: test for sys/irq_handler
Test application for sys/irq_handler.
2019-08-13 14:50:48 +02:00
Gunar Schorcht
82e020fb81 sys/irq_handler: single interrupt handler thread
Single thread for handling interrupts that may trigger blocking  functions and therefore may only be called in thread context.
2019-08-13 14:49:10 +02:00
Marian Buschsieweke
49859fc1ce
Merge pull request #11998 from gschorcht/cpu/atmega_common/malloc-wrappers
cpu/atmega_common: wrappers for memory management function to avoid preemption
2019-08-13 12:57:42 +02:00
Francisco
3e1077b17b
Merge pull request #12000 from nmeum/pr/gnrc_pktbuf_mark_typo
gnrc_pktbuf: fix typo (guaranteeed → guaranteed)
2019-08-13 08:51:49 +02:00
Gunar Schorcht
d84f75b4d0 cpu/atmega_common: activate wrapper functions when linking 2019-08-12 23:22:23 +02:00
Gunar Schorcht
f52162bcb0 cpu/atmega_common: wrappers to avoid preemtion
Memory management function like `malloc`, `calloc`, `realloc` and `free` must not be preempted when they operate on allocator structures. To avoid such a preemption, wrappers around these functions are used which simply disable all interrupts for the time of their execution.
2019-08-12 23:22:23 +02:00
Sören Tempel
3396743bab gnrc_pktbuf: fix typo (guaranteeed → guaranteed) 2019-08-12 22:00:14 +02:00
Francisco
7705f6a93e
Merge pull request #11968 from aabadie/pr/tests/printf_format
tests/log_printfnoformat: add test application & script
2019-08-12 16:58:42 +02:00
Kevin "Tristate Tom" Weiss
e5fe8684ea
Merge pull request #11995 from cladmi/pr/murdock/softdevice
murdock: nordic_softdevice_ble: softdevice.hex is a test input
2019-08-12 15:47:39 +02:00
Gaëtan Harter
e70efb769c
murdock: nordic_softdevice_ble: softdevice.hex is a test input
When running tests using 'nordic_softdevice_ble', the 'softdevice.hex'
file must also be taken into account for the test hashing and be
uploaded to the separated murdock testing boards.

When listed as dependency from `test-input-hash` the file must have a
target, which he has not. The file is implicitly created when compiling
`ELFFILE` so declare it as order only dependency.
In practice `BASELIBS` could be enough or even `pkg-build-softdevice`
but I do not want to be depend that much on internals there.
2019-08-12 14:35:58 +02:00
benpicco
700b121936
Merge pull request #11990 from fabian18/drivers/include/periph/eeprom-api-change
drivers/include/periph/eeprom: Changed uint8_t* to void* in API
2019-08-11 13:10:22 +02:00
Juan I Carrano
b48afd6375
Merge pull request #11807 from JulianHolzwarth/pr/xtimer_mutex_lock_timeout/first_fix_improvements
sys/xtimer/xtimer.c: _mutex_timeout() cleanup
2019-08-09 19:23:16 +02:00
Gunar Schorcht
ba00269dc9 sys/auto_init/can: cleanup for STM32 CAN controller
Initialization code for module `can_stm32` is obsolete since the STM32 CAN controller driver isn't a module anymore.
2019-08-09 18:23:05 +02:00
JulianHolzwarth
c1f58186cb xtimer/xtimer.c: sched_switch instead of yield
because of pr #11759: not all boards check for is_in_irq when thread_yield_higher
2019-08-09 17:29:40 +02:00
JulianHolzwarth
1bcb4fcc5f xtimer/xtimer.c: _mutex_timeout improvements
Only yields and change threads status when thread was removed from mutex list.
2019-08-09 17:29:40 +02:00
JulianHolzwarth
a321dfc51d xtimer/xtimer.c: ensure modifing mutex is done with interrupt disabled
if xtimer_set spins the callback is executed in the thread context.

comment to explain irq_disable
and when this line could be removed
(when xtimer stops executing the callback funtion from thread context)
2019-08-09 17:28:54 +02:00
fabian18
2c001f5a6c drivers/include/periph/eeprom: Changed uint8_t* to void* in API 2019-08-09 17:27:32 +02:00
Juan I Carrano
e806d4bcbd
Merge pull request #11985 from fjmolinas/pr_k64f_hwrng
cpu/kinetis: enable HWRNG for k64f
2019-08-09 16:45:52 +02:00
Francisco
56a6e5d53e
Merge pull request #11933 from miri64/shell/fix/check-sender
shell_commands: check ICMPv6 echo reply sender
2019-08-09 16:27:39 +02:00
Francisco Molina
0ce2081817 cpu/kinetis: re-enable HWRNG for k64f
- Fix SCGx used for RNGA since RNGA is not mapped
  to SCG3 for K64F.
2019-08-09 15:47:13 +02:00
9cf8da0287
Merge pull request #11899 from fjmolinas/pr_stm32f7_riotboot_requirements
cpu/stm32f7: add riotboot requirements
2019-08-09 15:36:50 +02:00
7f857ca97d
Merge pull request #11921 from miri64/github/enh/stale-bot
github: add configuration for stale-bot
2019-08-09 14:54:51 +02:00
Francisco Molina
644cb9f461 boards: add riotboot for nucleo-f722ze/f746zg/f767zi 2019-08-09 13:15:02 +02:00