/* * @Description: * @Date: 2022-01-06 14:27:36 * @LastEditors: CK.Zh * @LastEditTime: 2022-01-07 11:11:01 * @FilePath: /rt-thread/bsp/hc32l073/board/board_config.h */ /* * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-09-05 DongBowen first version */ #ifndef __BOARD_CONFIG_H__ #define __BOARD_CONFIG_H__ #include // #include "ddl.h" #include "gpio.h" #include "uart.h" #include "sysctrl.h" /*********** Port configure *********/ #if defined(BSP_USING_UART0) #define UART0_RX_PORT GpioPortA #define UART0_RX_PIN GpioPin10 #define UART0_RX_AF GpioAf1 #define UART0_TX_PORT GpioPortA #define UART0_TX_PIN GpioPin9 #define UART0_TX_AF GpioAf1 #endif #if defined(BSP_USING_UART1) #define UART1_RX_PORT GpioPortA #define UART1_RX_PIN GpioPin3 #define UART1_RX_AF GpioAf1 #define UART1_TX_PORT GpioPortA #define UART1_TX_PIN GpioPin2 #define UART1_TX_AF GpioAf1 #endif #endif