diff options
author | Alexey <stas2z@users.noreply.github.com> | 2023-04-07 19:20:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 12:20:14 -0400 |
commit | 23e82d37f14b79a164234361a01b893443b5a34d (patch) | |
tree | dae422decc5305668daa70ac891c97f913b3072f /src/stm32/Kconfig | |
parent | 27dab0ee517a6ab8197faa19e12c2911f67b712c (diff) | |
download | kutter-23e82d37f14b79a164234361a01b893443b5a34d.tar.gz kutter-23e82d37f14b79a164234361a01b893443b5a34d.tar.xz kutter-23e82d37f14b79a164234361a01b893443b5a34d.zip |
stm32: Add support for Nation N32G45x mcus (#6116)
N32G452/G455 are mostly compatible with STM32F103 but have M4 core and different ADC.
Signed-off-by: Alexey Golyshin <stas2z@gmail.com>
Diffstat (limited to 'src/stm32/Kconfig')
-rw-r--r-- | src/stm32/Kconfig | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index 94384ec3..30b2e48d 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -97,6 +97,14 @@ choice config MACH_STM32L412 bool "STM32L412" select MACH_STM32L4 + config MACH_N32G452 + bool "Nation N32G452" + select MACH_N32G45x + select MACH_STM32F1 + config MACH_N32G455 + bool "Nation N32G455" + select MACH_N32G45x + select MACH_STM32F1 endchoice config MACH_STM32F103x6 @@ -127,10 +135,12 @@ config MACH_STM32F4x5 # F405, F407, F429 series bool config MACH_STM32L4 bool +config MACH_N32G45x + bool config HAVE_STM32_USBFS bool default y if MACH_STM32F0x2 || MACH_STM32G0Bx || MACH_STM32L4 || MACH_STM32G4 - default y if (MACH_STM32F103 || MACH_STM32F070) && !STM32_CLOCK_REF_INTERNAL + default y if (MACH_STM32F1 || MACH_STM32F070) && !STM32_CLOCK_REF_INTERNAL config HAVE_STM32_USBOTG bool default y if MACH_STM32F2 || MACH_STM32F4 || MACH_STM32H7 @@ -144,7 +154,7 @@ config HAVE_STM32_USBCANBUS bool depends on HAVE_STM32_USBFS || HAVE_STM32_USBOTG depends on HAVE_STM32_CANBUS || HAVE_STM32_FDCANBUS - depends on !MACH_STM32F103 + depends on !MACH_STM32F1 default y config MCU @@ -169,6 +179,7 @@ config MCU default "stm32h743xx" if MACH_STM32H743 default "stm32h750xx" if MACH_STM32H750 default "stm32l412xx" if MACH_STM32L412 + default "stm32f103xe" if MACH_N32G45x config CLOCK_FREQ int @@ -183,6 +194,8 @@ config CLOCK_FREQ default 150000000 if MACH_STM32G431 default 400000000 if MACH_STM32H7 # 400Mhz is max Klipper currently supports default 80000000 if MACH_STM32L412 + default 64000000 if MACH_N32G45x && STM32_CLOCK_REF_INTERNAL + default 128000000 if MACH_N32G45x config FLASH_SIZE hex @@ -195,6 +208,7 @@ config FLASH_SIZE default 0x20000 if MACH_STM32G0 || MACH_STM32G431 default 0x20000 if MACH_STM32H750 default 0x200000 if MACH_STM32H743 + default 0x20000 if MACH_N32G45x config FLASH_BOOT_ADDRESS hex @@ -219,6 +233,7 @@ config RAM_SIZE default 0x9000 if MACH_STM32G07x default 0x24000 if MACH_STM32G0Bx default 0x20000 if MACH_STM32H7 + default 0x10000 if MACH_N32G45x config STACK_SIZE int @@ -251,11 +266,11 @@ config STM32_DFU_ROM_ADDRESS choice prompt "Bootloader offset" config STM32_FLASH_START_2000 - bool "8KiB bootloader" if MACH_STM32F103 || MACH_STM32F070 || MACH_STM32G0 || MACH_STM32F0x2 + bool "8KiB bootloader" if MACH_STM32F1 || MACH_STM32F070 || MACH_STM32G0 || MACH_STM32F0x2 config STM32_FLASH_START_5000 bool "20KiB bootloader" if MACH_STM32F103 config STM32_FLASH_START_7000 - bool "28KiB bootloader" if MACH_STM32F103 + bool "28KiB bootloader" if MACH_STM32F1 config STM32_FLASH_START_8000 bool "32KiB bootloader" if MACH_STM32F1 || MACH_STM32F2 || MACH_STM32F4 config STM32_FLASH_START_8800 |