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:
parent
5898c80334
commit
fbeb1f9a26
@ -38,14 +38,6 @@
|
|||||||
#define ENABLE_DEBUG 0
|
#define ENABLE_DEBUG 0
|
||||||
#include "debug.h"
|
#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
|
* @brief Array holding one pre-initialized mutex for each SPI device
|
||||||
*/
|
*/
|
||||||
|
@ -80,6 +80,14 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
* @brief Default SPI device access macro
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user