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

54 Commits

Author SHA1 Message Date
Marian Buschsieweke
496abf0a4e
tests/periph_timer: also test for spurious IRQs
Previously the test only checked if IRQs fired when expected. This
extends the test to also check that IRQs do not fire when not expected.
2022-11-25 12:33:54 +01:00
Marian Buschsieweke
e7ee53e6ed
tests/periph_timer: fix style and use of volatile
To synchronize communication via shared memory between ISR context and
thread context it is a common misconception that `volatile` is
sufficient. This is however is not the cause and the cause of many
subtle data race bugs. This fixes the issue.
2022-11-25 12:33:54 +01:00
Gunar Schorcht
e496dd8dcf tests: add esp32-ci / esp8266-ci as external boards
Add `esp32-ci` and `esp8266-ci` as external boards to cover optional module `esp_hw_counter` (ESP32) and `esp_sw_timer` (ESP8266) by CI compilation.
2022-06-03 07:33:44 +02:00
ea3c59f41a
tests: use coreclk() instead of CLOCK_CORECLOCK 2021-12-15 13:14:19 +01:00
Gerson Fernando Budke
0232e9d89c boards: Introduce atxmega-a1-xplained board
Add initial version.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-08-24 21:25:14 -03:00
Gerson Fernando Budke
6149531684 boards: Introduce atxmega-a3bu-xplained board
Add initial version.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-04-07 20:06:11 -03:00
Gerson Fernando Budke
4a9f0efb6d boards: introduce atmega328p-xplained-mini
Add ATmega328P Xplained Mini board.  The board is an official
development kit from MCHP based on the Arduino UNO, reduced
hardware, with a xplainedmini debugger and CDC ACM serial
converter.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-27 14:10:19 -03:00
Gerson Fernando Budke
553e968a00 tests/periph_timer/Makefile: Add xmega 500kHz board
Atmel XMEGA CPU don't have a timer prescaler div16 and div32 option.
This means that at full speed (32MHz) it is not possible have a 1MHz
clock tick.  Define default tick to 500kHz and add atxmega-a1u-xpro
boards to test list.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-15 20:16:10 -03:00
Leandro Lanzieri
d2ca66e476
tests: add common Kconfig configuration for sync 2021-01-20 17:36:14 +01:00
Bas Stottelaar
e8314811ae tests/periph_timer: add to list of 32kHz boards 2021-01-06 23:44:54 +01:00
Bas Stottelaar
cb50c1a006 tests: update for e180-zg120b-tb 2020-11-23 00:36:20 +01:00
Bas Stottelaar
b75446e2f8 tests/periph_rtc: add to list of 32kHz boards 2020-11-11 00:27:18 +01:00
Bas Stottelaar
55a55c7ba5 tests/periph_timer: add to list of 32kHz boards 2020-11-10 23:03:08 +01:00
Leandro Lanzieri
59dee592cd
tests/periph_*: add Kconfig configuration files 2020-11-06 15:58:00 +01:00
Marian Buschsieweke
bf5cebb6b3
tests/periph_timer: Fix frequency for waspmote-pro
The waspmote-pro cannot run at 250 kHz, as no available divider can divide
its core frequency down to that. Instead, the board can be tested at its
core clock frequency.
2020-09-23 20:12:06 +02:00
4d1ed718a1
tests/periph_timer: fix typo for boards using 250kHz timer 2020-09-16 19:55:33 +02:00
Francisco Molina
6684a593c0
tests/periph_timer: add efm32 boards to 32Khz timer list 2020-08-31 09:38:32 +02:00
Francisco Molina
4cc2457b4f
tests/periph_timer: TIMER_SPEED=CLOCK_CORECLOCK for cc2538 boards 2020-03-21 19:32:24 +01:00
Francisco Molina
daab688998
tests/periph_timer: adapt to cc2538 boards 2020-03-19 16:31:58 +01:00
Thomas Stilwell
ef6024cf1a boards: add kw41z-mini 2020-02-27 21:34:04 -06: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
Francisco Molina
41e9f06b85 flake8: fix PEP8 W608 invalid escape sequence 2019-11-22 11:47:49 +01:00
Francisco Molina
f851a40098 tests/periph_timer: 32Khz as timer speed for frdm-k%f 2019-11-14 10:42:34 +01:00
cab3cc473e
tests/periph_timer: add atmega256rfr2-xpro to boards with 25KHz timer 2019-11-06 12:46:28 +01:00
Marian Buschsieweke
6441e3c178
tests: Updated BOARD_BLACKLIST
- Added atmega328p to BOARD_BLACKLIST where needed
- Adapted special timer frequency selection in tests/periph_timer to also
  select 25kHz for the atmega328p board
