1 #include "hpm_gptmr_drv.h"
2 #include "hpm_clock_drv.h"
3 #include "hpm_uart_drv.h"
4 #include "hpm_synt_drv.h"
5 #include "libhpm_motor.h"
9 #define BOARD_BLDC_TMR_MS HPM_GPTMR2
10 #define BOARD_BLDC_TMR_CH 0
11 #define BOARD_BLDC_TMR_CMP 0
12 #define BOARD_BLDC_TMR_IRQ IRQn_GPTMR2
13 #define BOARD_BLDC_TMR_RELOAD (1000000U)
14 #define BOARD__BLDC_GPTMR_CLK_NAME clock_gptmr2
21 #define MOVE_BASOLUTE_POS_R 20
36 #define MOVE_JERK 1000
41 #define CONSTANT_SPEED_TIME_S 1
52 #define DWELLTIME_MS 500
57 #define ISR_TIME_S 0.01
move_mode
Definition: libcmdtest.h:59
@ SIGNLE_MOVE_TYPE
user define motor in signle move type ;位置模式下,电机轴以单次往返模式运动
Definition: libcmdtest.h:69
@ CONTINOUS_RONUD_MOVE_TYPE
user define motor in continous round move type ;位置模式下,电机轴以连续往返模式运动
Definition: libcmdtest.h:64
@ MULTIPLE_MOVE_TYPE
user define motor in multiple move type ;位置模式下,电机轴以多次往返模式运动
Definition: libcmdtest.h:74