bsp.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __BSP_H__
  2. #define __BSP_H__
  3. #define TIMER_UP_IRQ_PRIORITY 2
  4. #define ADC_IRQ_PRIORITY 1
  5. #define HALL_IRQ_PRIORITY 2
  6. #define SCHED_TIMER_IRQ_PRIORITY 3
  7. #define EBREAK_IRQ_PRIORITY 2
  8. #define CAN_IRQ_PRIORITY 6
  9. #define RTC_IRQ_PRIORITY 7
  10. #define UART_IRQ_PRIORITY 6
  11. #define ENC_TIMER_IRQ_PRIORITY 2
  12. #define ENC_PWM_IRQ_PRIORITY 2
  13. #define ENC_I_EXIT_IRQ_PRIORITY 0
  14. #define ENC_OTHER_IRQ_PRIORITY 8
  15. #define THREE_SHUNTS_SAMPLE 1
  16. #define ONE_SHUNT_SAMPLE 2
  17. #define GPIO_HIGH_BRK_MODE 1
  18. #define GPIO_LOW_BRK_MODE 2
  19. #define ENCODER_MPS 1
  20. #define ENCODER_MT 2
  21. #define MOTOR_BLUESHARK_NEW1 1//蓝鲨大功率电机,双I形
  22. #define MOTOR_BLUESHARK_NEW2 2//蓝鲨大功率电机,V形
  23. #define MOTOR_BLUESHARK_OLD 3//目前量产的电机
  24. #define MOTOR_BLUESHARK_ZD_100 4//中动100码编码器电机样品
  25. #define MOTOR_BLUESHARK_A1 5
  26. #if defined (GD32F30X_HD) || defined (GD32F30X_XD) || defined (GD32F30X_CL)
  27. #include "bsp/gd32/bsp.h"
  28. #elif defined AT32F413RCT7
  29. #include "bsp/at32/bsp.h"
  30. #elif defined N32G45X
  31. #include "bsp/n32/bsp.h"
  32. #endif
  33. #endif /* __BSP_H__ */