2019-10-21 12:54:46 +02:00
Gaëtan Harter
8e5422ff78
applications: remove 'TEST_ON_CI_WHITELIST += all'
This is now the default so not required anymore.
2019-08-21 12:51:17 +02:00
kenrabold
e4bee51a9d tests/* : blacklisting for hifive1b 2019-07-19 13:25:18 -07:00
Marian Buschsieweke
855b5bd54d
tests: Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
2019-05-24 17:57:44 +02:00
Marian Buschsieweke
112b88f7ee
tests/periph_timer: Set freq for Arudino Leonardo
The Arduino Leonardo requires - like the other ATmega based Arduinos - a
different frequency than the default 1000000, as this frequency cannot be
achieved on a 16MHz ATmega with any available prescaler.
2019-05-24 15:12:47 +02:00
96fd49520b
tests/periph_timer: include kw41z boards in low-power timers 2019-04-30 14:58:40 +02:00
Marian Buschsieweke
0e90e6195f
tests: Updated Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-nano to BOARD_INSUFFICIENT_MEMORY/BOARD_BLACKLIST following suit
of how arduino-uno is marked, as arduino-nano is mostly an Uno in a different
form factor.
2019-03-14 15:39:54 +01:00
332b06a319 tests/periph_timer: add hifive1 exception 2019-02-21 11:40:30 +01:00
Sebastian Meiling
7913811a0f tests: board specific TIMER_SPEED in periph_timer
By default the periph_timer tests wants to init all timers with 1MHz,
which is not suitable for all timers, e.g. the atmega timers cannot
run at that speed to make the test work they need to be set to 250kHz.
2018-11-29 16:25:06 +01:00
Sebastian Meiling
739cb85830 tests: add README.md for periph_timer
Moving test description from code to a separate README.md file to reduce
binary size to make the test fit on an arduino-uno.
2018-11-29 16:24:51 +01:00
472bd0ae01 tests: remove obsolete local test targets 2018-09-07 15:13:08 +02:00
cladmi
661868cf4e
tests/periph: blacklist arduino boards based on ROM/RAM overflow 2018-09-05 12:08:20 +02:00
smlng
3893f04d00 tests: move testrunner import up
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
2018-08-13 14:11:24 +02:00
smlng
f9824abedb tests: remove unused os package import
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
2018-08-13 14:11:23 +02:00
smlng
13d61b5c20 tests: use testrunner from pythonlibs
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
2018-08-13 14:11:23 +02:00
Gaëtan Harter
154fbcff35
tests: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 10:52:26 +02:00
Francisco Acosta
1886256f90 tests: add HIL for selected test 2018-04-09 17:50:22 +02:00
Martine Lenders
ba2453d320
Merge pull request #8247 from aabadie/pr/tests/python_E305
tests: fix python style E305
2017-12-13 10:52:57 +01:00
87b14d96c8 tests: fix python style E402
E402 module level import not at top of file
2017-12-12 22:40:03 +01:00
d3015f0a57 tests: fix python style E305
expected 2 blank lines after class or function definition, found 1
2017-12-12 15:43:27 +01:00
fc2eff9fba tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
Martine Lenders
a524d9f9fa
Merge pull request #8027 from aabadie/pr/test_pexpect_periph_timer
tests/periph_timer: migrate to testrunner
2017-11-14 13:59:06 +01:00
df35860c55 tests/periph_timer: migrate to testrunner 2017-11-14 12:43:05 +01:00
Bas Stottelaar
fd396045de test: periph_timer: check if argument is passed. 2017-11-13 17:28:53 +01:00
smlng
f84e8a37e2 tests: add missing include for Makefile.tests_common 2017-01-20 17:24:56 +01:00
Hauke Petersen
31f6e35533 tests/periph_timer: adapted to API changes 2016-02-29 14:45:00 +01:00