FLASH.H 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. /******************* (C) COPYRIGHT 2019 Fortiortech Shenzhen *******************
  2. * File Name : FU68xx_4_FLASH.h
  3. * Creat Author : Any Lin, R&D
  4. * Modify Author : Any Lin, R&D
  5. * Creat Date : 2019-06-08
  6. * Modify Date : 2019-06-11
  7. * Description :
  8. ********************************************************************************
  9. * All Rights Reserved
  10. *******************************************************************************/
  11. #ifndef __FLASH_H__
  12. #define __FLASH_H__
  13. /******************************************************************************///Including Header Files
  14. /******************************************************************************///Define Macro
  15. /******************************************************************************///Define Type
  16. typedef enum
  17. {
  18. FLAERR_ADDR = -3, // Flash状态: 操作的地址错误
  19. FLAERR_KEY = -2, // Flash状态: Flash在复位前无法执行任何操作
  20. FLAERR_DAT = -1, // Flash状态: Flash编程失败
  21. FLA_NORMAL = 0, // Flash状态: Flash正常
  22. }ETypeFlashSta;
  23. /******************************************************************************///External Symbols
  24. /******************************************************************************///External Function
  25. extern ETypeFlashSta FLASH_Erase (uint16 wAddr);
  26. extern ETypeFlashSta FLASH_Progarm (uint16 wAddr, uint8 ucDat);
  27. extern ETypeFlashSta FLASH_Progarms(uint16 wAddr, uint8 *ucpDat, uint16 wLen);
  28. #endif