/*! 定义所使用 UART 口的波特率 */
#define UART_PRINT_BITRATE 115200 //UART 波特率
/*! 定义所使用的 UART 口,开发板上默认使用 UART1 口 */
#define TERM_PORT UART1
/*! 板载 LED */
#define LED0_Init() GPIOB->PDDR |= (1<<25) //初始化
#define LED0_Toggle() GPIOB->PTOR = (1<<25) //翻转
#define LED0_On() GPIOB->PCOR = (1<<25) //置位
#define LED0_Off() GPIOB->PSOR = (1<<25) //清零
#define LED1_Init() GPIOB->PDDR |= (1<<26)
#define LED1_Toggle() GPIOB->PTOR = (1<<26)
#define LED1_On() GPIOB->PCOR = (1<<26)
#define LED1_Off() GPIOB->PSOR = (1<<26)
#define LED2_Init() GPIOB->PDDR |= (1<<7)
#define LED2_Toggle() GPIOB->PTOR = (1<<7)
#define LED2_On() GPIOB->PCOR = (1<<7)
#define LED2_Off() GPIOB->PSOR = (1<<7)
#endif /* NVxx_CONFIG_H_ */
|