STM32F100xB.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. '''
  3. these tables are generated from the STM32 datasheets for the
  4. STM32F100xB
  5. '''
  6. # additional build information for ChibiOS
  7. build = {
  8. "CHIBIOS_STARTUP_MK" : "os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk",
  9. "CHIBIOS_PLATFORM_MK" : "os/hal/ports/STM32/STM32F1xx/platform.mk",
  10. "CHPRINTF_USE_FLOAT" : 'no',
  11. "USE_FPU" : 'no'
  12. }
  13. pincount = {
  14. 'A': 16,
  15. 'B': 16,
  16. 'C': 16,
  17. 'D': 16,
  18. 'E': 16
  19. }
  20. # MCU parameters
  21. mcu = {
  22. # location of MCU serial number
  23. 'UDID_START' : 0x1FFFF7E8,
  24. # ram map, as list of (address, size-kb, flags)
  25. # flags of 1 means DMA-capable
  26. # flags of 2 means faster memory for CPU intensive work
  27. 'RAM_MAP' : [
  28. (0x20000000, 8, 1), # main memory, DMA safe
  29. ]
  30. }
  31. ADC1_map = {
  32. # format is PIN : ADC1_CHAN
  33. "PA0" : 0,
  34. "PA1" : 1,
  35. "PA2" : 2,
  36. "PA3" : 3,
  37. "PA4" : 4,
  38. "PA5" : 5,
  39. "PA6" : 6,
  40. "PA7" : 7,
  41. "PB0" : 8,
  42. "PB1" : 9,
  43. "PC0" : 10,
  44. "PC1" : 11,
  45. "PC2" : 12,
  46. "PC3" : 13,
  47. "PC4" : 14,
  48. "PC5" : 15,
  49. }