1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017-09-14 Haley first implementation 9 */ 10 #ifndef __BOARD_H_ 11 #define __BOARD_H_ 12 13 #include <rtthread.h> 14 15 // <o> Internal SRAM memory size[Kbytes] <8-256> 16 // <i>Default: 256 17 #define AM_SRAM_SIZE 256 18 #define AM_SRAM_END (0x10000000 + AM_SRAM_SIZE * 1024) 19 20 /* USART driver select. */ 21 #define RT_USING_UART0 22 //#define RT_USING_UART1 23 24 /* ADC driver select. */ 25 #define RT_USING_ADC 26 27 /* I2C driver select. */ 28 #define RT_USING_I2C0 29 //#define RT_USING_I2C2 30 //#define RT_USING_I2C4 31 32 /* SMBUS driver select. */ 33 //#define RT_USING_SMBUS 34 35 /* SPI driver select. */ 36 #define RT_USING_SPI1 37 38 /* LED driver select. */ 39 #define RT_USING_LED0 40 //#define RT_USING_LED1 41 //#define RT_USING_LED2 42 //#define RT_USING_LED3 43 44 /* PWM driver select. */ 45 //#define RT_USING_PWM 46 47 /* PDM driver select. */ 48 //#define RT_USING_PDM 49 50 void rt_hw_board_init(void); 51 52 #endif /* __BOARD_H__ */ 53