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.

31 lines
1019 B

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 "ecom_monitor"
  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. /*********************************************************************************/
  13. // MOTOR1
  14. #define TMC_MOTOR1_CHANNEL 1
  15. #define TMC_MOTOR1_SPI_SELECT1_IO PA4
  16. #define TMC_MOTOR1_nFREEZE_IO PC2
  17. #define TMC_MOTOR1_nRESET_IO PB3
  18. #define TMC_MOTOR1_SUB_IC_ENN_IO PC3
  19. #define TMC_MOTOR1_ENN_IO // unused
  20. // MOTOR2
  21. #define TMC_MOTOR2_CHANNEL 2
  22. #define TMC_MOTOR2_SPI_SELECT1_IO PA8
  23. #define TMC_MOTOR2_nFREEZE_IO PC6
  24. #define TMC_MOTOR2_nRESET_IO PB2
  25. #define TMC_MOTOR2_SUB_IC_ENN_IO PC7
  26. #define TMC_MOTOR2_ENN_IO // unused