123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- /************************************************************************
- 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!
- ************************************************************************/
|