#ifndef __BSP_H__
#define __BSP_H__

#define TIMER_UP_IRQ_PRIORITY 0
#define ADC_IRQ_PRIORITY 1
#define HALL_IRQ_PRIORITY 2
#define SCHED_TIMER_IRQ_PRIORITY 3
#define EBREAK_IRQ_PRIORITY 2
#define CAN_IRQ_PRIORITY       6 
#define RTC_IRQ_PRIORITY       7 
#define UART_IRQ_PRIORITY      6 
#define ENC_TIMER_IRQ_PRIORITY 2
#define ENC_PWM_IRQ_PRIORITY 2
#define ENC_I_EXIT_IRQ_PRIORITY 2
#define ENC_OTHER_IRQ_PRIORITY 8

#define THREE_SHUNTS_SAMPLE 1
#define ONE_SHUNT_SAMPLE 2

#define GPIO_HIGH_BRK_MODE 1
#define GPIO_LOW_BRK_MODE 2

#define ENCODER_MPS 1
#define ENCODER_MT  2


#define MOTOR_BLUESHARK_NEW1  1//蓝鲨大功率电机，双I形
#define MOTOR_BLUESHARK_NEW2  2//蓝鲨大功率电机，V形
#define MOTOR_BLUESHARK_OLD   3//目前量产的电机
#define MOTOR_BLUESHARK_ZD_100  4//中动100码编码器电机样品
#define MOTOR_BLUESHARK_A1      5

#if defined (GD32F30X_HD) || defined (GD32F30X_XD) || defined (GD32F30X_CL)
#include "bsp/gd32/bsp.h"
#elif defined AT32F413RCT7
#include "bsp/at32/bsp.h"
#elif defined N32G45X
#include "bsp/n32/bsp.h"
#endif
#endif /* __BSP_H__ */
