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.

51 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 "a8000_temperature_ctrl"
  5. #define DEBUG_UART huart1
  6. #define DEBUG_UART_DMA hdma_usart1_rx
  7. #define DEBUG_LIGHT_GPIO PE2
  8. #define DELAY_US_TIMER htim6 // US��ʱ��ʱ��
  9. #define TIM_IRQ_SCHEDULER_TIMER htim7 // �ж϶�ʱ���жϵ�����
  10. #define IFLTYOP_ZTICKET_TIMER TIM11 // ϵͳticket��ʱ��
  11. #define IFLYTOP_ENABLE_OS 1
  12. #define IFLYTOP_PREEMPTPRIORITY_DEFAULT 5
  13. /****************************************FLASH***************************************/
  14. #define IFLYTOP_NVS_CONFIG_FLASH_SECTOR 8
  15. /*********************************************************************************/
  16. // MOTOR1
  17. #define TMC_MOTOR_SPI hspi1
  18. #define TMC5130_MOTOR_NUM 1
  19. #define MOTOR0_CSN PA4
  20. #define MOTOR0_ENN PB7
  21. #define MOTOR1_SPI_MODE_SELECT PB4
  22. #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"
  23. #if 0
  24. #define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0
  25. #define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8
  26. #define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9
  27. #endif
  28. #define ID0_IO PD11
  29. #define ID1_IO PD12
  30. #define ID2_IO PD13
  31. #define ID3_IO PD14
  32. #define ID4_IO PD15
  33. #define SENSOR_INT0 PD0
  34. #define SENSOR_INT1 PD1
  35. #define SENSOR_INT2 PD2
  36. #define SENSOR_INT3 PD3
  37. #define SENSOR_INT4 PD4
  38. #define SENSOR_INT5 PD5
  39. #define SENSOR_INT6 PD6
  40. #define SENSOR_INT7 PD7
  41. #define SENSOR_INT8 PD8
  42. #define SENSOR_INT9 PD9