aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhenrikssn <erik.henriksson@me.com>2021-06-28 02:35:34 +0200
committerGitHub <noreply@github.com>2021-06-27 20:35:34 -0400
commit430578957f37f42815ffea900cbc3459d6fd0888 (patch)
treeefb17778993c2693a1f0a6461d37e268a85ebb55 /src
parent7fd7853785715fac01879c14cf1e9eb6422b3409 (diff)
downloadkutter-430578957f37f42815ffea900cbc3459d6fd0888.tar.gz
kutter-430578957f37f42815ffea900cbc3459d6fd0888.tar.xz
kutter-430578957f37f42815ffea900cbc3459d6fd0888.zip
stm32: Add support for STM32F072 (used in the TurboCAN board) (#4412)
* Add menuconfig option for stm32f072 * Add support for internal temp of stm32f072 * Share the temperature calculation logic between stm32f0x2 MCUs Signed-off-by: Erik Henriksson <erikhenrikssn@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm32/Kconfig10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 944d3f6f..be810b88 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -55,6 +55,9 @@ choice
config MACH_STM32F070
bool "STM32F070"
select MACH_STM32F0
+ config MACH_STM32F072
+ bool "STM32F072"
+ select MACH_STM32F0
endchoice
config MACH_STM32F0
@@ -73,13 +76,14 @@ config HAVE_STM32_USBOTG
default y if MACH_STM32F2 || MACH_STM32F4
config HAVE_STM32_CANBUS
bool
- default y if MACH_STM32F1 || MACH_STM32F2 || MACH_STM32F4 || MACH_STM32F042
+ default y if MACH_STM32F1 || MACH_STM32F2 || MACH_STM32F4 || MACH_STM32F042 || MACH_STM32F072
config MCU
string
default "stm32f031x6" if MACH_STM32F031
default "stm32f042x6" if MACH_STM32F042
default "stm32f070xb" if MACH_STM32F070
+ default "stm32f072xb" if MACH_STM32F072
default "stm32f103xe" if MACH_STM32F103
default "stm32f207xx" if MACH_STM32F207
default "stm32f401xc" if MACH_STM32F401
@@ -102,7 +106,7 @@ config FLASH_SIZE
hex
default 0x4000 if MACH_STM32F031
default 0x8000 if MACH_STM32F042
- default 0x20000 if MACH_STM32F070
+ default 0x20000 if MACH_STM32F070 || MACH_STM32F072
default 0x10000 if MACH_STM32F103 # Flash size of stm32f103x8 (64KiB)
default 0x40000 if MACH_STM32F2 || MACH_STM32F401
default 0x80000 if MACH_STM32F405 || MACH_STM32F407 || MACH_STM32F429 || MACH_STM32F446
@@ -115,7 +119,7 @@ config RAM_SIZE
hex
default 0x1000 if MACH_STM32F031
default 0x1800 if MACH_STM32F042
- default 0x4000 if MACH_STM32F070
+ default 0x4000 if MACH_STM32F070 || MACH_STM32F072
default 0x5000 if MACH_STM32F103 # Ram size of stm32f103x8 (20KiB)
default 0x20000 if MACH_STM32F207
default 0x10000 if MACH_STM32F401