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:
Neil Armstrong 2017-06-22 17:10:31 +02:00 committed by Anas Nashif
commit 394aa8127a

View file

@ -57,7 +57,11 @@ u8_t buffer_tx[] = "0123456789abcdef\0";
u8_t buffer_rx[BUF_SIZE] = {}; u8_t buffer_rx[BUF_SIZE] = {};
struct spi_config spi_slow = { struct spi_config spi_slow = {
#if defined(MIN_FREQ)
.frequency = MIN_FREQ,
#else
.frequency = 128000, .frequency = 128000,
#endif
.operation = SPI_OP_MODE_MASTER | SPI_MODE_CPOL | .operation = SPI_OP_MODE_MASTER | SPI_MODE_CPOL |
SPI_MODE_CPHA | SPI_WORD_SET(8) | SPI_LINES_SINGLE, SPI_MODE_CPHA | SPI_WORD_SET(8) | SPI_LINES_SINGLE,
.slave = SPI_SLAVE, .slave = SPI_SLAVE,