#include "../Peripheral/SPI.h"
#include "../../Common/Common.h"
#include "USBKEY/Dataflash.h"
Defines | |
#define | DATAFLASH_CHIP_MASK(index) __GET_DATAFLASH_MASK(index) |
Functions | |
static uint8_t | Dataflash_GetSelectedChip (void) |
static void | Dataflash_SelectChip (uint8_t ChipMask) |
static void | Dataflash_DeselectChip (void) |
static uint8_t | Dataflash_TransferByte (const uint8_t Byte) ATTR_ALWAYS_INLINE |
static void | Dataflash_SendByte (const uint8_t Byte) ATTR_ALWAYS_INLINE |
static uint8_t | Dataflash_ReceiveByte (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT |
static void | Dataflash_Init (void) |
static void | Dataflash_ToggleSelectedChipCS (void) |
static void | Dataflash_WaitWhileBusy (void) |
static void | Dataflash_SelectChipFromPage (const uint16_t PageAddress) |
static void | Dataflash_SendAddressBytes (uint16_t PageAddress, const uint16_t BufferByte) |
This file is the master dispatch header file for the board-specific dataflash driver, for boards containing dataflash ICs for external non-volatile storage.
User code should include this file, which will in turn include the correct dataflash driver header file for the currently selected board.
If the BOARD value is set to BOARD_USER, this will include the /Board/Dataflash.h file in the user project directory.