2018-08-29 10:00:39 -03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
'''
|
|
|
|
these tables are generated from the STM32 datasheets for the
|
|
|
|
STM32F100xB
|
|
|
|
'''
|
|
|
|
|
|
|
|
# additional build information for ChibiOS
|
|
|
|
build = {
|
|
|
|
"CHIBIOS_STARTUP_MK" : "os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk",
|
|
|
|
"CHIBIOS_PLATFORM_MK" : "os/hal/ports/STM32/STM32F1xx/platform.mk",
|
|
|
|
"CHPRINTF_USE_FLOAT" : 'no',
|
|
|
|
"USE_FPU" : 'no'
|
|
|
|
}
|
|
|
|
|
|
|
|
pincount = {
|
|
|
|
'A': 16,
|
|
|
|
'B': 16,
|
|
|
|
'C': 16,
|
|
|
|
'D': 16,
|
|
|
|
'E': 16
|
|
|
|
}
|
|
|
|
|
|
|
|
# MCU parameters
|
|
|
|
mcu = {
|
2019-02-17 07:23:34 -04:00
|
|
|
# ram map, as list of (address, size-kb, flags)
|
|
|
|
# flags of 1 means DMA-capable
|
|
|
|
# flags of 2 means faster memory for CPU intensive work
|
|
|
|
'RAM_MAP' : [
|
|
|
|
(0x20000000, 8, 1), # main memory, DMA safe
|
2020-05-06 23:13:29 -03:00
|
|
|
],
|
|
|
|
|
2022-02-21 04:28:29 -04:00
|
|
|
'EXPECTED_CLOCK' : 24000000,
|
|
|
|
|
|
|
|
'DEFINES' : {
|
|
|
|
'STM32F1' : '1',
|
|
|
|
}
|
2018-10-28 20:24:01 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
ADC1_map = {
|
|
|
|
# format is PIN : ADC1_CHAN
|
|
|
|
"PA0" : 0,
|
|
|
|
"PA1" : 1,
|
|
|
|
"PA2" : 2,
|
|
|
|
"PA3" : 3,
|
|
|
|
"PA4" : 4,
|
|
|
|
"PA5" : 5,
|
|
|
|
"PA6" : 6,
|
|
|
|
"PA7" : 7,
|
|
|
|
"PB0" : 8,
|
|
|
|
"PB1" : 9,
|
|
|
|
"PC0" : 10,
|
|
|
|
"PC1" : 11,
|
|
|
|
"PC2" : 12,
|
|
|
|
"PC3" : 13,
|
|
|
|
"PC4" : 14,
|
|
|
|
"PC5" : 15,
|
|
|
|
}
|
|
|
|
|