samples/spi: Permit specifying low test frequency
The STM32 lower frequency is different, let us specify a different one. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
9eb865e03a
commit
394aa8127a
1 changed files with 4 additions and 0 deletions
|
@ -57,7 +57,11 @@ u8_t buffer_tx[] = "0123456789abcdef\0";
|
|||
u8_t buffer_rx[BUF_SIZE] = {};
|
||||
|
||||
struct spi_config spi_slow = {
|
||||
#if defined(MIN_FREQ)
|
||||
.frequency = MIN_FREQ,
|
||||
#else
|
||||
.frequency = 128000,
|
||||
#endif
|
||||
.operation = SPI_OP_MODE_MASTER | SPI_MODE_CPOL |
|
||||
SPI_MODE_CPHA | SPI_WORD_SET(8) | SPI_LINES_SINGLE,
|
||||
.slave = SPI_SLAVE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue