修改license header,修改driver目录下的SConscript。

This commit is contained in:
GFWisshit 2020-10-20 17:28:59 +08:00
parent 7f330c7b79
commit c1f4d6c691
15 changed files with 406 additions and 271 deletions

View File

@ -1,15 +1,21 @@
/* /*
* File : board.c Copyright 2020 Shenzhen Academy of Aerospace Technology
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2020, Shenzhen Academy of Aerospace Technology Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* The license and distribution terms for this file may be You may obtain a copy of the License at
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE http://www.apache.org/licenses/LICENSE-2.0
*
* Change Logs: Unless required by applicable law or agreed to in writing, software
* Date Author Notes distributed under the License is distributed on an "AS IS" BASIS,
* 2020-10-16 Dystopia the first version WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#include <rthw.h> #include <rthw.h>

View File

@ -1,15 +1,21 @@
/* /*
* File : board.h Copyright 2020 Shenzhen Academy of Aerospace Technology
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2020, Shenzhen Academy of Aerospace Technology Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* The license and distribution terms for this file may be You may obtain a copy of the License at
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE http://www.apache.org/licenses/LICENSE-2.0
*
* Change Logs: Unless required by applicable law or agreed to in writing, software
* Date Author Notes distributed under the License is distributed on an "AS IS" BASIS,
* 2020-10-16 Dystopia the first version WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#ifndef __BOARD_H__ #ifndef __BOARD_H__

View File

@ -1,3 +1,23 @@
/*
Copyright 2020 Shenzhen Academy of Aerospace Technology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -5,18 +5,7 @@ from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Glob('*.c') src = Glob('*.c')
# remove no need file.
if GetDepend('RT_USING_LWIP') == False:
src_need_remove = ['dm9000.c'] # need remove file list.
SrcRemove(src, src_need_remove)
if GetDepend('RT_USING_DFS') == False:
src_need_remove = ['sd.c'] # need remove file list.
SrcRemove(src, src_need_remove)
CPPPATH = [cwd] CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group') Return('group')

View File

@ -1,15 +1,21 @@
/* /*
* File : serial.c Copyright 2020 Shenzhen Academy of Aerospace Technology
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2020, Shenzhen Academy of Aerospace Technology Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* The license and distribution terms for this file may be You may obtain a copy of the License at
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE http://www.apache.org/licenses/LICENSE-2.0
*
* Change Logs: Unless required by applicable law or agreed to in writing, software
* Date Author Notes distributed under the License is distributed on an "AS IS" BASIS,
* 2020-10-16 Dystopia the first version WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#include <rthw.h> #include <rthw.h>

View File

@ -1,15 +1,21 @@
/* /*
* File : serial.h Copyright 2020 Shenzhen Academy of Aerospace Technology
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2020, Shenzhen Academy of Aerospace Technology Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* The license and distribution terms for this file may be You may obtain a copy of the License at
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE http://www.apache.org/licenses/LICENSE-2.0
*
* Change Logs: Unless required by applicable law or agreed to in writing, software
* Date Author Notes distributed under the License is distributed on an "AS IS" BASIS,
* 2020-10-16 Dystopia the first version WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#ifndef __SERIAL_H__ #ifndef __SERIAL_H__

View File

@ -1,3 +1,23 @@
/*
Copyright 2020 Shenzhen Academy of Aerospace Technology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/
#ifndef SERIAL_REG_H #ifndef SERIAL_REG_H
#define SERIAL_REG_H #define SERIAL_REG_H

View File

@ -1,12 +1,23 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#ifndef __BM3803_H__ #ifndef __BM3803_H__
#define __BM3803_H__ #define __BM3803_H__

View File

@ -1,11 +1,21 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#define SPARC_PSR_PIL_MASK 0x00000F00 #define SPARC_PSR_PIL_MASK 0x00000F00

View File

@ -1,11 +1,21 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#include <rthw.h> #include <rthw.h>

View File

@ -1,11 +1,21 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#ifndef __INTERRUPT_H__ #ifndef __INTERRUPT_H__

View File

@ -1,12 +1,23 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#include <rtthread.h> #include <rtthread.h>
/** /**

View File

@ -1,11 +1,21 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#define PSR_INIT 0x10C0 #define PSR_INIT 0x10C0

View File

@ -1,11 +1,21 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#include <rtthread.h> #include <rtthread.h>

View File

@ -1,11 +1,21 @@
/* /*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology Copyright 2020 Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Change Logs: You may obtain a copy of the License at
* Date Author Notes
* 2020-10-16 Dystopia the first version http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change Logs:
Date Author Notes
2020-10-16 Dystopia the first version
*/ */
#define TRAPL(H) mov %g0, %l0; sethi %hi(H), %l4; jmp %l4 + %lo(H); nop; #define TRAPL(H) mov %g0, %l0; sethi %hi(H), %l4; jmp %l4 + %lo(H); nop;