flash_if.h 682 B

1234567891011121314151617181920212223242526272829
  1. /*!
  2. \file flash_if.h
  3. \brief USB DFU device flash interface header file
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. /* Define to prevent recursive inclusion -------------------------------------*/
  10. #ifndef FLASH_IF_H
  11. #define FLASH_IF_H
  12. /* Includes ------------------------------------------------------------------*/
  13. #include "dfu_mal.h"
  14. #define FLASH_START_ADDR 0x08000000
  15. #define OB_RDPT 0x1FFFF800
  16. #define FLASH_END_ADDR 0x08010000
  17. #define FLASH_IF_STRING "@Internal Flash /0x08000000/16*002Ka,112*002Kg"
  18. extern DFU_MAL_Property_TypeDef DFU_Flash_cb;
  19. #endif /* FLASH_IF_H */