hc32f460: Add support for hc32f460 micro-controllers
Signed-off-by: Steven Gotthardt <gotthardt@gmail.com>
This commit is contained in:
committed by
Kevin O'Connor
parent
94cbf5ff48
commit
72b6bd7efa
79
src/hc32f460/Kconfig
Normal file
79
src/hc32f460/Kconfig
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user