1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /************************************************************************
- Project: Welling Motor Control Paltform
- Filename: tbs.c
- Partner Filename: tbs.h
- Description: Time base for speed loop
- Complier: IAR Embedded Workbench for ARM 7.80, IAR Systems.
- CPU TYPE : GD32F3x0
- *************************************************************************
- Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
- All rights reserved.
- *************************************************************************
- *************************************************************************
- Revising History (ECL of this file):
- ************************************************************************/
- #ifndef _TBS_C_
- #define _TBS_C_
- #endif
- /************************************************************************
- Included File
- *************************************************************************/
- #include "user.h"
- #include "FSM_1st.h"
- #include "profiler.h"
- /************************************************************************
- Constant Table (N/A)
- *************************************************************************/
- /*************************************************************************
- Exported Functions (N/A)
- *************************************************************************/
- /***************************************************************
- Function: tbS_voIsr;
- Description: TBS interrupt service
- Call by:
- Input Variables: N/A
- Output/Return Variables: N/A
- Subroutine Call: ...;
- Reference: N/A
- ****************************************************************/
- void tbs_voIsr(void)
- {
- /* Alarm detect */
- alm_voDetecTBS(&alm_stIn, &alm_stDetectTbsCoef);
- /* 1st FSM */
- FSM1st_Sys_state.Tbs_hook();
- }
- /*************************************************************************
- Copyright (c) 2018 Welling Motor Technology(Shanghai) Co. Ltd.
- All rights reserved.
- *************************************************************************/
- #ifdef _TBS_C_
- #undef _TBS_C_ /* parasoft-suppress MISRA2004-19_6 "本项目中无法更改,后续避免使用" */
- #endif
- /*************************************************************************
- End of this File (EOF)!
- Do not put anything after this part!
- *************************************************************************/
|