Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mozi
rt-thread
提交
7f2abb61
R
rt-thread
项目概览
Mozi
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7f2abb61
编写于
7月 02, 2020
作者:
L
LYH-ux
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the link.ld file and board/SConscript
上级
6dbfac0c
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
35 addition
and
35 deletion
+35
-35
bsp/tm4c123bsp/applications/main.c
bsp/tm4c123bsp/applications/main.c
+2
-2
bsp/tm4c123bsp/board/SConscript
bsp/tm4c123bsp/board/SConscript
+2
-1
bsp/tm4c123bsp/board/board.h
bsp/tm4c123bsp/board/board.h
+18
-18
bsp/tm4c123bsp/board/linker_scripts/link.ld
bsp/tm4c123bsp/board/linker_scripts/link.ld
+1
-1
bsp/tm4c123bsp/board/tm4c123_config.c
bsp/tm4c123bsp/board/tm4c123_config.c
+4
-4
bsp/tm4c123bsp/libraries/Drivers/drv_adc.h
bsp/tm4c123bsp/libraries/Drivers/drv_adc.h
+4
-4
bsp/tm4c123bsp/libraries/Drivers/drv_gpio.h
bsp/tm4c123bsp/libraries/Drivers/drv_gpio.h
+3
-3
bsp/tm4c123bsp/libraries/Drivers/drv_uart.h
bsp/tm4c123bsp/libraries/Drivers/drv_uart.h
+1
-2
未找到文件。
bsp/tm4c123bsp/applications/main.c
浏览文件 @
7f2abb61
/*
* Copyright (c) 2006-201
8
, RT-Thread Development Team
* Copyright (c) 2006-201
9
, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 20
18-11-06 SummerGift
first version
* 20
20-06-27 AHTYDHD the
first version
*/
#include <rtthread.h>
...
...
bsp/tm4c123bsp/board/SConscript
浏览文件 @
7f2abb61
...
...
@@ -27,6 +27,7 @@ elif rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES
=
[
'PART_TM4C123GH6PM'
]
CPPDEFINES
+=
[
'TARGET_IS_TM4C123_RB1'
]
CPPDEFINES
+=
[
'rvmdk'
]
if
rtconfig
.
CROSS_TOOL
==
'keil'
:
CPPDEFINES
+=
[
'rvmdk'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
Return
(
'group'
)
bsp/tm4c123bsp/board/board.h
浏览文件 @
7f2abb61
...
...
@@ -15,36 +15,36 @@
#include <rtthread.h>
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
#define TM4C123_SRAM1_START (0x20000000)
#define TM4C123_SRAM1_END (TM4C123_SRAM1_START + 32 * 1024) // end address = 0x20000000(base adddress) + 32K(RAM size)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
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
#define TM4C123_SRAM1_START (0x20000000)
#define TM4C123_SRAM1_END (TM4C123_SRAM1_START + 32 * 1024) // end address = 0x20000000(base adddress) + 32K(RAM size)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
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
#endif
#ifdef RT_USING_PIN
#include "drv_gpio.h"
#include "drv_gpio.h"
#endif
/* RT_USING_PIN */
#ifdef RT_USING_SERIAL
#include "drv_uart.h"
#include "drv_uart.h"
#endif
/* RT_USING_SERIAL */
#ifdef RT_USING_PWM
#include "drv_pwm.h"
#include "drv_pwm.h"
#endif
/* RT_USING_PWM*/
#ifdef RT_USING_SPI
#include "drv_spi.h"
#include "drv_spi.h"
#endif
/* RT_USING_SPI*/
#endif
/*__BOARD_H__*/
...
...
bsp/tm4c123bsp/board/linker_scripts/link.ld
浏览文件 @
7f2abb61
...
...
@@ -39,7 +39,7 @@ SECTIONS
_etext = .;
} > FLASH
.data : AT(ADDR(.
text) + SIZEOF(.text)
)
.data : AT(ADDR(.
iplt)
)
{
_data = .;
_ldata = LOADADDR (.data);
...
...
bsp/tm4c123bsp/board/tm4c123_config.c
浏览文件 @
7f2abb61
...
...
@@ -18,16 +18,16 @@
#include "tm4c123_config.h"
#ifdef RT_USING_SERIAL
#include "driverlib/uart.h"
#include "driverlib/uart.h"
#endif
/* RT_USING_SERIAL */
#ifdef RT_USING_ADC
#include "driverlib/adc.h"
#include "driverlib/adc.h"
#endif
/* RT_USING_ADC */
#ifdef RT_USING_PWM
#include "driverlib/pwm.h"
#include "driverlib/pwm.h"
#endif
/* RT_USING_PWM */
#ifdef RT_USING_SPI
#include "driverlib/ssi.h"
#include "driverlib/ssi.h"
#endif
/* RT_USING_SPI */
...
...
bsp/tm4c123bsp/libraries/Drivers/drv_adc.h
浏览文件 @
7f2abb61
#ifndef _DRV_ADC_H_
#define _DRV_ADC_H_
/*
* Copyright (c) 2006-2019, RT-Thread Development Team
*
...
...
@@ -11,6 +8,9 @@
* 2020-06-27 AHTYDHD the first version
*/
#ifndef __DRV_ADC_H__
#define __DRV_ADC_H__
#include<stdint.h>
#include<rtthread.h>
#include<rtdevice.h>
...
...
@@ -26,6 +26,6 @@ struct tm4c123_adc_config
uint32_t
sequencepriority
;
};
#endif
/*_
DRV_ADC_H
_*/
#endif
/*_
_DRV_ADC_H_
_*/
/************************** end of file ******************/
\ No newline at end of file
bsp/tm4c123bsp/libraries/Drivers/drv_gpio.h
浏览文件 @
7f2abb61
...
...
@@ -8,8 +8,8 @@
* 2020-06-27 AHTYDHD the first version
*/
#ifndef _
DRV_GPIO_H
_
#define _
DRV_GPIO_H
_
#ifndef _
_DRV_GPIO_H_
_
#define _
_DRV_GPIO_H_
_
#include <stdint.h>
#include <rtthread.h>
...
...
@@ -34,6 +34,6 @@ struct pin_index
extern
int
rt_hw_pin_init
(
void
);
#endif
/*_
DRV_GPIO_H
_*/
#endif
/*_
_DRV_GPIO_H_
_*/
/************************** end of file ******************/
\ No newline at end of file
bsp/tm4c123bsp/libraries/Drivers/drv_uart.h
浏览文件 @
7f2abb61
...
...
@@ -23,8 +23,7 @@ struct tm4c123_uart_config
uint32_t
uartbase
;
uint32_t
baudrate
;
uint32_t
mode
;
//struct dma_config *dma_rx;
//struct dma_config *dma_tx;
};
/* tm4c123 uart dirver class */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录