Board specific Dataflash driver header for the Atmel EVK527. More...
#include "../../../../Common/Common.h"#include "../../../Misc/AT45DB321C.h"#include "../../../Peripheral/SPI.h"Macros | |
| #define | DATAFLASH_CHIP1 (1 << 6) |
| #define | DATAFLASH_NO_CHIP 0 |
| #define | DATAFLASH_PAGE_SIZE 512 |
| #define | DATAFLASH_PAGES 8192 |
| #define | DATAFLASH_TOTALCHIPS 1 |
Functions | |
| static void | Dataflash_DeselectChip (void) ATTR_ALWAYS_INLINE |
| static uint8_t | Dataflash_GetSelectedChip (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT |
| static void | Dataflash_Init (void) |
| static uint8_t | Dataflash_ReceiveByte (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT |
| static void | Dataflash_SelectChip (const uint8_t ChipMask) ATTR_ALWAYS_INLINE |
| static void | Dataflash_SelectChipFromPage (const uint16_t PageAddress) |
| static void | Dataflash_SendAddressBytes (uint16_t PageAddress, const uint16_t BufferByte) |
| static void | Dataflash_SendByte (const uint8_t Byte) ATTR_ALWAYS_INLINE |
| static void | Dataflash_ToggleSelectedChipCS (void) |
| static uint8_t | Dataflash_TransferByte (const uint8_t Byte) ATTR_ALWAYS_INLINE |
| static void | Dataflash_WaitWhileBusy (void) |
Board specific Dataflash driver header for the Atmel EVK527.
| Name | Info | Select Pin | SPI Port |
|---|---|---|---|
| DATAFLASH_CHIP1 | AT45DB321C (4MB) | PORTE.6 | SPI0 |