54 #include "HardwareProfile.h"
56 #if !defined(SPIFLASH_CS_TRIS)
57 #error "SPIFLASH_CS_TRIS is not defined!"
60 #if !defined(SPI_FLASH_SECTOR_SIZE)
61 #error "SPI_FLASH_SECTOR_SIZE not defined!"
63 #if !defined(SPI_FLASH_PAGE_SIZE)
64 #error "SPI_FLASH_PAGE_SIZE not defined!"
67 #define SPI_FLASH_SECTOR_MASK (SPI_FLASH_SECTOR_SIZE - 1)
68 #define SPI_FLASH_PAGE_MASK (SPI_FLASH_PAGE_SIZE - 1)
73 #define SPIFlashInit xflashInit
74 #define SPIFlashReadArray xflashReadArray
75 #define SPIFlashBeginWrite xflashBeginWrite
76 #define SPIFlashWrite xflashWrite
77 #define SPIFlashWriteArray xflashWriteArray
78 #define SPIFlashEraseSector xflashEraseSector