diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-11-01 06:06:41 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-11-01 06:06:41 +0000 |
commit | 0ad6f1fb530d2e5656ddd7824c97ee3a6b96f675 (patch) | |
tree | 31b31122131ccc4f7370565dc11ef54200552918 /LUFA/Drivers/Board/Dataflash.h | |
parent | cb7f7a8241e5eb4fab9ed3c7f0a6c0600f6d43fb (diff) | |
download | lufa-0ad6f1fb530d2e5656ddd7824c97ee3a6b96f675.tar.gz lufa-0ad6f1fb530d2e5656ddd7824c97ee3a6b96f675.tar.bz2 lufa-0ad6f1fb530d2e5656ddd7824c97ee3a6b96f675.zip |
Add partial support for the Atmel A3BU Xplained's Dataflash IC (physical USART-as-SPI transport driver still pending).
Diffstat (limited to 'LUFA/Drivers/Board/Dataflash.h')
-rw-r--r-- | LUFA/Drivers/Board/Dataflash.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/LUFA/Drivers/Board/Dataflash.h b/LUFA/Drivers/Board/Dataflash.h index ff71e6f7c..f3d6dc4b2 100644 --- a/LUFA/Drivers/Board/Dataflash.h +++ b/LUFA/Drivers/Board/Dataflash.h @@ -206,30 +206,18 @@ * \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) - { - return SPI_TransferByte(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 */ static inline void Dataflash_SendByte(const uint8_t Byte) ATTR_ALWAYS_INLINE; - static inline void Dataflash_SendByte(const uint8_t Byte) - { - SPI_SendByte(Byte); - } /** Sends a dummy byte to the currently selected dataflash IC, and returns the next byte from the dataflash. * * \return Last response byte from the dataflash */ static inline uint8_t Dataflash_ReceiveByte(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT; - static inline uint8_t Dataflash_ReceiveByte(void) - { - return SPI_ReceiveByte(); - } /* Includes: */ #if (BOARD == BOARD_NONE) @@ -244,6 +232,8 @@ #include "AVR8/XPLAIN/Dataflash.h" #elif (BOARD == BOARD_EVK527) #include "AVR8/EVK527/Dataflash.h" + #elif (BOARD == BOARD_A3BU_XPLAINED) + #include "XMEGA/A3BU_XPLAINED/Dataflash.h" #else #include "Board/Dataflash.h" #endif |