/************************************************************************ Project: Welling Motor Control Paltform Filename: bootloader.h Partner Filename: bootloader.c Description: The header file of bootloader.c Complier: IAR Embedded Workbench for ARM 7.80.4 CPU TYPE : GD32F3x0 ************************************************************************* Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd. All rights reserved. ************************************************************************* ************************************************************************* Revising History (ECL of this file): ************************************************************************/ /************************************************************************ Beginning of File, do not put anything above here except notes Compiler Directives ************************************************************************/ #ifndef BOOTLOADER_H #define BOOTLOADER_H /************************************************************************ Compiler Directives (N/A) ************************************************************************/ #ifdef _BOOTLOADER_C_ #define _BOOTLOADER_EXT #else #define _BOOTLOADER_EXT extern #endif /************************************************************************ Definitions & Macros (#define ...) ************************************************************************/ //#define BOOTLOADER //#ifdef BOOTLOADER //#define APPLICATION_ADDRESS (uint32_t)0x08000800 ///* Private macro -------------------------------------------------------------*/ //#if (defined ( __CC_ARM )) // __IO uint32_t VectorTable[48] __attribute__((at(0x20000000))); //#elif (defined (__ICCARM__)) //#pragma location = 0x20000000 // __no_init __IO uint32_t VectorTable[48]; //#elif defined ( __GNUC__ ) // __IO uint32_t VectorTable[48] __attribute__((section(".RAMVectorTable"))); //#elif defined ( __TASKING__ ) // __IO uint32_t VectorTable[48] __at(0x20000000); //#endif //#endif /************************************************************************ TypeDefs & Structure defines ************************************************************************/ /*typedef struct { UWORD XXX; } XXX;*/ /************************************************************************ Constant Table *************************************************************************/ /************************************************************************ Exported Variables: ************************************************************************/ // TEMPLATE_EXT UWORD xxx_uwXXX; /************************************************************************ RAM ALLOCATION: ************************************************************************/ //#define xxx_stXXX (*(XXX *)TBC_BUFFER) /************************************************************************ Exported Function Call Prototypes (N/A) ************************************************************************/ //#ifdef BOOTLOADER // _BOOTLOADER_EXT void boot_voBootloader(void); //#endif /************************************************************************ Local Function Call Prototypes (N/A) ************************************************************************/ #ifdef _BOOTLOADER_C_ // static ... #endif /************************************************************************ Flag Define (N/A) ************************************************************************/ /***********************************************************************/ #endif /************************************************************************ Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd. All rights reserved. ************************************************************************* End of this File (EOF): Do not put anything after this part! ************************************************************************/