tbc.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /************************************************************************
  2. Project: Welling Motor Control Paltform
  3. Filename: tbc.h
  4. Partner Filename: tbc.c
  5. Description: The header file of tbc.c
  6. Complier: IAR Embedded Workbench for ARM 7.80, IAR Systems.
  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. #include "typedefine.h"
  20. #ifndef TBC_H
  21. #define TBC_H
  22. /************************************************************************
  23. Compiler Directives (N/A)
  24. *************************************************************************/
  25. #ifdef _TBC_C_
  26. #define _TBC_EXT
  27. #else
  28. #define _TBC_EXT extern
  29. #endif
  30. /************************************************************************
  31. Definitions & Macros
  32. *************************************************************************/
  33. /************************************************************************
  34. TypeDefs & Structure defines (N/A)
  35. *************************************************************************/
  36. /************************************************************************
  37. Constant Table
  38. *************************************************************************/
  39. /************************************************************************
  40. Exported Variables
  41. *************************************************************************/
  42. #ifdef _TBC_C_
  43. _TBC_EXT ULONG tbc_ulResDetCnt = 0;
  44. _TBC_EXT UWORD tbc_uwTbcCnt1 = 0;
  45. _TBC_EXT UWORD tbc_uwTbcCnt2 = 0;
  46. #else
  47. _TBC_EXT ULONG tbc_ulResDetCnt;
  48. _TBC_EXT UWORD tbc_uwTbcCnt1;
  49. _TBC_EXT UWORD tbc_uwTbcCnt2;
  50. #endif
  51. /************************************************************************
  52. RAM ALLOCATION (N/A)
  53. *************************************************************************/
  54. /************************************************************************
  55. Exported Function Call Prototypes
  56. *************************************************************************/
  57. #ifdef _TBC_C_
  58. _TBC_EXT void tbc_voUpIsr(void);
  59. _TBC_EXT void tbc_voDownIsr(void);
  60. #else
  61. _TBC_EXT void tbc_voUpIsr(void);
  62. _TBC_EXT void tbc_voDownIsr(void);
  63. #endif
  64. /************************************************************************
  65. Local Function Call Prototypes (N/A)
  66. *************************************************************************/
  67. /************************************************************************
  68. Flag Define (N/A)
  69. *************************************************************************/
  70. /***********************************************************************/
  71. #endif
  72. /************************************************************************
  73. Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
  74. All rights reserved.
  75. *************************************************************************
  76. End of this File (EOF)!
  77. Do not put anything after this part!
  78. *************************************************************************/