aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/platforms/STM32/spi_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-24 14:08:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-24 14:08:41 +0000
commit216990672983c3c551f2aaf45cf27d8f9ce68036 (patch)
tree16e391badb15a6b461bba77b7c81f382e1b308a8 /os/io/platforms/STM32/spi_lld.h
parentfb68f0d51775b7e0bafa82fa67573e652babb6a6 (diff)
downloadChibiOS-216990672983c3c551f2aaf45cf27d8f9ce68036.tar.gz
ChibiOS-216990672983c3c551f2aaf45cf27d8f9ce68036.tar.bz2
ChibiOS-216990672983c3c551f2aaf45cf27d8f9ce68036.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1252 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/platforms/STM32/spi_lld.h')
-rw-r--r--os/io/platforms/STM32/spi_lld.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/os/io/platforms/STM32/spi_lld.h b/os/io/platforms/STM32/spi_lld.h
index 23193bc0d..b6698e1b2 100644
--- a/os/io/platforms/STM32/spi_lld.h
+++ b/os/io/platforms/STM32/spi_lld.h
@@ -27,6 +27,8 @@
#ifndef _SPI_LLD_H_
#define _SPI_LLD_H_
+#include <pal.h>
+
#undef FALSE
#undef TRUE
#include <stm32f10x.h>
@@ -77,6 +79,18 @@ typedef struct {
*/
cnt_t spc_clkpulses;
/* End of the mandatory fields.*/
+ /**
+ * @brief The chip select line port.
+ */
+ ioportid_t spc_ssport;
+ /**
+ * @brief The chip select line pad number.
+ */
+ uint16_t spc_sspad;
+ /**
+ * @brief SPI initialization data.
+ */
+ uint16_t spc_cr1;
} SPIConfig;
/**
@@ -102,8 +116,17 @@ typedef struct {
*/
const SPIConfig *spd_config;
/* End of the mandatory fields.*/
+ /**
+ * @brief Pointer to the SPIx registers block.
+ */
SPI_TypeDef *spd_spi;
+ /**
+ * @brief Pointer to the receive DMA channel registers block.
+ */
DMA_Channel_TypeDef *spd_dmarx;
+ /**
+ * @brief Pointer to the transmit DMA channel registers block.
+ */
DMA_Channel_TypeDef *spd_dmatx;
} SPIDriver;