main.h 686 B

1234567891011121314151617181920212223242526272829
  1. /*!
  2. \file main.h
  3. \brief the header file of main
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. #ifndef MAIN_H
  10. #define MAIN_H
  11. /* erase fmc pages from FMC_WRITE_START_ADDR to FMC_WRITE_END_ADDR */
  12. void fmc_erase_pages(void);
  13. /* program fmc word by word from FMC_WRITE_START_ADDR to FMC_WRITE_END_ADDR */
  14. void fmc_program(void);
  15. /* reprogram fmc word by word from FMC_WRITE_START_ADDR to FMC_WRITE_END_ADDR */
  16. void fmc_reprogram(void);
  17. /* check fmc erase result */
  18. void fmc_erase_pages_check(void);
  19. /* check fmc program result */
  20. void fmc_program_check(void);
  21. /* check fmc reprogram result */
  22. void fmc_reprogram_check(void);
  23. #endif