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.

43 lines
1.2 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
  1. #pragma once
  2. #define VERSION "v1.0.0"
  3. #define MANUFACTURER "http://www.iflytop.com/"
  4. #define PROJECT_NAME "filarobot_arm"
  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. #define DEVICE_ID (2)
  13. /*********************************************************************************/
  14. // MOTOR1
  15. #define TMC_MOTOR1_CHANNEL 1
  16. #define TMC_MOTOR1_SPI_SELECT1_IO PA4
  17. #define TMC_MOTOR1_nFREEZE_IO PC2
  18. #define TMC_MOTOR1_nRESET_IO PB3
  19. #define TMC_MOTOR1_SUB_IC_ENN_IO PC3
  20. #define TMC_MOTOR1_ENN_IO // unused
  21. // MOTOR2
  22. #define TMC_MOTOR2_CHANNEL 2
  23. #define TMC_MOTOR2_SPI_SELECT1_IO PA8
  24. #define TMC_MOTOR2_nFREEZE_IO PC6
  25. #define TMC_MOTOR2_nRESET_IO PB2
  26. #define TMC_MOTOR2_SUB_IC_ENN_IO PC7
  27. #define TMC_MOTOR2_ENN_IO // unused
  28. #define ARM_SENSOR1_GPIO PD0
  29. #define ARM_SENSOR2_GPIO PD1
  30. #define ARM_SENSOR3_GPIO PD2
  31. #define ARM_SENSOR4_GPIO PD3
  32. #define ARM_SENSOR5_GPIO PD4
  33. #define ARM_SENSOR6_GPIO PD5
  34. #define ARM_SENSOR7_GPIO PD6
  35. #define ARM_SENSOR8_GPIO PD7