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 * 2020-06-27 AHTYDHD the first version 9 */ 10 11 #ifndef __BOARD_H__ 12 #define __BOARD_H__ 13 14 #include <rthw.h> 15 #include <rtthread.h> 16 17 #if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP) 18 #define TM4C123_SRAM1_START (0x20000000) 19 #define TM4C123_SRAM1_END (TM4C123_SRAM1_START + 32 * 1024) // end address = 0x20000000(base adddress) + 32K(RAM size) 20 21 #if defined(__ARMCC_VERSION) 22 extern int Image$$RW_IRAM$$ZI$$Limit; // RW_IRAM 23 #define HEAP_BEGIN ((void *)&Image$$RW_IRAM$$ZI$$Limit) 24 #elif __ICCARM__ 25 #pragma section="HEAP" 26 #define HEAP_BEGIN (__segment_end("HEAP")) 27 #else 28 extern int _ebss; 29 #define HEAP_BEGIN ((void *)&_ebss) 30 #endif 31 #define HEAP_END TM4C123_SRAM1_END 32 #endif 33 34 #ifdef RT_USING_PIN 35 #include "drv_gpio.h" 36 #endif /* RT_USING_PIN */ 37 38 #ifdef RT_USING_SERIAL 39 #include "drv_uart.h" 40 #endif /* RT_USING_SERIAL */ 41 42 #ifdef RT_USING_PWM 43 #include "drv_pwm.h" 44 #endif /* RT_USING_PWM*/ 45 46 #ifdef RT_USING_SPI 47 #include "drv_spi.h" 48 #endif /* RT_USING_SPI*/ 49 50 #ifdef RT_USING_I2C 51 #include "drv_i2c.h" 52 #endif /* RT_USING_I2C*/ 53 54 #endif /*__BOARD_H__*/ 55 56 /************************** end of file ******************/ 57