macroequ.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /************************************************************************
  2. Project: Welling Motor Control Paltform
  3. Filename: macroequ.h
  4. Partner Filename: macroequ.c
  5. Description: The header file of macroequ.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 MACROEQU_H
  20. #define MACROEQU_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif // __cplusplus
  24. /************************************************************************
  25. Compiler Directives (N/A)
  26. ************************************************************************/
  27. #ifdef _MACROEQU_C_
  28. #define _MACROEQU_EXT
  29. #else
  30. #define _MACROEQU_EXT extern
  31. #endif
  32. /************************************************************************
  33. Definitions & Macros (#define ...)
  34. ************************************************************************/
  35. /************************************************************************
  36. TypeDefs & Structure defines
  37. ************************************************************************/
  38. /************************************************************************
  39. Constant Table
  40. *************************************************************************/
  41. /************************************************************************
  42. Exported Variables:
  43. ************************************************************************/
  44. #ifdef _MACROEQU_C_
  45. _MACROEQU_EXT UWORD MN_BUFFER[0x20];
  46. _MACROEQU_EXT UWORD TBP_BUFFER[0x20];
  47. _MACROEQU_EXT UWORD TBS_BUFFER[0x20];
  48. _MACROEQU_EXT UWORD TBC_BUFFER[0x20];
  49. _MACROEQU_EXT UWORD FUNCTION_BUFFER[0x20];
  50. #else
  51. _MACROEQU_EXT UWORD MN_BUFFER[0x20];
  52. _MACROEQU_EXT UWORD TBP_BUFFER[0x20];
  53. _MACROEQU_EXT UWORD TBS_BUFFER[0x20];
  54. _MACROEQU_EXT UWORD TBC_BUFFER[0x20];
  55. _MACROEQU_EXT UWORD FUNCTION_BUFFER[0x20];
  56. #endif
  57. /************************************************************************
  58. RAM ALLOCATION:
  59. ************************************************************************/
  60. #define cmd_stCmdGenIn (*(CMD_GEN_IN *)TBS_BUFFER)
  61. #define cmd_stCmdGenCoefIn (*(CMD_GEN_COFIN *)MN_BUFFER)
  62. /************************************************************************
  63. Exported Function Call Prototypes (N/A)
  64. ************************************************************************/
  65. /************************************************************************
  66. Local Function Call Prototypes (N/A)
  67. ************************************************************************/
  68. /************************************************************************
  69. Flag Define (N/A)
  70. ************************************************************************/
  71. #ifdef __cplusplus
  72. }
  73. #endif // __cplusplus
  74. #endif
  75. /************************************************************************
  76. Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
  77. All rights reserved.
  78. *************************************************************************
  79. End of this File (EOF):
  80. Do not put anything after this part!
  81. ************************************************************************/