Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
缘_顺
rt-thread
提交
f8d7f347
R
rt-thread
项目概览
缘_顺
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
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,发现更多精彩内容 >>
提交
f8d7f347
编写于
12月 31, 2020
作者:
B
bernard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BSP] Add license info and code cleaup for vexpress-a9 BSP
上级
b4e57db1
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
146 addition
and
127 deletion
+146
-127
bsp/qemu-vexpress-a9/SConscript
bsp/qemu-vexpress-a9/SConscript
+4
-3
bsp/qemu-vexpress-a9/applications/SConscript
bsp/qemu-vexpress-a9/applications/SConscript
+1
-3
bsp/qemu-vexpress-a9/applications/lcd_init.c
bsp/qemu-vexpress-a9/applications/lcd_init.c
+10
-0
bsp/qemu-vexpress-a9/applications/main.c
bsp/qemu-vexpress-a9/applications/main.c
+10
-1
bsp/qemu-vexpress-a9/applications/mnt.c
bsp/qemu-vexpress-a9/applications/mnt.c
+10
-1
bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.c
bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.c
+2
-16
bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.h
bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.h
+2
-16
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.c
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.c
+2
-16
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h
+2
-16
bsp/qemu-vexpress-a9/drivers/automac.h
bsp/qemu-vexpress-a9/drivers/automac.h
+3
-3
bsp/qemu-vexpress-a9/drivers/board.h
bsp/qemu-vexpress-a9/drivers/board.h
+2
-6
bsp/qemu-vexpress-a9/drivers/drv_clcd.c
bsp/qemu-vexpress-a9/drivers/drv_clcd.c
+9
-0
bsp/qemu-vexpress-a9/drivers/drv_clcd.h
bsp/qemu-vexpress-a9/drivers/drv_clcd.h
+9
-0
bsp/qemu-vexpress-a9/drivers/drv_keyboard.c
bsp/qemu-vexpress-a9/drivers/drv_keyboard.c
+9
-0
bsp/qemu-vexpress-a9/drivers/drv_keyboard.h
bsp/qemu-vexpress-a9/drivers/drv_keyboard.h
+9
-0
bsp/qemu-vexpress-a9/drivers/drv_mouse.c
bsp/qemu-vexpress-a9/drivers/drv_mouse.c
+9
-0
bsp/qemu-vexpress-a9/drivers/drv_mouse.h
bsp/qemu-vexpress-a9/drivers/drv_mouse.h
+9
-0
bsp/qemu-vexpress-a9/drivers/drv_sdio.c
bsp/qemu-vexpress-a9/drivers/drv_sdio.c
+9
-0
bsp/qemu-vexpress-a9/drivers/drv_sdio.h
bsp/qemu-vexpress-a9/drivers/drv_sdio.h
+9
-1
bsp/qemu-vexpress-a9/drivers/drv_smc911x.c
bsp/qemu-vexpress-a9/drivers/drv_smc911x.c
+10
-0
bsp/qemu-vexpress-a9/drivers/realview.h
bsp/qemu-vexpress-a9/drivers/realview.h
+11
-2
bsp/qemu-vexpress-a9/drivers/serial.c
bsp/qemu-vexpress-a9/drivers/serial.c
+2
-21
bsp/qemu-vexpress-a9/drivers/serial.h
bsp/qemu-vexpress-a9/drivers/serial.h
+2
-21
bsp/qemu-vexpress-a9/qemu-nographic.sh
bsp/qemu-vexpress-a9/qemu-nographic.sh
+1
-1
未找到文件。
bsp/qemu-vexpress-a9/SConscript
浏览文件 @
f8d7f347
# for module compiling
# RT-Thread building script for bridge
import
os
Import
(
'RTT_ROOT'
)
from
building
import
*
cwd
=
str
(
Dir
(
'#'
)
)
cwd
=
GetCurrentDir
(
)
objs
=
[]
list
=
os
.
listdir
(
cwd
)
...
...
bsp/qemu-vexpress-a9/applications/SConscript
浏览文件 @
f8d7f347
Import
(
'RTT_ROOT'
)
Import
(
'rtconfig'
)
from
building
import
*
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
,
str
(
Dir
(
'#'
))
]
CPPPATH
=
[
cwd
]
group
=
DefineGroup
(
'Applications'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
...
...
bsp/qemu-vexpress-a9/applications/lcd_init.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <rtthread.h>
#if defined(RT_USING_RTGUI) || defined(PKG_USING_GUIENGINE)
...
...
bsp/qemu-vexpress-a9/applications/main.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -8,4 +18,3 @@ int main(void)
return
0
;
}
bsp/qemu-vexpress-a9/applications/mnt.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <rtthread.h>
#ifdef RT_USING_DFS
...
...
@@ -16,4 +26,3 @@ int mnt_init(void)
}
INIT_ENV_EXPORT
(
mnt_init
);
#endif
bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.c
浏览文件 @
f8d7f347
/*
* File : drv_ac97.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.h
浏览文件 @
f8d7f347
/*
* File : drv_ac97.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.c
浏览文件 @
f8d7f347
/*
* File : drv_pl041.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h
浏览文件 @
f8d7f347
/*
* File : drv_pl041.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/qemu-vexpress-a9/drivers/automac.h
浏览文件 @
f8d7f347
...
...
@@ -8,8 +8,8 @@
#define AUTOMAC0 0x52
#define AUTOMAC1 0x54
#define AUTOMAC2 0x00
#define AUTOMAC3 0x
28
#define AUTOMAC4 0x
a
e
#define AUTOMAC5 0xe
b
#define AUTOMAC3 0x
a0
#define AUTOMAC4 0x
0
e
#define AUTOMAC5 0xe
4
#endif
bsp/qemu-vexpress-a9/drivers/board.h
浏览文件 @
f8d7f347
/*
* File : board.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2013, RT-Thread Development Team
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/qemu-vexpress-a9/drivers/drv_clcd.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
...
...
bsp/qemu-vexpress-a9/drivers/drv_clcd.h
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#ifndef DRV_CLCD_H__
#define DRV_CLCD_H__
...
...
bsp/qemu-vexpress-a9/drivers/drv_keyboard.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
...
...
bsp/qemu-vexpress-a9/drivers/drv_keyboard.h
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#ifndef __DEV_KEYBOARD_H__
#define __DEV_KEYBOARD_H__
...
...
bsp/qemu-vexpress-a9/drivers/drv_mouse.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
...
...
bsp/qemu-vexpress-a9/drivers/drv_mouse.h
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#ifndef __DRV_MOUSE_H__
#define __DRV_MOUSE_H__
...
...
bsp/qemu-vexpress-a9/drivers/drv_sdio.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
...
...
bsp/qemu-vexpress-a9/drivers/drv_sdio.h
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#ifndef __DRV_SDIO_H__
#define __DRV_SDIO_H__
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
bsp/qemu-vexpress-a9/drivers/drv_smc911x.c
浏览文件 @
f8d7f347
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#include <board.h>
#include <rtthread.h>
#include <netif/ethernetif.h>
...
...
bsp/qemu-vexpress-a9/drivers/realview.h
浏览文件 @
f8d7f347
#ifndef __AM33XX_H__
#define __AM33XX_H__
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020/12/31 Bernard Add license info
*/
#ifndef __REALVIEW_H__
#define __REALVIEW_H__
#define __REG32(x) (*((volatile unsigned int *)(x)))
#define __REG16(x) (*((volatile unsigned short *)(x)))
...
...
bsp/qemu-vexpress-a9/drivers/serial.c
浏览文件 @
f8d7f347
/*
*
serial.c UART driver
*
Copyright (c) 2006-2020, RT-Thread Development Team
*
* COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd
*
* This file is part of RT-Thread (http://www.rt-thread.org)
* Maintainer: bernard.xiong <bernard.xiong at gmail.com>
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/qemu-vexpress-a9/drivers/serial.h
浏览文件 @
f8d7f347
/*
*
UART driver
*
Copyright (c) 2006-2020, RT-Thread Development Team
*
* COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd
*
* This file is part of RT-Thread (http://www.rt-thread.org)
* Maintainer: bernard.xiong <bernard.xiong at gmail.com>
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/qemu-vexpress-a9/qemu-nographic.sh
浏览文件 @
f8d7f347
...
...
@@ -2,5 +2,5 @@ if [ ! -f "sd.bin" ]; then
dd
if
=
/dev/zero
of
=
sd.bin
bs
=
1024
count
=
65536
fi
qemu-system-arm
-M
vexpress-a9
-smp
cpus
=
2
-kernel
rtthread.bin
-nographic
-sd
sd.bin
-net
nic
-net
tap
qemu-system-arm
-M
vexpress-a9
-smp
cpus
=
2
-kernel
rtthread.bin
-nographic
-sd
sd.bin
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录