2020-07-01 23:44:57 +08:00
|
|
|
/*
|
2021-03-21 22:23:24 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2020-07-01 23:44:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2020-06-27 AHTYDHD the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BOARD_H__
|
|
|
|
#define __BOARD_H__
|
2020-06-24 19:54:42 +08:00
|
|
|
|
|
|
|
#include <rthw.h>
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
|
2020-07-02 13:01:57 +08:00
|
|
|
#define TM4C123_SRAM1_START (0x20000000)
|
|
|
|
#define TM4C123_SRAM1_END (TM4C123_SRAM1_START + 32 * 1024) // end address = 0x20000000(base adddress) + 32K(RAM size)
|
|
|
|
|
2021-12-30 03:14:07 +08:00
|
|
|
#if defined(__ARMCC_VERSION)
|
2020-07-02 13:01:57 +08:00
|
|
|
extern int Image$$RW_IRAM$$ZI$$Limit; // RW_IRAM
|
|
|
|
#define HEAP_BEGIN ((void *)&Image$$RW_IRAM$$ZI$$Limit)
|
|
|
|
#elif __ICCARM__
|
|
|
|
#pragma section="HEAP"
|
|
|
|
#define HEAP_BEGIN (__segment_end("HEAP"))
|
|
|
|
#else
|
|
|
|
extern int _ebss;
|
|
|
|
#define HEAP_BEGIN ((void *)&_ebss)
|
|
|
|
#endif
|
|
|
|
#define HEAP_END TM4C123_SRAM1_END
|
2020-06-24 19:54:42 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RT_USING_PIN
|
2020-07-02 13:01:57 +08:00
|
|
|
#include "drv_gpio.h"
|
2020-06-24 19:54:42 +08:00
|
|
|
#endif /* RT_USING_PIN */
|
|
|
|
|
|
|
|
#ifdef RT_USING_SERIAL
|
2020-07-02 13:01:57 +08:00
|
|
|
#include "drv_uart.h"
|
2020-06-24 19:54:42 +08:00
|
|
|
#endif /* RT_USING_SERIAL */
|
|
|
|
|
|
|
|
#ifdef RT_USING_PWM
|
2020-07-02 13:01:57 +08:00
|
|
|
#include "drv_pwm.h"
|
2020-06-24 19:54:42 +08:00
|
|
|
#endif /* RT_USING_PWM*/
|
|
|
|
|
|
|
|
#ifdef RT_USING_SPI
|
2020-07-02 13:01:57 +08:00
|
|
|
#include "drv_spi.h"
|
2020-06-24 19:54:42 +08:00
|
|
|
#endif /* RT_USING_SPI*/
|
|
|
|
|
2024-04-11 16:59:10 +08:00
|
|
|
#ifdef RT_USING_I2C
|
|
|
|
#include "drv_i2c.h"
|
|
|
|
#endif /* RT_USING_I2C*/
|
|
|
|
|
2020-07-01 23:44:57 +08:00
|
|
|
#endif /*__BOARD_H__*/
|
2020-06-24 19:54:42 +08:00
|
|
|
|
2021-03-21 22:23:24 +08:00
|
|
|
/************************** end of file ******************/
|