12 changed files with 172 additions and 102 deletions
-
1Core/Inc/stm32f4xx_it.h
-
3Core/Inc/usart.h
-
10Core/Src/gpio.c
-
1Core/Src/main.c
-
15Core/Src/stm32f4xx_it.c
-
92Core/Src/usart.c
-
44README.md
-
87a8000_cliptip_module.ioc
-
2a8000_cliptip_module.launch
-
2sdk
-
1usrc/board.h
-
16usrc/main.cpp
@ -1,44 +0,0 @@ |
|||
ref:https://iflytop1.feishu.cn/wiki/PbUHwG2o6ikWagkmsiqcTFwAnjp |
|||
|
|||
// 电机通道编号 |
|||
#define MOTOR_SPI hspi1 |
|||
#define TMC5130_MOTOR_NUM 1 |
|||
#define MOTOR0_CSN PA4 |
|||
#define MOTOR0_ENN PB7 |
|||
#define MOTOR1_SPI_MODE_SELECT PB4 |
|||
|
|||
#define ID0 PC0 |
|||
#define ID1 PC1 |
|||
#define ID2 PC2 |
|||
#define ID3 PC3 |
|||
#define ID4 PC4 |
|||
|
|||
// 调试串口zwsd@192.168.1.3:project_boditech_vidas_a8000_v2/a8000_cliptip_module.git |
|||
#define DEBUG_UART huart1 |
|||
// 调试指示灯 |
|||
#define DEBUG_LIGHT_GPIO PE2 |
|||
// 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置 |
|||
// http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md |
|||
#define DELAY_US_TIMER htim6 |
|||
|
|||
// 步进电机 |
|||
#define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0 |
|||
#define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8 |
|||
#define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9 |
|||
|
|||
#define SENSOR_INT0 PD0 |
|||
#define SENSOR_INT1 PD1 |
|||
#define SENSOR_INT2 PD2 |
|||
#define SENSOR_INT3 PD3 |
|||
#define SENSOR_INT4 PD4 |
|||
#define SENSOR_INT5 PD5 |
|||
#define SENSOR_INT6 PD6 |
|||
#define SENSOR_INT7 PD7 |
|||
#define SENSOR_INT8 PD8 |
|||
#define SENSOR_INT9 PD9 |
|||
|
|||
--------------------------------------------------- |
|||
1. 支持位置限制逻辑 |
|||
2. 支持获取当前坐标逻辑 |
|||
3. 支持记录当前点作为逻辑点逻辑 |
|||
4. 支持flash保存参数逻辑 |
@ -1 +1 @@ |
|||
Subproject commit fbe10eeb6c72a4419f1e05c745bca2b7518e54e8 |
|||
Subproject commit 283569575d2fdfa9a9719bbcfba1d874d52aff8f |
Write
Preview
Loading…
Cancel
Save
Reference in new issue