/** * @copyright 2017 Indie Semiconductor. * * This file is proprietary to Indie Semiconductor. * All rights reserved. Reproduction or distribution, in whole * or in part, is forbidden except by express written permission * of Indie Semiconductor. * * @file flash_device.h */ #ifndef FLASH_DEVICE_H__ #define FLASH_DEVICE_H__ #include /** * @brief Erase a sector flash memory and wait for completion * * @param addr: starting address of the block * @return none */ void Flash_EraseSector(uint32_t sectorAddress); /** * @brief write flash memory and wait for completion * * @param addr: starting address of the data * @return none */ void FLASH_Write2WordsWithECC(uint32_t address,uint32_t dataL,uint32_t dataH); #endif /* __FLASH_DEVICE_H__ */