tbs.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /* Alarm detect */
  43. //alm_voDetecTBS(&alm_stIn, &alm_stDetectTbsCoef);
  44. FSM1st_Sys_state.Tbs_hook();
  45. /* System FSM */
  46. }
  47. /*************************************************************************
  48. Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
  49. All rights reserved.
  50. *************************************************************************/
  51. #ifdef _TBS_C_
  52. #undef _TBS_C_
  53. #endif
  54. /*************************************************************************
  55. End of this File (EOF)!
  56. Do not put anything after this part!
  57. *************************************************************************/