27 lines
498 B
C
27 lines
498 B
C
/* metadata:
|
|
name: CH32V203C-R0-1v0
|
|
url: https://github.com/openwch/ch32v20x/tree/main/SCHPCB/CH32V203C-R0
|
|
*/
|
|
|
|
#ifndef BOARD_H_
|
|
#define BOARD_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define LED_PORT GPIOA
|
|
#define LED_PIN GPIO_Pin_0
|
|
#define LED_STATE_ON 0
|
|
|
|
#define UART_DEV USART1
|
|
#define UART_CLOCK_EN() RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE)
|
|
#define UART_TX_PIN GPIO_Pin_9
|
|
#define UART_RX_PIN GPIO_Pin_10
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|