tbs.c 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /************************************************************************
  2. Project: Welling Motor Control Paltform
  3. Filename: tbs.c
  4. Partner Filename: tbs.h
  5. Description: Time base for speed loop
  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. #ifndef _TBS_C_
  16. #define _TBS_C_
  17. #endif
  18. /************************************************************************
  19. Included File
  20. *************************************************************************/
  21. #include "syspar.h"
  22. #include "user.h"
  23. #include "FSM_1st.h"
  24. #include "FSM_2nd.h"
  25. /************************************************************************
  26. Constant Table (N/A)
  27. *************************************************************************/
  28. /*************************************************************************
  29. Exported Functions (N/A)
  30. *************************************************************************/
  31. /***************************************************************
  32. Function: tbS_voIsr;
  33. Description: TBS interrupt service
  34. Call by:
  35. Input Variables: N/A
  36. Output/Return Variables: N/A
  37. Subroutine Call: ...;
  38. Reference: N/A
  39. ****************************************************************/
  40. void tbs_voIsr(void)
  41. {
  42. FSM1st_Sys_state.Tbs_hook();
  43. /* System FSM */
  44. }
  45. /*************************************************************************
  46. Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
  47. All rights reserved.
  48. *************************************************************************/
  49. #ifdef _TBS_C_
  50. #undef _TBS_C_
  51. #endif
  52. /*************************************************************************
  53. End of this File (EOF)!
  54. Do not put anything after this part!
  55. *************************************************************************/