#pragma once #define VERSION "v1.0.0" #define MANUFACTURER "http://www.iflytop.com/" #define PROJECT_NAME "a8000_inlet_and_outlet_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 // JL_CSN #define MOTOR0_CSN PA4 #define MOTOR0_ENN PE3 #define MOTOR0_SPI_MODE_SELECT PinNull #define MOTOR0_REFL PD13 #define MOTOR0_REFR PD14 // SL_CSN #define MOTOR1_CSN PA8 #define MOTOR1_ENN PE6 #define MOTOR1_SPI_MODE_SELECT PinNull #define MOTOR1_REFL PD11 #define MOTOR1_REFR PD12 // CL_CSN #define MOTOR2_CSN PA15 #define MOTOR2_ENN PE7 #define MOTOR2_SPI_MODE_SELECT PinNull #define MOTOR2_REFL PD9 #define MOTOR2_REFR PD10 #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK" #define BOARD_ID 5 #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