diff options
Diffstat (limited to 'src/hc32f460/Kconfig')
-rw-r--r-- | src/hc32f460/Kconfig | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/hc32f460/Kconfig b/src/hc32f460/Kconfig new file mode 100644 index 00000000..d39bdf82 --- /dev/null +++ b/src/hc32f460/Kconfig @@ -0,0 +1,79 @@ +# Kconfig settings for Huada HC32F460 processor + +if MACH_HC32F460 + +config HC32F460_SELECT + bool + default y + select HAVE_GPIO + select HAVE_GPIO_ADC + select HAVE_GPIO_BITBANGING + select HAVE_STRICT_TIMING + select HAVE_GPIO_HARD_PWM + select HAVE_STEPPER_BOTH_EDGE + +config BOARD_DIRECTORY + string + default "hc32f460" + + +###################################################################### +# Communication interface +###################################################################### + +choice + prompt "Communication interface" + config HC32F460_SERIAL_PA7_PA8 + bool "Serial (PA7 & PA8) - Creality Ender 2 PRO" + select SERIAL + config HC32F460_SERIAL_PA3_PA2 + bool "Serial (PA3 & PA2) - Anycube" + select SERIAL + config HC32F460_SERIAL_PA15_PA9 + bool "Serial (PA15 & PA09) - Voxelab" + select SERIAL + config HC32F460_SERIAL_PC0_PC1 + bool "Serial (PC0 & PC1) - on LCD connector" + select SERIAL +endchoice + + +###################################################################### +# Bootloader +# bootloader moves code and then VTOR.RESET points here: +###################################################################### +config FLASH_SIZE + hex + default 0x40000 + +config FLASH_APPLICATION_ADDRESS + default 0x8000 # Aquila is 0xC000 + +config FLASH_BOOT_ADDRESS + hex + default 0x0 + +config RAM_SIZE + hex + default 0x8000 + +# use the fast RAM in the HC32F460 +config RAM_START + hex + default 0x1fff8000 + +config STACK_SIZE + int + default 1024 + + +config CLOCK_FREQ + int + default 200000000 # Voxelab uses 168000000 + + +config MCU + string + default "HC32F460" + +endif |