123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- /************************************************************************
- 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
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
- /************************************************************************
- 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)
- ************************************************************************/
- #ifdef __cplusplus
- }
- #endif // __cplusplus
- #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!
- ************************************************************************/
|