2022-09-06 08:18:48 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
if ARCH_BOARD_GD32F450ZK_EVAL
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Select Console wiring."
|
|
|
|
default GD32F450ZK_EVAL_CONSOLE_BOARD
|
|
|
|
---help---
|
|
|
|
Select where you will connect the console.
|
|
|
|
|
|
|
|
Virtual COM Port:
|
|
|
|
|
|
|
|
Advantage: Use the ST-Link as a console. No Extra wiring
|
|
|
|
needed.
|
|
|
|
|
|
|
|
Disadvantage: Not the best choice for initial bring up.
|
|
|
|
|
|
|
|
BOARD USART Connector:
|
|
|
|
|
|
|
|
Advantage: You have a shield so it is easy.
|
|
|
|
|
|
|
|
Disadvantage: You loose the use of the
|
|
|
|
other functions on PA9, PA10
|
|
|
|
|
|
|
|
GD32F450ZK_EVAL
|
|
|
|
USART0 GPIO
|
|
|
|
-- ----- --------- ----
|
|
|
|
RX USART0_RX PA10
|
|
|
|
TX USART0_TX PA9
|
|
|
|
-- ----- --------- ---
|
|
|
|
|
|
|
|
config GD32F450ZK_EVAL_CONSOLE_BOARD
|
|
|
|
bool "Eval Com Connector"
|
|
|
|
select GD32_USART0
|
|
|
|
select USART0_SERIALDRIVER
|
|
|
|
|
|
|
|
config GD32F450ZK_EVAL_CONSOLE_VIRTUAL
|
2023-06-21 09:42:25 +02:00
|
|
|
bool "Virtual ComPort"
|
2022-09-06 08:18:48 +02:00
|
|
|
select GD32_USART3
|
|
|
|
select USART3_SERIALDRIVER
|
|
|
|
|
|
|
|
config GD32F450ZK_EVAL_CONSOLE_NONE
|
2023-06-21 09:42:25 +02:00
|
|
|
bool "No Serial Console"
|
2022-09-06 08:18:48 +02:00
|
|
|
|
|
|
|
endchoice # "Select Console wiring"
|
|
|
|
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "GD32F4 MCU Crystal Selected"
|
|
|
|
default GD32F4_BOARD_USE_HXTAL
|
|
|
|
|
|
|
|
config GD32F4_BOARD_USE_HXTAL
|
|
|
|
bool "Use Hxtal as clock source"
|
|
|
|
# select GD32F4_BOARD_HXTAL_VALUE
|
|
|
|
|
|
|
|
config GD32F4_BOARD_USE_IRC16
|
|
|
|
bool "Use IRC16M as clock source"
|
|
|
|
|
|
|
|
endchoice # CPU Frequency
|
|
|
|
|
|
|
|
config GD32F4_BOARD_HXTAL_VALUE
|
|
|
|
int "GD32F450Z Eval Board Hxtal Value"
|
|
|
|
default 25000000
|
|
|
|
depends on GD32F4_BOARD_USE_HXTAL
|
|
|
|
---help---
|
|
|
|
GD32F450Z Eval Board Hxtal Value, default is 25MHz.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "GD32F4 MCU System Frequency"
|
|
|
|
default GD32F4_200MHZ
|
|
|
|
|
|
|
|
config GD32F4_200MHZ
|
|
|
|
bool "200 MHz"
|
|
|
|
|
|
|
|
config GD32F4_168MHZ
|
|
|
|
bool "168 MHz"
|
|
|
|
|
|
|
|
config GD32F4_120MHZ
|
|
|
|
bool "120 MHz"
|
|
|
|
|
|
|
|
endchoice # CPU Frequency
|
|
|
|
|
|
|
|
|
2022-12-15 08:39:17 +01:00
|
|
|
config GD32F450ZK_EVAL_GD25_BLOCKMOUNT
|
2022-09-06 08:18:48 +02:00
|
|
|
bool "GD25 serial FLASH auto-mount"
|
|
|
|
default n
|
|
|
|
depends on GD32F4_SPI5 && MTD_GD25
|
|
|
|
---help---
|
|
|
|
Automatically initialize the GD25 SPI FLASH driver when NSH starts.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "GD25 SPI FLASH configuration"
|
2022-12-15 08:39:17 +01:00
|
|
|
default GD32F450ZK_EVAL_GD25_NXFFS
|
|
|
|
depends on GD32F450ZK_EVAL_GD25_BLOCKMOUNT
|
2022-09-06 08:18:48 +02:00
|
|
|
|
2022-12-15 08:39:17 +01:00
|
|
|
config GD32F450ZK_EVAL_GD25_FTL
|
2022-09-06 08:18:48 +02:00
|
|
|
bool "Create GD25 SPI FLASH block driver"
|
|
|
|
---help---
|
|
|
|
Create the MTD driver for the GD25 and "wrap" the GD25 as a standard
|
|
|
|
block driver that could then, for example, be mounted using FAT or
|
2022-12-15 08:39:17 +01:00
|
|
|
any other file system. Any file system may be used, but there will
|
2022-09-06 08:18:48 +02:00
|
|
|
be no wear-leveling.
|
|
|
|
|
2022-12-15 08:39:17 +01:00
|
|
|
config GD32F450ZK_EVAL_GD25_NXFFS
|
2022-09-06 08:18:48 +02:00
|
|
|
bool "Create GD25 serial FLASH NXFFS file system"
|
|
|
|
depends on FS_NXFFS
|
|
|
|
---help---
|
|
|
|
Create the MTD driver for the GD25 and mount the GD25 device as
|
|
|
|
a wear-leveling, NuttX FLASH file system (NXFFS). The downside of
|
|
|
|
NXFFS is that it can be very slow.
|
|
|
|
|
2023-04-01 10:32:13 +02:00
|
|
|
config GD32F450ZK_EVAL_GD25_LITTLEFS
|
|
|
|
bool "Create GD25 serial FLASH LFS file system"
|
|
|
|
depends on FS_LITTLEFS
|
|
|
|
---help---
|
|
|
|
Create the MTD driver for the GD25 and mount the GD25 device as
|
|
|
|
a wear-leveling, LittleFS FLASH file system (LFS).
|
|
|
|
|
2022-09-06 08:18:48 +02:00
|
|
|
endchoice # GD25 serial FLASH configuration
|
|
|
|
|
2022-12-15 08:39:17 +01:00
|
|
|
config GD32F450ZK_EVAL_AT24_TEST
|
|
|
|
bool "I2C0 EEPROM AT2402 write and read test"
|
|
|
|
default n
|
|
|
|
depends on NSH_ARCHINIT && GD32F4_I2C0 && MTD_AT24XX
|
|
|
|
---help---
|
|
|
|
Automatically initialize and test the AT24 I2C EEPROM driver when
|
|
|
|
NSH starts. After test the I2C0 will be released.
|
|
|
|
|
|
|
|
config AT24XX_MTD_BLOCKSIZE
|
|
|
|
int "AT24xx MTD block size"
|
|
|
|
default 8
|
|
|
|
depends on GD32F450ZK_EVAL_AT24_TEST
|
|
|
|
---help---
|
|
|
|
The block size must be an even multiple of the pages.
|
|
|
|
The page size of AT2402 on the board is 8 Byte.
|
2022-09-06 08:18:48 +02:00
|
|
|
|
|
|
|
endif # ARCH_BOARD_GD32F450ZK_EVAL
|