bootloader.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /************************************************************************
  2. Project: Welling Motor Control Paltform
  3. Filename: bootloader.h
  4. Partner Filename: bootloader.c
  5. Description: The header file of bootloader.c
  6. Complier: IAR Embedded Workbench for ARM 7.80.4
  7. CPU TYPE : GD32F3x0
  8. *************************************************************************
  9. Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
  10. All rights reserved.
  11. *************************************************************************
  12. *************************************************************************
  13. Revising History (ECL of this file):
  14. ************************************************************************/
  15. /************************************************************************
  16. Beginning of File, do not put anything above here except notes
  17. Compiler Directives
  18. ************************************************************************/
  19. #ifndef BOOTLOADER_H
  20. #define BOOTLOADER_H
  21. /************************************************************************
  22. Compiler Directives (N/A)
  23. ************************************************************************/
  24. #ifdef _BOOTLOADER_C_
  25. #define _BOOTLOADER_EXT
  26. #else
  27. #define _BOOTLOADER_EXT extern
  28. #endif
  29. /************************************************************************
  30. Definitions & Macros (#define ...)
  31. ************************************************************************/
  32. //#define BOOTLOADER
  33. //#ifdef BOOTLOADER
  34. //#define APPLICATION_ADDRESS (uint32_t)0x08000800
  35. ///* Private macro -------------------------------------------------------------*/
  36. //#if (defined ( __CC_ARM ))
  37. // __IO uint32_t VectorTable[48] __attribute__((at(0x20000000)));
  38. //#elif (defined (__ICCARM__))
  39. //#pragma location = 0x20000000
  40. // __no_init __IO uint32_t VectorTable[48];
  41. //#elif defined ( __GNUC__ )
  42. // __IO uint32_t VectorTable[48] __attribute__((section(".RAMVectorTable")));
  43. //#elif defined ( __TASKING__ )
  44. // __IO uint32_t VectorTable[48] __at(0x20000000);
  45. //#endif
  46. //#endif
  47. /************************************************************************
  48. TypeDefs & Structure defines
  49. ************************************************************************/
  50. /*typedef struct
  51. {
  52. UWORD XXX;
  53. } XXX;*/
  54. /************************************************************************
  55. Constant Table
  56. *************************************************************************/
  57. /************************************************************************
  58. Exported Variables:
  59. ************************************************************************/
  60. // TEMPLATE_EXT UWORD xxx_uwXXX;
  61. /************************************************************************
  62. RAM ALLOCATION:
  63. ************************************************************************/
  64. //#define xxx_stXXX (*(XXX *)TBC_BUFFER)
  65. /************************************************************************
  66. Exported Function Call Prototypes (N/A)
  67. ************************************************************************/
  68. //#ifdef BOOTLOADER
  69. // _BOOTLOADER_EXT void boot_voBootloader(void);
  70. //#endif
  71. /************************************************************************
  72. Local Function Call Prototypes (N/A)
  73. ************************************************************************/
  74. #ifdef _BOOTLOADER_C_
  75. // static ...
  76. #endif
  77. /************************************************************************
  78. Flag Define (N/A)
  79. ************************************************************************/
  80. /***********************************************************************/
  81. #endif
  82. /************************************************************************
  83. Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
  84. All rights reserved.
  85. *************************************************************************
  86. End of this File (EOF):
  87. Do not put anything after this part!
  88. ************************************************************************/