Skip to content

Commit f8d7f34

Browse files
committed
[BSP] Add license info and code cleaup for vexpress-a9 BSP
1 parent b4e57db commit f8d7f34

24 files changed

+146
-127
lines changed

bsp/qemu-vexpress-a9/SConscript

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# for module compiling
1+
# RT-Thread building script for bridge
2+
23
import os
3-
Import('RTT_ROOT')
4+
from building import *
45

5-
cwd = str(Dir('#'))
6+
cwd = GetCurrentDir()
67
objs = []
78
list = os.listdir(cwd)
89

bsp/qemu-vexpress-a9/applications/SConscript

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
Import('RTT_ROOT')
2-
Import('rtconfig')
31
from building import *
42

53
cwd = GetCurrentDir()
64
src = Glob('*.c') + Glob('*.cpp')
7-
CPPPATH = [cwd, str(Dir('#'))]
5+
CPPPATH = [cwd]
86

97
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
108

bsp/qemu-vexpress-a9/applications/lcd_init.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2020/12/31 Bernard Add license info
9+
*/
10+
111
#include <rtthread.h>
212

313
#if defined(RT_USING_RTGUI) || defined(PKG_USING_GUIENGINE)

bsp/qemu-vexpress-a9/applications/main.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2020/12/31 Bernard Add license info
9+
*/
10+
111
#include <stdint.h>
212
#include <stdio.h>
313
#include <stdlib.h>
@@ -8,4 +18,3 @@ int main(void)
818

919
return 0;
1020
}
11-

bsp/qemu-vexpress-a9/applications/mnt.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2020/12/31 Bernard Add license info
9+
*/
10+
111
#include <rtthread.h>
212

313
#ifdef RT_USING_DFS
@@ -16,4 +26,3 @@ int mnt_init(void)
1626
}
1727
INIT_ENV_EXPORT(mnt_init);
1828
#endif
19-

bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
/*
2-
* File : drv_ac97.c
3-
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2017, RT-Thread Development Team
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
53
*
6-
* This program is free software; you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation; either version 2 of the License, or
9-
* (at your option) any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License along
17-
* with this program; if not, write to the Free Software Foundation, Inc.,
18-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4+
* SPDX-License-Identifier: Apache-2.0
195
*
206
* Change Logs:
217
* Date Author Notes

bsp/qemu-vexpress-a9/drivers/audio/drv_ac97.h

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
/*
2-
* File : drv_ac97.h
3-
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2017, RT-Thread Development Team
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
53
*
6-
* This program is free software; you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation; either version 2 of the License, or
9-
* (at your option) any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License along
17-
* with this program; if not, write to the Free Software Foundation, Inc.,
18-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4+
* SPDX-License-Identifier: Apache-2.0
195
*
206
* Change Logs:
217
* Date Author Notes

bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
/*
2-
* File : drv_pl041.c
3-
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2017, RT-Thread Development Team
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
53
*
6-
* This program is free software; you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation; either version 2 of the License, or
9-
* (at your option) any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License along
17-
* with this program; if not, write to the Free Software Foundation, Inc.,
18-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4+
* SPDX-License-Identifier: Apache-2.0
195
*
206
* Change Logs:
217
* Date Author Notes

bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
/*
2-
* File : drv_pl041.h
3-
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2017, RT-Thread Development Team
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
53
*
6-
* This program is free software; you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation; either version 2 of the License, or
9-
* (at your option) any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License along
17-
* with this program; if not, write to the Free Software Foundation, Inc.,
18-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4+
* SPDX-License-Identifier: Apache-2.0
195
*
206
* Change Logs:
217
* Date Author Notes

bsp/qemu-vexpress-a9/drivers/automac.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#define AUTOMAC0 0x52
99
#define AUTOMAC1 0x54
1010
#define AUTOMAC2 0x00
11-
#define AUTOMAC3 0x28
12-
#define AUTOMAC4 0xae
13-
#define AUTOMAC5 0xeb
11+
#define AUTOMAC3 0xa0
12+
#define AUTOMAC4 0x0e
13+
#define AUTOMAC5 0xe4
1414

1515
#endif

0 commit comments

Comments
 (0)