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.

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