Skip to content

Commit 42638ec

Browse files
committed
新增 ft32 bsp 支持包
1 parent 1e90ac2 commit 42638ec

9 files changed

Lines changed: 239 additions & 0 deletions

File tree

peripherals/hal-sdk/ft32/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
menu "FT32 HAL & SDK Drivers"
2+
3+
# FT32F0
4+
source "$PKGS_DIR/packages/peripherals/hal-sdk/ft32/ft32f0_std_driver/Kconfig"
5+
source "$PKGS_DIR/packages/peripherals/hal-sdk/ft32/ft32f0_cmsis_driver/Kconfig"
6+
7+
# FT32F4
8+
source "$PKGS_DIR/packages/peripherals/hal-sdk/ft32/ft32f4_std_driver/Kconfig"
9+
source "$PKGS_DIR/packages/peripherals/hal-sdk/ft32/ft32f4_cmsis_driver/Kconfig"
10+
11+
endmenu
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Kconfig file for package ft32f0_cmsis_driver
3+
menuconfig PKG_USING_FT32F0_CMSIS_DRIVER
4+
bool "FT32 F0 CMSIS driver package"
5+
select PKG_USING_CMSIS_CORE
6+
default n
7+
8+
if PKG_USING_FT32F0_CMSIS_DRIVER
9+
10+
config PKG_FT32F0_CMSIS_DRIVER_PATH
11+
string
12+
default "/packages/peripherals/hal-sdk/ft32/ft32f0_cmsis_driver"
13+
14+
choice
15+
prompt "Version"
16+
help
17+
Select the package version
18+
19+
config PKG_USING_FT32F0_CMSIS_DRIVER_LATEST_VERSION
20+
bool "latest"
21+
endchoice
22+
23+
config PKG_FT32F0_CMSIS_DRIVER_VER
24+
string
25+
default "latest" if PKG_USING_FT32F0_CMSIS_DRIVER_LATEST_VERSION
26+
27+
endif
28+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "ft32f0_cmsis_driver",
3+
"description": "FT32 F0 CMSIS driver package",
4+
"description_zh": "FT32 F0 CMSIS 驱动包",
5+
"enable": "PKG_USING_FT32F0_CMSIS_DRIVER",
6+
"keywords": [
7+
"ft32f0_cmsis_driver",
8+
"FT32"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "weidong-kenny",
13+
"email": "weidong0208@163.com",
14+
"github": "ft_arm_cmsis"
15+
},
16+
"license": "Apache-2.0",
17+
"repository": "https://github.com/weidong-kenny/ft_arm_cmsis",
18+
"icon": "unknown",
19+
"homepage": "https://github.com/weidong-kenny/ft_arm_cmsis#readme",
20+
"doc": "unknown",
21+
"site": [
22+
{
23+
"version": "latest",
24+
"URL": "https://github.com/weidong-kenny/ft_arm_cmsis.git",
25+
"filename": "",
26+
"VER_SHA": "main"
27+
}
28+
]
29+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Kconfig file for package ft32f0_std_driver
3+
menuconfig PKG_USING_FT32F0_STD_DRIVER
4+
bool "FT32 F0 STD driver package"
5+
select PKG_USING_FT32F0_CMSIS_DRIVER
6+
default n
7+
8+
if PKG_USING_FT32F0_STD_DRIVER
9+
10+
config PKG_FT32F0_STD_DRIVER_PATH
11+
string
12+
default "/packages/peripherals/hal-sdk/ft32/ft32f0_std_driver"
13+
14+
choice
15+
prompt "Version"
16+
help
17+
Select the package version
18+
19+
config PKG_USING_FT32F0_STD_DRIVER_LATEST_VERSION
20+
bool "latest"
21+
endchoice
22+
23+
config PKG_FT32F0_STD_DRIVER_VER
24+
string
25+
default "latest" if PKG_USING_FT32F0_STD_DRIVER_LATEST_VERSION
26+
27+
endif
28+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "ft32f0_std_driver",
3+
"description": "FT32 F0 STD driver package",
4+
"description_zh": "FT32 F0 STD 驱动包",
5+
"enable": "PKG_USING_FT32F0_STD_DRIVER",
6+
"keywords": [
7+
"ft32f0_std_driver",
8+
"FT32"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "weidong-kenny",
13+
"email": "weidong0208@163.com",
14+
"github": "ft_std_driver"
15+
},
16+
"license": "Apache-2.0",
17+
"repository": "https://github.com/weidong-kenny/ft_std_driver",
18+
"icon": "unknown",
19+
"homepage": "https://github.com/weidong-kenny/ft_std_driver#readme",
20+
"doc": "unknown",
21+
"site": [
22+
{
23+
"version": "latest",
24+
"URL": "https://github.com/weidong-kenny/ft_std_driver.git",
25+
"filename": "",
26+
"VER_SHA": "main"
27+
}
28+
]
29+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Kconfig file for package ft32f4_cmsis_driver
3+
menuconfig PKG_USING_FT32F4_CMSIS_DRIVER
4+
bool "FT32 F4 CMSIS driver package"
5+
select PKG_USING_CMSIS_CORE
6+
default n
7+
8+
if PKG_USING_FT32F4_CMSIS_DRIVER
9+
10+
config PKG_FT32F4_CMSIS_DRIVER_PATH
11+
string
12+
default "/packages/peripherals/hal-sdk/ft32/ft32f4_cmsis_driver"
13+
14+
choice
15+
prompt "Version"
16+
help
17+
Select the package version
18+
19+
config PKG_USING_FT32F4_CMSIS_DRIVER_LATEST_VERSION
20+
bool "latest"
21+
endchoice
22+
23+
config PKG_FT32F4_CMSIS_DRIVER_VER
24+
string
25+
default "latest" if PKG_USING_FT32F4_CMSIS_DRIVER_LATEST_VERSION
26+
27+
endif
28+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "ft32f4_cmsis_driver",
3+
"description": "FT32 F4 CMSIS driver package",
4+
"description_zh": "FT32 F4 CMSIS 驱动包",
5+
"enable": "PKG_USING_FT32F4_CMSIS_DRIVER",
6+
"keywords": [
7+
"ft32f4_cmsis_driver",
8+
"FT32"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "weidong-kenny",
13+
"email": "weidong0208@163.com",
14+
"github": "ft_arm_cmsis"
15+
},
16+
"license": "Apache-2.0",
17+
"repository": "https://github.com/weidong-kenny/ft_arm_cmsis",
18+
"icon": "unknown",
19+
"homepage": "https://github.com/weidong-kenny/ft_arm_cmsis#readme",
20+
"doc": "unknown",
21+
"site": [
22+
{
23+
"version": "latest",
24+
"URL": "https://github.com/weidong-kenny/ft_arm_cmsis.git",
25+
"filename": "",
26+
"VER_SHA": "main"
27+
}
28+
]
29+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Kconfig file for package ft32f4_std_driver
3+
menuconfig PKG_USING_FT32F4_STD_DRIVER
4+
bool "FT32 F4 STD driver package"
5+
select PKG_USING_FT32F4_CMSIS_DRIVER
6+
default n
7+
8+
if PKG_USING_FT32F4_STD_DRIVER
9+
10+
config PKG_FT32F4_STD_DRIVER_PATH
11+
string
12+
default "/packages/peripherals/hal-sdk/ft32/ft32f4_std_driver"
13+
14+
choice
15+
prompt "Version"
16+
help
17+
Select the package version
18+
19+
config PKG_USING_FT32F4_STD_DRIVER_LATEST_VERSION
20+
bool "latest"
21+
endchoice
22+
23+
config PKG_FT32F4_STD_DRIVER_VER
24+
string
25+
default "latest" if PKG_USING_FT32F4_STD_DRIVER_LATEST_VERSION
26+
27+
endif
28+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "ft32f4_std_driver",
3+
"description": "FT32 F4 STD driver package",
4+
"description_zh": "FT32 F4 STD 驱动包",
5+
"enable": "PKG_USING_FT32F4_STD_DRIVER",
6+
"keywords": [
7+
"ft32f4_std_driver",
8+
"STM32"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "weidong-kenny",
13+
"email": "weidong0208@163.com",
14+
"github": "ft_std_driver"
15+
},
16+
"license": "Apache-2.0",
17+
"repository": "https://github.com/weidong-kenny/ft_std_driver",
18+
"icon": "unknown",
19+
"homepage": "https://github.com/weidong-kenny/ft_std_driver#readme",
20+
"doc": "unknown",
21+
"site": [
22+
{
23+
"version": "latest",
24+
"URL": "https://github.com/weidong-kenny/ft_std_driver.git",
25+
"filename": "",
26+
"VER_SHA": "main"
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)