Skip to content

Commit ae3a972

Browse files
authored
Merge pull request #5009 from lza1205/master
[bsp] add gd32105c-eval first commit
2 parents fb57e3a + 9debfd3 commit ae3a972

File tree

129 files changed

+59850
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+59850
-0
lines changed

bsp/gd32105c-eval/.config

Lines changed: 631 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# files format check exclude path, please follow the instructions below to modify;
2+
# If you need to exclude an entire folder, add the folder path in dir_path;
3+
# If you need to exclude a file, add the path to the file in file_path.
4+
5+
file_path:
6+
7+
dir_path:
8+
- Libraries

bsp/gd32105c-eval/Kconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
mainmenu "RT-Thread Configuration"
2+
3+
config BSP_DIR
4+
string
5+
option env="BSP_ROOT"
6+
default "."
7+
8+
config RTT_DIR
9+
string
10+
option env="RTT_ROOT"
11+
default "../.."
12+
13+
config PKGS_DIR
14+
string
15+
option env="PKGS_ROOT"
16+
default "packages"
17+
18+
source "$RTT_DIR/Kconfig"
19+
source "$PKGS_DIR/Kconfig"
20+
source "drivers/Kconfig"
21+
22+
23+
24+
25+

bsp/gd32105c-eval/Libraries/CMSIS/GD/GD32F10x/Include/gd32f10x.h

Lines changed: 381 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*!
2+
\file system_gd32f10x.h
3+
\brief CMSIS Cortex-M3 Device Peripheral Access Layer Header File for
4+
GD32F10x Device Series
5+
*/
6+
7+
/*
8+
Copyright (c) 2012 ARM LIMITED
9+
10+
All rights reserved.
11+
12+
Redistribution and use in source and binary forms, with or without modification,
13+
are permitted provided that the following conditions are met:
14+
15+
1. Redistributions of source code must retain the above copyright notice, this
16+
list of conditions and the following disclaimer.
17+
2. Redistributions in binary form must reproduce the above copyright notice,
18+
this list of conditions and the following disclaimer in the documentation
19+
and/or other materials provided with the distribution.
20+
3. Neither the name of the copyright holder nor the names of its contributors
21+
may be used to endorse or promote products derived from this software without
22+
specific prior written permission.
23+
24+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
28+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
33+
OF SUCH DAMAGE.
34+
*/
35+
36+
/* This file refers the CMSIS standard, some adjustments are made according to GigaDevice chips */
37+
38+
#ifndef SYSTEM_GD32F10X_H
39+
#define SYSTEM_GD32F10X_H
40+
41+
#ifdef __cplusplus
42+
extern "C" {
43+
#endif
44+
45+
#include <stdint.h>
46+
47+
/* system clock frequency (core clock) */
48+
extern uint32_t SystemCoreClock;
49+
50+
/* function declarations */
51+
/* initialize the system and update the SystemCoreClock variable */
52+
extern void SystemInit(void);
53+
/* update the SystemCoreClock with current core clock retrieved from cpu registers */
54+
extern void SystemCoreClockUpdate(void);
55+
56+
#ifdef __cplusplus
57+
}
58+
#endif
59+
60+
#endif /* SYSTEM_GD32F10X_H */

bsp/gd32105c-eval/Libraries/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s

Lines changed: 390 additions & 0 deletions
Large diffs are not rendered by default.

bsp/gd32105c-eval/Libraries/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_hd.s

Lines changed: 371 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)