diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-02-06 17:05:33 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-02-06 17:05:33 +0000 |
commit | 4d131de85b386b1ae948032e06831b0250e89070 (patch) | |
tree | 010fef2d42b91510f2ff08c836e916fab1d96c7d /LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Dataflash.h | |
parent | fdab3aef8629f01f9b01b4bfc76904666df439e2 (diff) | |
download | lufa-4d131de85b386b1ae948032e06831b0250e89070.tar.gz lufa-4d131de85b386b1ae948032e06831b0250e89070.tar.bz2 lufa-4d131de85b386b1ae948032e06831b0250e89070.zip |
Add board driver support for the Atmel XMEGA-B1 Xplained board.
Fix Dataflash driver for the A3BU-Xplained board.
Minor documentation improvements.
Diffstat (limited to 'LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Dataflash.h')
-rw-r--r-- | LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Dataflash.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Dataflash.h b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Dataflash.h index d88329770..9eb3b38ea 100644 --- a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Dataflash.h +++ b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/Dataflash.h @@ -93,25 +93,24 @@ /** Sends a byte to the currently selected dataflash IC, and returns a byte from the dataflash. * - * \param[in] Byte of data to send to the dataflash + * \param[in] Byte Byte of data to send to the dataflash * * \return Last response byte from the dataflash */ static inline uint8_t Dataflash_TransferByte(const uint8_t Byte) ATTR_ALWAYS_INLINE; static inline uint8_t Dataflash_TransferByte(const uint8_t Byte) { - // TODO - return 0; + return SPI_TransferByte(&SPID, Byte); } /** Sends a byte to the currently selected dataflash IC, and ignores the next byte from the dataflash. * - * \param[in] Byte of data to send to the dataflash + * \param[in] Byte Byte of data to send to the dataflash */ static inline void Dataflash_SendByte(const uint8_t Byte) ATTR_ALWAYS_INLINE; static inline void Dataflash_SendByte(const uint8_t Byte) { - // TODO + SPI_SendByte(&SPID, Byte); } /** Sends a dummy byte to the currently selected dataflash IC, and returns the next byte from the dataflash. @@ -121,8 +120,7 @@ static inline uint8_t Dataflash_ReceiveByte(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT; static inline uint8_t Dataflash_ReceiveByte(void) { - // TODO - return 0; + return SPI_ReceiveByte(&SPID); } /** Determines the currently selected dataflash chip. |