flash.h 529 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-12-04 Haley the first version
  9. */
  10. #ifndef __FLASH_H_
  11. #define __FLASH_H_
  12. #include <rtthread.h>
  13. /* Erase feature struct define */
  14. struct rom_control_erase
  15. {
  16. rt_uint8_t type;
  17. rt_uint32_t addrstart;
  18. rt_uint32_t pagenums;
  19. };
  20. /**
  21. * @brief External function definitions
  22. *
  23. */
  24. int rt_hw_rom_init(void);
  25. #endif // __FLASH_H_