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
  1. ref:https://iflytop1.feishu.cn/wiki/PbUHwG2o6ikWagkmsiqcTFwAnjp
  2. // ����ͨ������
  3. #define MOTOR_SPI hspi1
  4. #define TMC5130_MOTOR_NUM 1
  5. #define MOTOR0_CSN PA4
  6. #define MOTOR0_ENN PB7
  7. #define MOTOR1_SPI_MODE_SELECT PB4
  8. #define ID0 PC0
  9. #define ID1 PC1
  10. #define ID2 PC2
  11. #define ID3 PC3
  12. #define ID4 PC4
  13. // ���Դ���zwsd@192.168.1.3:project_boditech_vidas_a8000_v2/a8000_inlet_and_outlet_module.git
  14. #define DEBUG_UART huart1
  15. // ����ָʾ��
  16. #define DEBUG_LIGHT_GPIO PE2
  17. // ΢���ӳٶ�ʱ����ע������ʱ��ʱ����Ҫ���������ĵ���������
  18. // http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  19. #define DELAY_US_TIMER htim6
  20. // ��������
  21. #define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0
  22. #define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8
  23. #define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9
  24. #define SENSOR_INT0 PD0
  25. #define SENSOR_INT1 PD1
  26. #define SENSOR_INT2 PD2
  27. #define SENSOR_INT3 PD3
  28. #define SENSOR_INT4 PD4
  29. #define SENSOR_INT5 PD5
  30. #define SENSOR_INT6 PD6
  31. #define SENSOR_INT7 PD7
  32. #define SENSOR_INT8 PD8
  33. #define SENSOR_INT9 PD9
  34. ---------------------------------------------------
  35. 1. ֧��λ�������߼�
  36. 2. ֧�ֻ�ȡ��ǰ�����߼�
  37. 3. ֧�ּ�¼��ǰ����Ϊ�߼����߼�
  38. 4. ֧��flash���������߼