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

drivers/periph/spi: move DMA threshold to common code

This commit is contained in:
Benjamin Valentin 2023-12-23 17:35:29 +01:00
parent 5898c80334
commit fbeb1f9a26
2 changed files with 8 additions and 8 deletions

View File

@ -38,14 +38,6 @@
#define ENABLE_DEBUG 0
#include "debug.h"
/**
* @brief Threshold under which polling transfers are used instead of DMA
* TODO: determine at run-time based on SPI clock
*/
#ifndef CONFIG_SPI_DMA_THRESHOLD_BYTES
#define CONFIG_SPI_DMA_THRESHOLD_BYTES 16
#endif
/**
* @brief Array holding one pre-initialized mutex for each SPI device
*/

View File

@ -80,6 +80,14 @@
extern "C" {
#endif
/**
* @brief Threshold under which polling transfers are used instead of DMA
* TODO: determine at run-time based on SPI clock
*/
#ifndef CONFIG_SPI_DMA_THRESHOLD_BYTES
#define CONFIG_SPI_DMA_THRESHOLD_BYTES 16
#endif
/**
* @brief Default SPI device access macro
*/