You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
622 B

#pragma once
#define VERSION "v1.0"
// 设备ID
#define DEVICE_ID (2)
// 调试串口
#define DEBUG_UART huart1
// 调试指示灯
#define DEBUG_LIGHT_GPIO PE8
// 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置
// http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
#define DELAY_US_TIMER htim6
#define MICROSWITCH_NUM 6
//
#define MOTOR_SPI hspi1
#define TMC5130_MOTOR_NUM 2
#define MOTOR_CH(n) (n)
// FYBJ_PY
#define MOTOR2_CSN PA4 //
#define MOTOR2_ENN PE11
// FYBJ_TJ_DRV
#define MOTOR1_CSN PC4 //
#define MOTOR1_ENN PE12