Dylan Laduranty
6a4259e48a
Merge pull request #12064 from benpicco/sam0-buffered_uart
...
cpu/sam0_common/periph/uart: implement non-blocking write
2019-11-28 10:07:11 +01:00
Benjamin Valentin
0c08abd19a
tests/periph_uart_nonblocking: add simple test application
...
The application is mainly to compile-test non-blocking UART
functionality, but some functional testing is also possible.
With non-blocking UART the total runtime of the program is 2100735 µs
on same54-xpro.
With blocking UART the total runtime is 2152407 µs.
2019-11-28 09:26:58 +01:00
Francisco
372ae95d28
Merge pull request #12628 from aabadie/pr/make/develhelp_cleanup
...
make/develhelp: make usage consistent + add ci check
2019-11-28 09:26:52 +01:00
Dylan Laduranty
3f1027d0c2
tests/periph_adc: fix content printf on failure
2019-11-28 09:07:52 +01:00
Dylan Laduranty
53994bdfeb
Merge pull request #12828 from bergzand/pr/sam0/adc_api
...
sam0/periph_adc: Fix API to return `-1` on unsupported resolution
2019-11-28 09:05:39 +01:00
Gunar Schorcht
e3bb708e4d
cpu/esp32/periph: flush UART TX FIFO before a baudrate change
2019-11-28 08:57:26 +01:00
ae223308bf
tests/memarray: add automatic test script
2019-11-28 08:47:57 +01:00
60c922df1a
tests/memarray: allow overridable macros and print them
...
MAX_NUMBER_BLOCKS and NUMBER_OF_TESTS can be overriden via CFLAGS
2019-11-28 08:47:57 +01:00
7d046b6b8d
Merge pull request #12831 from fjmolinas/pr_fix_interactive_sync_shell
...
autoinit: interactive sync if no shell% in USEMODULE
2019-11-28 08:47:20 +01:00
4e07a26375
Merge pull request #12819 from maribu/atmega_fix
...
cpu/atmega_common: Fixed atmega_exit_isr
2019-11-28 08:43:10 +01:00
f885b90bd9
tests/ps_schedstatistics: improve automatic test script
...
- Ensure the whole ps output is displayed in the terminal before exiting the script
- Escape parenthesis in line regexp
2019-11-28 08:31:11 +01:00
Gunar Schorcht
83892aa184
cpu/esp32/periph: workaround for UART clock problems
...
The UART peripheral clock seems to be sporadically set to wrong value when the CPU clock is changed. In this case, the UART clock is not set to 115.200 kbps but to 96 kbps, so that the output in the console seems like garbage. This can also cause automatic tests to fail. Therefore, the CPU clock is only changed if CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ defines a different default CPU clock than the one already used at boot time.
2019-11-28 08:22:30 +01:00
c9fccbc34d
tests/ps_schedstatistics: use lower load in background threads
...
On slow platforms, such as AVR, the main thread could never run and the shell would remain stuck.
2019-11-28 08:05:00 +01:00
15d58760a9
Merge pull request #12822 from fjmolinas/pr_fix_eol
...
tests: fix tests matching varied sized group regex
2019-11-28 08:01:30 +01:00
Leandro Lanzieri
2733ef45d7
Merge pull request #12798 from kb2ma/gcoap/init_delay
...
net/gcoap: add macro to delay initialization of gcoap
2019-11-28 05:10:43 +01:00
Ken Bannister
e873e5814a
net/gcoap: add macro to delay initialization of gcoap
2019-11-27 17:56:55 -05:00
benpicco
7c9f2e1794
Merge pull request #12791 from maribu/test_isr_yield_higher
...
tests/isr_yield_higher: Make use of US_PER_MS
2019-11-27 23:21:12 +01:00
Francisco Molina
817df972b5
autoinit: interactive sync if no shell%
2019-11-27 23:19:48 +01:00
83215befd9
sam0: change ADC periph to return -1 on wrong resolution
...
The common ADC API dictates that a sample call must return -1 on an
incorrect resolution. The sam0 ADC implementation instead threw an
assertion failure.
2019-11-27 21:09:02 +01:00
7d2e10335d
sam0: remove duplicate _done()
call
2019-11-27 21:08:28 +01:00
chudov
0a151a78da
boards/derfmega*: initial support
2019-11-27 20:53:14 +01:00
Dylan Laduranty
5287e1c052
Merge pull request #12782 from ML-PA-Consulting-GmbH/fix/20191122__sam0common_spi_release
...
cpu/sam0_common/periph/spi: power off spi bus on release
2019-11-27 19:13:19 +01:00
Benjamin Valentin
0d977b3b3c
cpu/sam0_common/periph/uart: implement buffered write
...
Implement interrupt based uart_write() using a tsrb for the TX buffer.
To enable it, add
USEMODULE += periph_uart_nonblocking
to your Makefile.
2019-11-27 19:01:00 +01:00
1271274964
Merge pull request #12824 from fjmolinas/pr_pexpect_doc
...
tests/README: add automated tests guidelines
2019-11-27 18:52:09 +01:00
6e2513a724
Merge pull request #12461 from fjmolinas/pr_apply_interactive_sync_tests
...
tests: use test_interactive_test_util when possible
2019-11-27 17:57:04 +01:00
f318572d8a
Merge pull request #12823 from gschorcht/make/fix_log_level
...
makefiles: fix LOG_LEVEL handling
2019-11-27 17:55:10 +01:00
Francisco Molina
5212e86226
doc/doxygen: add build-system-basics.md
2019-11-27 17:32:03 +01:00
d5cf54a674
Merge pull request #12826 from fjmolinas/pr_unexport_programmer
...
boards: unexport PROGRAMMER
2019-11-27 17:00:34 +01:00
Francisco Molina
264b323c66
tests/README: add automated tests guidelines
2019-11-27 15:26:08 +01:00
Francisco Molina
175c48f8d4
tests/gnrc_ndp: add z1 to insufficient memory
2019-11-27 15:07:43 +01:00
Francisco Molina
0996fb87fd
tests: insufficient mem. atmega328p based boards
...
- When using test_interactive_sync_utils, stdin and many more
prints/puts are included. These all go into .bss/.data which
quickly fills up RAM.
2019-11-27 15:07:43 +01:00
Francisco Molina
34c6063520
tests/README.md: add automated test guideline
2019-11-27 15:07:43 +01:00
Francisco Molina
416c048737
tests: add test_utils_interactive_sync when possible
...
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common
- For tests disabling autoinit, add test_utils_interactive_sync to main
- Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring
sudo, `tests/shell`, `tests/minimal` and `tests/stdin`
- Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to
pull `r` and `s` commands
- Remove includes and usage in `tests/main.c` for tests that where
already using test_utils_interactive_sync
2019-11-27 15:07:42 +01:00
Gaëtan Harter
eb9cb198a0
testrunner: auto sync with test_utils_interactive_sync if present
...
Automatically call the test_utils_interactive_sync synchronization if it
is used.
2019-11-27 15:07:42 +01:00
Francisco Molina
838a88f122
sys/shell/commands: add interactive_sync commands
2019-11-27 15:07:42 +01:00
Martine Lenders
dbbdd703ea
Merge pull request #12821 from kaspar030/fix_tests_malloc
...
tests/malloc: fix test regexp to consider whole line
2019-11-27 14:54:42 +01:00
JulianHolzwarth
7cd3e8b73e
xtimer/xtimer.c:_mutex_timeout() improved
...
no longer into the "if" when the mutex is free
2019-11-27 14:49:16 +01:00
Pieter Willemsen
f3b13cf90c
xtimer: check in timeout callback if thread blocked on mutex
...
Prevent a possible race condition when _mutex_timeout fires just after the
mutex was locked but before the xtimer was removed
The flow
int xtimer_mutex_lock_timeout(mutex_t *mutex, uint64_t timeout) {
...
mutex_lock(mutex);
/* mutex locked */
/* _mutex_timeout fires and tries to remove thread from mutex queue */
/* DEBUG: simulate callback call between lock and remove */
xtimer_spin(xtimer_ticks_from_usec(timeout*2));
xtimer_remove(&t);
...
}
2019-11-27 14:48:51 +01:00
Francisco Molina
90bcb016bb
boards: unexport PROGRAMMER
2019-11-27 14:31:01 +01:00
Jannes
e88bbb0d6e
cpu/stm32_common: Edit documentation
2019-11-27 14:15:57 +01:00
Francisco Molina
3db9eab6d9
tests: expect match \r\n or \s
...
- Since `printf()` is buffered it might not arrive in a single
read to pexpect. Regex which terminate in a group match might
match only some elements, this might break tests that depend
on exact group matching.
2019-11-27 14:12:12 +01:00
Jannes
675bb0fe57
tests/conn_can: Edit README
2019-11-27 13:35:57 +01:00
Jannes
0acf55af53
drivers/ncv7356: Add documentation
2019-11-27 13:35:57 +01:00
Gunar Schorcht
5e22de215d
makefiles: fix LOG_LEVEL handling
2019-11-27 12:50:47 +01:00
fb8428cb6d
tests/malloc: fix test regexp to consider whole line
2019-11-27 10:41:33 +01:00
MichelRottleuthner
bf676d4728
Merge pull request #11022 from jia200x/pr/gnrc_lorawan
...
gnrc_lorawan: add support for GNRC based LoRaWAN stack
2019-11-27 09:25:20 +01:00
Daniel Lockau
5ea4fcd9c8
cpu/sam0_common/periph/spi: uncrustify
2019-11-27 07:16:22 +01:00
Daniel Lockau
c5ad13cb18
cpu/sam0_common/periph/spi: power off spi bus on release
2019-11-27 07:16:22 +01:00
Marian Buschsieweke
97f727349b
cpu/atmega_common: Fixed atmega_exit_isr
...
A context switch at the end of the ISR should only occur, if requested.
This fixes this.
2019-11-27 01:39:33 +01:00
Cenk Gündoğan
574c7d52d9
Merge pull request #12818 from kaspar030/add_dotclangd_to_dotgitignore
...
.gitignore: add .clangd/
2019-11-26 22:33:17 +01:00