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.

55 lines
1.6 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #define VERSION "v1.0.0"
  3. #define MANUFACTURER "http://www.iflytop.com/"
  4. #define PROJECT_NAME "a8000_inlet_and_outlet_module"
  5. #define DEBUG_UART huart1
  6. #define DEBUG_LIGHT_GPIO PE2
  7. #define DELAY_US_TIMER htim6 // US��ʱ��ʱ��
  8. #define TIM_IRQ_SCHEDULER_TIMER htim7 // �ж϶�ʱ���жϵ�����
  9. #define IFLTYOP_ZTICKET_TIMER TIM11 // ϵͳticket��ʱ��
  10. #define IFLYTOP_ENABLE_OS 1
  11. #define IFLYTOP_PREEMPTPRIORITY_DEFAULT 5
  12. /****************************************FLASH***************************************/
  13. #define IFLYTOP_NVS_CONFIG_FLASH_SECTOR 8
  14. /*********************************************************************************/
  15. // MOTOR1
  16. #define TMC_MOTOR_SPI hspi1
  17. // JL_CSN
  18. #define MOTOR0_CSN PA4
  19. #define MOTOR0_ENN PE3
  20. #define MOTOR0_SPI_MODE_SELECT PinNull
  21. #define MOTOR0_REFL PD13
  22. #define MOTOR0_REFR PD14
  23. // SL_CSN
  24. #define MOTOR1_CSN PA8
  25. #define MOTOR1_ENN PE6
  26. #define MOTOR1_SPI_MODE_SELECT PinNull
  27. #define MOTOR1_REFL PD11
  28. #define MOTOR1_REFR PD12
  29. // CL_CSN
  30. #define MOTOR2_CSN PA15
  31. #define MOTOR2_ENN PE7
  32. #define MOTOR2_SPI_MODE_SELECT PinNull
  33. #define MOTOR2_REFL PD9
  34. #define MOTOR2_REFR PD10
  35. #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"
  36. #define BOARD_ID 5
  37. #if 0
  38. #define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0
  39. #define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8
  40. #define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9
  41. #endif
  42. #define ID0_IO PD11
  43. #define ID1_IO PD12
  44. #define ID2_IO PD13
  45. #define ID3_IO PD14
  46. #define ID4_IO PD15