/************************************************************************ Project: Welling Motor Control Paltform Filename: macroequ.h Partner Filename: macroequ.c Description: The header file of macroequ.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 MACROEQU_H #define MACROEQU_H /************************************************************************ Compiler Directives (N/A) ************************************************************************/ #ifdef _MACROEQU_C_ #define _MACROEQU_EXT #else #define _MACROEQU_EXT extern #endif /************************************************************************ Definitions & Macros (#define ...) ************************************************************************/ /************************************************************************ TypeDefs & Structure defines ************************************************************************/ /************************************************************************ Constant Table *************************************************************************/ /************************************************************************ Exported Variables: ************************************************************************/ #ifdef _MACROEQU_C_ _MACROEQU_EXT UWORD MN_BUFFER[0x20]; _MACROEQU_EXT UWORD TBP_BUFFER[0x20]; _MACROEQU_EXT UWORD TBS_BUFFER[0x20]; _MACROEQU_EXT UWORD TBC_BUFFER[0x20]; _MACROEQU_EXT UWORD FUNCTION_BUFFER[0x20]; #else _MACROEQU_EXT UWORD MN_BUFFER[0x20]; _MACROEQU_EXT UWORD TBP_BUFFER[0x20]; _MACROEQU_EXT UWORD TBS_BUFFER[0x20]; _MACROEQU_EXT UWORD TBC_BUFFER[0x20]; _MACROEQU_EXT UWORD FUNCTION_BUFFER[0x20]; #endif /************************************************************************ RAM ALLOCATION: ************************************************************************/ #define cmd_stCmdGenIn (*(CMD_GEN_IN *)TBS_BUFFER) #define cmd_stCmdGenCoefIn (*(CMD_GEN_COFIN *)MN_BUFFER) /************************************************************************ Exported Function Call Prototypes (N/A) ************************************************************************/ /************************************************************************ Local Function Call Prototypes (N/A) ************************************************************************/ /************************************************************************ 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! ************************************************************************/