mirror of
https://github.com/dreamcmi/AT32F403A-TinyMaix.git
synced 2026-05-21 01:11:59 +00:00
21 lines
469 B
C
21 lines
469 B
C
#ifndef __BOARD_H__
|
|
#define __BOARD_H__
|
|
|
|
#include "at32f403a_407.h"
|
|
|
|
#define PRINT_UART USART1
|
|
#define PRINT_UART_CRM_CLK CRM_USART1_PERIPH_CLOCK
|
|
#define PRINT_UART_TX_PIN GPIO_PINS_9
|
|
#define PRINT_UART_TX_GPIO GPIOA
|
|
#define PRINT_UART_TX_GPIO_CRM_CLK CRM_GPIOA_PERIPH_CLOCK
|
|
|
|
|
|
void board_init(void);
|
|
void delay_us(uint32_t nus);
|
|
void delay_ms(uint16_t nms);
|
|
void delay_sec(uint16_t sec);
|
|
|
|
|
|
#endif
|
|
|