diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-28 08:40:21 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-28 08:40:21 +0000 |
commit | f4b0c6a8182e009c4a91b8feb05f0e77dfcd6ae5 (patch) | |
tree | 6c022a968389978345fd25c2bfbe8d4f3f774066 /os/hal/ports/LPC/LPC214x | |
parent | 541fc3bcfaac3cb0dc22a649bc7d377c5ac72f73 (diff) | |
download | ChibiOS-f4b0c6a8182e009c4a91b8feb05f0e77dfcd6ae5.tar.gz ChibiOS-f4b0c6a8182e009c4a91b8feb05f0e77dfcd6ae5.tar.bz2 ChibiOS-f4b0c6a8182e009c4a91b8feb05f0e77dfcd6ae5.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11202 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/LPC/LPC214x')
-rw-r--r-- | os/hal/ports/LPC/LPC214x/hal_spi_lld.h | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/os/hal/ports/LPC/LPC214x/hal_spi_lld.h b/os/hal/ports/LPC/LPC214x/hal_spi_lld.h index 070567dde..49e29bdf6 100644 --- a/os/hal/ports/LPC/LPC214x/hal_spi_lld.h +++ b/os/hal/ports/LPC/LPC214x/hal_spi_lld.h @@ -96,24 +96,42 @@ typedef struct { /**
* @brief Operation complete callback or @p NULL.
*/
- spicallback_t end_cb;
- /* End of the mandatory fields.*/
+ spicallback_t end_cb;
+#if (SPI_SELECT_MODE == SPI_SELECT_MODE_LINE) || defined(__DOXYGEN__)
+ /**
+ * @brief The chip select line.
+ */
+ ioline_t ssline;
+#endif
+#if (SPI_SELECT_MODE == SPI_SELECT_MODE_PORT) || defined(__DOXYGEN__)
/**
- * @brief The chip select line port.
+ * @brief The chip select port.
*/
- ioportid_t ssport;
+ ioportid_t ssport;
/**
- * @brief The chip select line pad number.
+ * @brief The chip select port mask.
*/
- uint16_t sspad;
+ ioportmask_t ssmask;
+#endif
+#if (SPI_SELECT_MODE == SPI_SELECT_MODE_PAD) || defined(__DOXYGEN__)
+ /**
+ * @brief The chip select port.
+ */
+ ioportid_t ssport;
+ /**
+ * @brief The chip select pad number.
+ */
+ uint_fast8_t sspad;
+#endif
+ /* End of the mandatory fields.*/
/**
* @brief SSP CR0 initialization data.
*/
- uint16_t cr0;
+ uint16_t cr0;
/**
* @brief SSP CPSR initialization data.
*/
- uint32_t cpsr;
+ uint32_t cpsr;
} SPIConfig;
/**
|