a6910f1660
tests/periph_spi: Convert to ztimer
2021-12-07 16:31:15 +01:00
Francisco
a1cbcc9ede
Merge pull request #15902 from maribu/spi-api-change-1
...
drivers/periph_spi: let spi_acquire return void
2021-09-02 08:50:56 +02:00
Marian Buschsieweke
198046e167
tests/perpih_spi: update to new API
2021-09-01 21:38:40 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
0f8c0c3f1a
tests/periph_spi: compact help messages a bit to shave off some bytes
2021-02-25 12:41:04 +01:00
Marian Buschsieweke
eb1279005c
tests: Cleanup access to internal variables
...
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:
1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
functions
2020-08-24 09:08:01 +02:00
Benjamin Valentin
bd7acf4adf
tests/periph_spi: add test for periph_spi_reconfigure feature
2020-06-21 21:21:39 +02:00
ba20272fb3
Merge pull request #14108 from benpicco/tests/periph_spi-enhance
...
tests/periph_spi: add benchmark for acquire / release
2020-05-20 20:18:40 +02:00
Benjamin Valentin
a57bd08a11
tests/periph_spi: add benchmark for acquire / release
2020-05-20 19:34:07 +02:00
Benjamin Valentin
1178c82a98
tests/periph_spi: introduce _xtimer_diff_usec()
...
Don't repeat yourself.
2020-05-20 17:48:15 +02:00
ae88f1e079
Merge pull request #14102 from MrKevinWeiss/pr/test/spi/defaultcs
...
tests/periph_spi: Expose default SPI CS pins
2020-05-20 12:09:06 +02:00
MrKevinWeiss
867df82ced
tests/periph_spi: Expose default SPI CS pins
...
Expose the option to use default cs pins defined as DEFAULT_SPI_CS_PORT and DEFAULT_SPI_CS_PIN.
This is used if a wiring environment is already defined.
CFLAGS can be used to define the CS pin from the environment provided allowing easier automation of tests.
2020-05-20 10:44:57 +02:00
b3cb03ae90
tests/periph_spi: Fix column alignment
2020-05-19 14:21:20 +02:00
7c44208e64
tests/periph_spi: Convert printf specifier to PRIu32
2020-05-19 14:20:42 +02:00
788d186725
tests/periph_spi: Add thread runtime stats
...
This commit extends the periph_spi benchmark with timing statistics for
the thread runtime, counting only the time the thread initiating the SPI
request is busy with the SPI transfer. This is useful to measure timings
on SPI transfers when DMA and other async mechanisms are used to
transfer the bytes
2020-05-19 14:17:46 +02:00
smlng
e381317fbf
make: fix sign-compare errors
...
cpu, nrf5x_common: fix sign-compare in periph/flashpage
drivers, periph_common: fix sign-compare in flashpage
cpu, sam0_common: fix sign-compare error in periph/gpio
cpu, cc2538: fix sign-compare in periph/timer
cpu, sam3: fix sign-compare in periph/gpio
cpu, stm32_common: fix sign-compare in periph/pwm
cpu, stm32_common: fix sign-compare in periph/timer
cpu, stm32_common: fix sign-compare in periph/flashpage
cpu, nrf5x_common: fix sign-compare in radio/nrfmin
cpu, samd21: fix sign-compare in periph/pwm
cpu, ezr32wg: fix sign-compare in periph/gpio
cpu, ezr32wg: fix sign-compare in periph/timer
drivers, ethos: fix sign-compare
sys, net: fix sign-compare
cpu, atmega_common: fix sign-compare error
cpu, msp430fxyz: fix sign-compare in periph/gpio
boards, msb-430-common: fix sign-compare in board_init
driver, cc2420: fix sign-compared
sys/net: fix sign-compare in gnrc_tftp
driver, pcd8544: fix sign-compare
driver, pn532: fix sign-compare
driver, sdcard_spi: fix sign-compare
tests: fix sign_compare
sys/net, lwmac: fix sign_compare
pkg, lwip: fix sign-compare
boards, waspmote: make CORECLOCK unsigned long to fix sign_compare error
tests, sock_ip: fix sign compare
tests, msg_avail: fix sign compare
tests, sock_udp: fix sign compare
boards: fix sign-compare for calliope and microbit matrix
2017-11-28 11:55:48 +01:00
smlng
ce0aa113b3
tests, periph_spi: fix unused variable
2017-06-03 22:55:43 +02:00
Hauke Petersen
a25b25d830
tests/periph_spi: rewrite of SPI test
2017-01-25 16:46:04 +01:00
kYc0o
f6303d5f53
tests/periph_spi: print int variables instead of spi_*_t variables
2016-07-13 16:43:46 +02:00
kYc0o
8c6ebc0785
tests/periph_spi: match with overriden spi enumerations
2016-07-12 16:58:16 +02:00
PeterKietzmann
3b18263ce8
tests/periph_spi: fix printf format fot GPIO
2016-07-11 09:05:20 +02:00
Hauke Petersen
0e4446e261
tests: adapted other tests to GPIO changes
2016-03-17 14:55:30 +01:00
Hauke Petersen
4dd57aafb7
tests/periph_spi: removed LED_xx calls
2016-03-15 18:37:53 +01:00
Hauke Petersen
3ece1fc4c4
tests: s/GPIO(x,y)/GPIO_PIN(x,y)/
2015-10-13 14:59:54 +02:00
25f900e489
tests, examples: adapt to simplified shell
2015-09-03 13:33:49 +02:00
Joakim Gebart
ebce349180
tests/periph_spi: printf format fixes
2015-07-14 08:11:15 +02:00
Hauke Petersen
55752ff4f2
Merge pull request #3202 from haukepetersen/opt_shell_init
...
sys/shell: changed signature of put_char pointer
2015-06-15 17:28:40 +02:00
Hauke Petersen
1bd7111a7b
tests: pass [get|put]char directly in shell_init
2015-06-14 17:09:49 +02:00
Hauke Petersen
6994a1d4ec
test/periph_spi: adjusted to GPIO driver changes
2015-06-14 13:01:18 +02:00
Hauke Petersen
2deedcff6a
tests/periph_spi: adapted to change GPIO driver IF
2015-06-12 19:06:48 +02:00
kushalsingh007
9aae656be9
shell: Return-based error-handling for shell handlers
...
- Included the missing parts.
- Squashed with @authmillenon's commit
2015-03-25 23:54:04 +05:30
Joakim Gebart
dfb0d58cfb
tests/periph_spi: Lock bus for exclusive access when communicating.
2015-01-19 19:05:40 +01:00
PeterKietzmann
c917e6d374
tests/periph_spi: correct test application
2015-01-16 11:15:42 +01:00
PeterKietzmann
7aec98c57d
Added a function for the slave to print received data.
2014-10-24 15:43:01 +02:00
Ludwig Ortmann
1e73bbb961
tests/periph_spi: let build fail without SPI
2014-10-13 18:16:57 +02:00
Thomas Eichinger
89608b613e
tests/periph_spi: fix usage of board specific LED define
2014-09-25 13:59:12 +02:00
Hauke Petersen
1f1360eff9
[SQUASH ME] test: fixed according to updated GPIO interface
2014-09-24 15:41:48 +02:00
Hauke Petersen
1020d90b2b
[SQUASH ME] test: guard if no SPI device defined
2014-09-24 15:41:48 +02:00
Hauke Petersen
faf930e36b
[SQUASH ME] tests/periph_spi: rewrote test
2014-09-24 15:41:48 +02:00
Hauke Petersen
969b8401d8
tests: added periph_spi test
2014-09-24 15:41:48 +02:00