HAL_ChibiOS: added CPU defines to hwdef

needed for checks like defined(STM32F1)
This commit is contained in:
Andrew Tridgell 2022-02-21 19:28:29 +11:00
parent 4c5fc1f5ef
commit 96518c9eda
23 changed files with 100 additions and 13 deletions

View File

@ -29,7 +29,11 @@ mcu = {
(0x20000000, 8, 1), # main memory, DMA safe
],
'EXPECTED_CLOCK' : 24000000
'EXPECTED_CLOCK' : 24000000,
'DEFINES' : {
'STM32F1' : '1',
}
}
ADC1_map = {

View File

@ -26,7 +26,11 @@ mcu = {
(0x20000000, 20, 1), # main memory, DMA safe
],
'EXPECTED_CLOCK' : 72000000
'EXPECTED_CLOCK' : 72000000,
'DEFINES' : {
'STM32F1' : '1',
}
}
ADC1_map = {

View File

@ -25,7 +25,12 @@ mcu = {
(0x20000000, 64, 1), # main memory, DMA safe
],
'EXPECTED_CLOCK' : 72000000
'EXPECTED_CLOCK' : 72000000,
'DEFINES' : {
'STM32F1' : '1',
}
}
ADC1_map = {

View File

@ -20,7 +20,12 @@ mcu = {
(0x10000000, 8, 2), # CCM memory, faster, but not DMA safe
],
'EXPECTED_CLOCK' : 72000000
'EXPECTED_CLOCK' : 72000000,
'DEFINES' : {
'STM32F3' : '1',
}
}
AltFunction_map = {

View File

@ -20,7 +20,12 @@ mcu = {
(0x10000000, 64, 2), # CCM memory, faster, but not DMA safe
],
'EXPECTED_CLOCK' : 168000000
'EXPECTED_CLOCK' : 168000000,
'DEFINES' : {
'STM32F4' : '1',
}
}
AltFunction_map = {

View File

@ -20,7 +20,12 @@ mcu = {
(0x10000000, 64, 2), # CCM memory, faster, but not DMA safe
],
'EXPECTED_CLOCK' : 168000000
'EXPECTED_CLOCK' : 168000000,
'DEFINES' : {
'STM32F4' : '1',
}
}
DMA_Map = {

View File

@ -20,6 +20,11 @@ mcu = {
],
'EXPECTED_CLOCK' : 100000000,
'DEFINES' : {
'STM32F4' : '1',
}
}
DMA_Map = {

View File

@ -20,7 +20,11 @@ mcu = {
(0x10000000, 64, 2), # CCM memory, faster, but not DMA safe
],
'EXPECTED_CLOCK' : 168000000
'EXPECTED_CLOCK' : 168000000,
'DEFINES' : {
'STM32F4' : '1',
}
}
DMA_Map = {

View File

@ -33,7 +33,12 @@ mcu = {
(0x10000000, 64, 1), # CCM memory, faster, not DMA safe
],
'EXPECTED_CLOCK' : 180000000
'EXPECTED_CLOCK' : 180000000,
'DEFINES' : {
'STM32F4' : '1',
}
}
DMA_Map = {

View File

@ -24,6 +24,10 @@ mcu = {
'EXPECTED_CLOCK' : 216000000,
'DEFINES' : {
'STM32F7' : '1',
},
# this board has M7 instructions, but single precision only FPU
# we build as m4 as it makes for a smaller build, and given the 1M
# flash limit we care more about size

View File

@ -22,6 +22,10 @@ mcu = {
'EXPECTED_CLOCK' : 216000000,
'DEFINES' : {
'STM32F7' : '1',
},
# this board has M7 instructions, but single precision only FPU
# we build as m4 as it makes for a smaller build, and given the 1M
# flash limit we care more about size

View File

@ -44,7 +44,8 @@ mcu = {
'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard',
'DEFINES' : {
'HAL_HAVE_HARDWARE_DOUBLE' : '1'
'HAL_HAVE_HARDWARE_DOUBLE' : '1',
'STM32F7' : '1',
}
}

View File

@ -41,7 +41,8 @@ mcu = {
'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard',
'DEFINES' : {
'HAL_HAVE_HARDWARE_DOUBLE' : '1'
'HAL_HAVE_HARDWARE_DOUBLE' : '1',
'STM32F7' : '1',
}
}

View File

@ -21,6 +21,10 @@ mcu = {
],
'EXPECTED_CLOCK' : 168000000,
'DEFINES' : {
'STM32G4' : '1',
}
}
# max pin package is 128

View File

@ -21,6 +21,10 @@ mcu = {
],
'EXPECTED_CLOCK' : 168000000,
'DEFINES' : {
'STM32G4' : '1',
}
}
# max pin package is 128

View File

@ -21,6 +21,10 @@ mcu = {
],
'EXPECTED_CLOCK' : 168000000,
'DEFINES' : {
'STM32G4' : '1',
}
}
# max pin package is 128

View File

@ -21,6 +21,10 @@ mcu = {
],
'EXPECTED_CLOCK' : 168000000,
'DEFINES' : {
'STM32G4' : '1',
}
}
# max pin package is 128

View File

@ -54,7 +54,8 @@ mcu = {
'DEFINES' : {
'HAL_HAVE_HARDWARE_DOUBLE' : '1',
'HAL_WITH_MCU_MONITORING' : '1'
'HAL_WITH_MCU_MONITORING' : '1',
'STM32H7' : '1',
}
}

View File

@ -68,8 +68,9 @@ mcu = {
'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard',
'DEFINES' : {
'HAL_HAVE_HARDWARE_DOUBLE' : '1'
}
'HAL_HAVE_HARDWARE_DOUBLE' : '1',
'STM32H7' : '1',
}
}
pincount = {

View File

@ -66,6 +66,11 @@ mcu = {
# this MCU has M7 instructions and hardware double precision
'CORTEX' : 'cortex-m7',
'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard',
'DEFINES' : {
'HAL_HAVE_HARDWARE_DOUBLE' : '1',
'STM32H7' : '1',
}
}
pincount = {

View File

@ -35,6 +35,10 @@ mcu = {
],
'EXPECTED_CLOCK' : 80000000,
'DEFINES' : {
'STM32L4' : '1',
}
}
DMA_Map = {

View File

@ -36,6 +36,10 @@ mcu = {
],
'EXPECTED_CLOCK' : 80000000,
'DEFINES' : {
'STM32L4' : '1',
}
}
DMA_Map = {

View File

@ -36,6 +36,10 @@ mcu = {
],
'EXPECTED_CLOCK' : 80000000,
'DEFINES' : {
'STM32L4' : '1',
}
}
DMA_Map = {