#pragma once #define VERSION "v1.0.0" #define MANUFACTURER "http://www.iflytop.com/" #define PROJECT_NAME "a8000_cliptip_module" #define DEBUG_UART huart1 #define DEBUG_LIGHT_GPIO PE2 #define DELAY_US_TIMER htim6 // US延时定时器 #define TIM_IRQ_SCHEDULER_TIMER htim7 // 中断定时器中断调度器 #define IFLTYOP_ZTICKET_TIMER TIM11 // 系统ticket定时器 #define IFLYTOP_ENABLE_OS 1 #define IFLYTOP_PREEMPTPRIORITY_DEFAULT 5 /****************************************FLASH***************************************/ #define IFLYTOP_NVS_CONFIG_FLASH_SECTOR 8 /*********************************************************************************/ // MOTOR1 #define TMC_MOTOR_SPI hspi1 #define TMC5130_MOTOR_NUM 1 #define MOTOR0_CSN PA4 #define MOTOR0_ENN PD0 #define MOTOR1_SPI_MODE_SELECT PinNull #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK" #define BOARD_ID 2 #if 0 #define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0 #define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8 #define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9 #endif #define ID0_IO PD11 #define ID1_IO PD12 #define ID2_IO PD13 #define ID3_IO PD14 #define ID4_IO PD15