You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
769 B

  1. #pragma once
  2. #include <stdbool.h>
  3. #include "main.h"
  4. /**
  5. * @brief
  6. * STM32F407VETx 1024k
  7. *
  8. * index startAdd size
  9. * 0 0x08000000 16k
  10. * 1 0x08004000 16k
  11. * 2 0x08008000 16k
  12. * 3 0x0800C000 16k
  13. * 4 0x08010000 64k
  14. * 5 0x08020000 128k
  15. * 6 0x08040000 128k
  16. * 7 0x08060000 128k
  17. * 8 0x08080000 128k
  18. * 9 0x080A0000 128k
  19. * 10 0x080C0000 128k
  20. * 11 0x080E0000 128k
  21. *
  22. *
  23. * @WARNING:
  24. * 1. ʹõ70x08060000~0x0807FFFF
  25. * 2. ܳ75%
  26. * 3. rawstartaddһλ0xABCD,һλУ
  27. */
  28. #define DEVICE_INFO_START_ADD 0x080E0000 //
  29. typedef struct {
  30. uint16_t index;
  31. uint8_t weak;
  32. uint8_t year;
  33. } xs_device_info_t;
  34. xs_device_info_t* xs_device_info_get();