STM32F777xx.py 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164
  1. #!/usr/bin/env python
  2. '''
  3. these tables are generated from the STM32 datasheet for the STM32F777x
  4. '''
  5. # additional build information for ChibiOS
  6. build = {
  7. "CHIBIOS_STARTUP_MK" : "os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk",
  8. "CHIBIOS_PLATFORM_MK" : "os/hal/ports/STM32/STM32F7xx/platform.mk"
  9. }
  10. pincount = {
  11. 'A': 16,
  12. 'B': 16,
  13. 'C': 16,
  14. 'D': 16,
  15. 'E': 16,
  16. 'F': 16,
  17. 'G': 16,
  18. 'H': 16,
  19. 'I': 16,
  20. 'J': 0,
  21. 'K': 0
  22. }
  23. # MCU parameters
  24. mcu = {
  25. # location of MCU serial number
  26. 'UDID_START' : 0x1FF0F420,
  27. # ram map, as list of (address, size-kb, flags)
  28. # flags of 1 means DMA-capable
  29. # flags of 2 means faster memory for CPU intensive work
  30. 'RAM_MAP' : [
  31. (0x20020000, 384, 0), # SRAM1/SRAM2
  32. (0x20000000, 128, 1), # DTCM, DMA
  33. ]
  34. }
  35. DMA_Map = {
  36. # format is (DMA_TABLE, StreamNum, Channel)
  37. "ADC1" : [(2,0,0),(2,4,0)],
  38. "ADC2" : [(2,2,1),(2,3,1)],
  39. "ADC3" : [(2,0,2),(2,1,2)],
  40. "CRYP_IN" : [(2,6,2)],
  41. "CRYP_OUT" : [(2,5,2)],
  42. "DAC1" : [(1,5,7)],
  43. "DAC2" : [(1,6,7)],
  44. "DCMI" : [(2,1,1),(2,7,1)],
  45. "DFSDM1_FLT0" : [(2,0,8),(2,4,8)],
  46. "DFSDM1_FLT1" : [(2,1,8),(2,5,8)],
  47. "DFSDM1_FLT2" : [(2,2,8),(2,6,8)],
  48. "DFSDM1_FLT3" : [(2,3,8),(2,7,8)],
  49. "HASH_IN" : [(2,7,2)],
  50. "I2C1_RX" : [(1,0,1),(1,5,1)],
  51. "I2C1_TX" : [(1,6,1),(1,7,1)],
  52. "I2C2_RX" : [(1,2,7),(1,3,7)],
  53. "I2C2_TX" : [(1,7,7),(1,4,8)],
  54. "I2C3_RX" : [(1,2,3),(1,1,1)],
  55. "I2C3_TX" : [(1,4,3),(1,0,8)],
  56. "I2C4_RX" : [(1,1,8),(1,2,2),(1,5,2)],
  57. "I2C4_TX" : [(1,6,8)],
  58. "JPEG_IN" : [(2,0,9),(2,3,9)],
  59. "JPEG_OUT" : [(2,1,9),(2,4,9)],
  60. "QUADSPI" : [(2,2,11),(2,7,3)],
  61. "SAI1_A" : [(2,1,0),(2,3,0),(2,6,10)],
  62. "SAI1_B" : [(2,0,10),(2,4,1),(2,5,0)],
  63. "SAI2_A" : [(2,2,10),(2,4,3)],
  64. "SAI2_B" : [(2,1,10),(2,6,3),(2,7,0)],
  65. "SDMMC1" : [(2,3,4),(2,6,4)],
  66. "SDMMC2" : [(2,0,11),(2,5,11)],
  67. "SPDIFRX_CS" : [(1,6,0)],
  68. "SPDIFRX_DT" : [(1,1,0)],
  69. "SPI1_RX" : [(2,0,3),(2,2,3)],
  70. "SPI1_TX" : [(2,3,3),(2,5,3)],
  71. "SPI2_RX" : [(1,1,9),(1,3,0)],
  72. "SPI2_TX" : [(1,4,0),(1,6,9)],
  73. "SPI3_RX" : [(1,0,0),(1,2,0)],
  74. "SPI3_TX" : [(1,5,0),(1,7,0)],
  75. "SPI4_RX" : [(2,0,4),(2,3,5)],
  76. "SPI4_TX" : [(2,1,4),(2,2,9),(2,4,5)],
  77. "SPI5_RX" : [(2,3,2),(2,5,7),(2,5,9)],
  78. "SPI5_TX" : [(2,4,2),(2,6,7)],
  79. "SPI6_RX" : [(2,6,1)],
  80. "SPI6_TX" : [(2,5,1)],
  81. "TIM1_CH1" : [(2,1,6),(2,3,6),(2,6,0)],
  82. "TIM1_CH2" : [(2,2,6),(2,6,0)],
  83. "TIM1_CH3" : [(2,6,0),(2,6,6)],
  84. "TIM1_CH4" : [(2,4,6)],
  85. "TIM1_COM" : [(2,4,6)],
  86. "TIM1_TRIG" : [(2,0,6),(2,4,6)],
  87. "TIM1_UP" : [(2,5,6)],
  88. "TIM2_CH1" : [(1,5,3)],
  89. "TIM2_CH2" : [(1,6,3)],
  90. "TIM2_CH3" : [(1,1,3)],
  91. "TIM2_CH4" : [(1,6,3),(1,7,3)],
  92. "TIM2_UP" : [(1,1,3),(1,7,3)],
  93. "TIM3_CH1" : [(1,4,5)],
  94. "TIM3_CH2" : [(1,5,5)],
  95. "TIM3_CH3" : [(1,7,5)],
  96. "TIM3_CH4" : [(1,2,5)],
  97. "TIM3_TRIG" : [(1,4,5)],
  98. "TIM3_UP" : [(1,2,5)],
  99. "TIM4_CH1" : [(1,0,2)],
  100. "TIM4_CH2" : [(1,3,2)],
  101. "TIM4_CH3" : [(1,7,2)],
  102. "TIM4_UP" : [(1,6,2)],
  103. "TIM5_CH1" : [(1,2,6)],
  104. "TIM5_CH2" : [(1,4,6)],
  105. "TIM5_CH3" : [(1,0,6)],
  106. "TIM5_CH4" : [(1,1,6),(1,3,6)],
  107. "TIM5_TRIG" : [(1,1,6),(1,3,6)],
  108. "TIM5_UP" : [(1,0,6),(1,6,6)],
  109. "TIM6_UP" : [(1,1,7)],
  110. "TIM7_UP" : [(1,2,1),(1,4,1)],
  111. "TIM8_CH1" : [(2,2,0),(2,2,7)],
  112. "TIM8_CH2" : [(2,2,0),(2,3,7)],
  113. "TIM8_CH3" : [(2,2,0),(2,4,7)],
  114. "TIM8_CH4" : [(2,7,7)],
  115. "TIM8_COM" : [(2,7,7)],
  116. "TIM8_TRIG" : [(2,7,7)],
  117. "TIM8_UP" : [(2,1,7)],
  118. "UART4_RX" : [(1,2,4)],
  119. "UART4_TX" : [(1,4,4)],
  120. "UART5_RX" : [(1,0,4)],
  121. "UART5_TX" : [(1,7,4)],
  122. "UART7_RX" : [(1,3,5)],
  123. "UART7_TX" : [(1,1,5)],
  124. "UART8_RX" : [(1,6,5)],
  125. "UART8_TX" : [(1,0,5)],
  126. "USART1_RX" : [(2,2,4),(2,5,4)],
  127. "USART1_TX" : [(2,7,4)],
  128. "USART2_RX" : [(1,5,4)],
  129. "USART2_TX" : [(1,6,4)],
  130. "USART3_RX" : [(1,1,4)],
  131. "USART3_TX" : [(1,3,4),(1,4,7)],
  132. "USART6_RX" : [(2,1,5),(2,2,5)],
  133. "USART6_TX" : [(2,6,5),(2,7,5)],
  134. }
  135. AltFunction_map = {
  136. # format is PIN:FUNCTION : AFNUM
  137. # extracted from tabula-AF-F777.csv
  138. "PA0:ETH_MII_CRS" : 11,
  139. "PA0:EVENTOUT" : 15,
  140. "PA0:SAI2_SD_B" : 10,
  141. "PA0:TIM2_CH1" : 1,
  142. "PA0:TIM2_ETR" : 1,
  143. "PA0:TIM5_CH1" : 2,
  144. "PA0:TIM8_ETR" : 3,
  145. "PA0:UART4_TX" : 8,
  146. "PA0:USART2_CTS" : 7,
  147. "PA1:ETH_MII_RX_CLK" : 11,
  148. "PA1:ETH_RMII_REF_CLK" : 11,
  149. "PA1:EVENTOUT" : 15,
  150. "PA1:LCD_R2" : 14,
  151. "PA1:QUADSPI_BK1_IO3" : 9,
  152. "PA1:SAI2_MCK_B" : 10,
  153. "PA1:TIM2_CH2" : 1,
  154. "PA1:TIM5_CH2" : 2,
  155. "PA1:UART4_RX" : 8,
  156. "PA1:USART2_RTS" : 7,
  157. "PA2:ETH_MDIO" : 11,
  158. "PA2:EVENTOUT" : 15,
  159. "PA2:LCD_R1" : 14,
  160. "PA2:MDIOS_MDIO" : 12,
  161. "PA2:SAI2_SCK_B" : 8,
  162. "PA2:TIM2_CH3" : 1,
  163. "PA2:TIM5_CH3" : 2,
  164. "PA2:TIM9_CH1" : 3,
  165. "PA2:USART2_TX" : 7,
  166. "PA3:ETH_MII_COL" : 11,
  167. "PA3:EVENTOUT" : 15,
  168. "PA3:LCD_B2" : 9,
  169. "PA3:LCD_B5" : 14,
  170. "PA3:OTG_HS_ULPI_D0" : 10,
  171. "PA3:TIM2_CH4" : 1,
  172. "PA3:TIM5_CH4" : 2,
  173. "PA3:TIM9_CH2" : 3,
  174. "PA3:USART2_RX" : 7,
  175. "PA4:DCMI_HSYNC" : 13,
  176. "PA4:EVENTOUT" : 15,
  177. "PA4:I2S1_WS" : 5,
  178. "PA4:I2S3_WS" : 6,
  179. "PA4:LCD_VSYNC" : 14,
  180. "PA4:OTG_HS_SOF" : 12,
  181. "PA4:SPI1_NSS" : 5,
  182. "PA4:SPI3_NSS" : 6,
  183. "PA4:SPI6_NSS" : 8,
  184. "PA4:USART2_CK" : 7,
  185. "PA5:EVENTOUT" : 15,
  186. "PA5:I2S1_CK" : 5,
  187. "PA5:LCD_R4" : 14,
  188. "PA5:OTG_HS_ULPI_CK" : 10,
  189. "PA5:SPI1_SCK" : 5,
  190. "PA5:SPI6_SCK" : 8,
  191. "PA5:TIM2_CH1" : 1,
  192. "PA5:TIM2_ETR" : 1,
  193. "PA5:TIM8_CH1N" : 3,
  194. "PA6:DCMI_PIXCLK" : 13,
  195. "PA6:EVENTOUT" : 15,
  196. "PA6:LCD_G2" : 14,
  197. "PA6:MDIOS_MDC" : 12,
  198. "PA6:SPI1_MISO" : 5,
  199. "PA6:SPI6_MISO" : 8,
  200. "PA6:TIM13_CH1" : 9,
  201. "PA6:TIM1_BKIN" : 1,
  202. "PA6:TIM3_CH1" : 2,
  203. "PA6:TIM8_BKIN" : 3,
  204. "PA7:ETH_MII_RX_DV" : 11,
  205. "PA7:ETH_RMII_CRS_DV" : 11,
  206. "PA7:EVENTOUT" : 15,
  207. "PA7:FMC_SDNWE" : 12,
  208. "PA7:I2S1_SD" : 5,
  209. "PA7:SPI1_MOSI" : 5,
  210. "PA7:SPI6_MOSI" : 8,
  211. "PA7:TIM14_CH1" : 9,
  212. "PA7:TIM1_CH1N" : 1,
  213. "PA7:TIM3_CH2" : 2,
  214. "PA7:TIM8_CH1N" : 3,
  215. "PA8:CAN3_RX" : 11,
  216. "PA8:EVENTOUT" : 15,
  217. "PA8:I2C3_SCL" : 4,
  218. "PA8:LCD_B3" : 13,
  219. "PA8:LCD_R6" : 14,
  220. "PA8:MCO1" : 0,
  221. "PA8:OTG_FS_SOF" : 10,
  222. "PA8:TIM1_CH1" : 1,
  223. "PA8:TIM8_BKIN2" : 3,
  224. "PA8:UART7_RX" : 12,
  225. "PA8:USART1_CK" : 7,
  226. "PA9:DCMI_D0" : 13,
  227. "PA9:EVENTOUT" : 15,
  228. "PA9:I2C3_SMBA" : 4,
  229. "PA9:I2S2_CK" : 5,
  230. "PA9:LCD_R5" : 14,
  231. "PA9:SPI2_SCK" : 5,
  232. "PA9:TIM1_CH2" : 1,
  233. "PA9:USART1_TX" : 7,
  234. "PA10:DCMI_D1" : 13,
  235. "PA10:EVENTOUT" : 15,
  236. "PA10:LCD_B1" : 14,
  237. "PA10:LCD_B4" : 9,
  238. "PA10:MDIOS_MDIO" : 12,
  239. "PA10:OTG_FS_ID" : 10,
  240. "PA10:TIM1_CH3" : 1,
  241. "PA10:USART1_RX" : 7,
  242. "PA11:CAN1_RX" : 9,
  243. "PA11:EVENTOUT" : 15,
  244. "PA11:I2S2_WS" : 5,
  245. "PA11:LCD_R4" : 14,
  246. "PA11:OTG_FS_DM" : 10,
  247. "PA11:SPI2_NSS" : 5,
  248. "PA11:TIM1_CH4" : 1,
  249. "PA11:UART4_RX" : 6,
  250. "PA11:USART1_CTS" : 7,
  251. "PA12:CAN1_TX" : 9,
  252. "PA12:EVENTOUT" : 15,
  253. "PA12:I2S2_CK" : 5,
  254. "PA12:LCD_R5" : 14,
  255. "PA12:OTG_FS_DP" : 10,
  256. "PA12:SAI2_FS_B" : 8,
  257. "PA12:SPI2_SCK" : 5,
  258. "PA12:TIM1_ETR" : 1,
  259. "PA12:UART4_TX" : 6,
  260. "PA12:USART1_RTS" : 7,
  261. "PA13:EVENTOUT" : 15,
  262. "PA13:JTMS-SWDIO" : 0,
  263. "PA14:EVENTOUT" : 15,
  264. "PA14:JTCK-SWCLK" : 0,
  265. "PA15:CAN3_TX" : 11,
  266. "PA15:EVENTOUT" : 15,
  267. "PA15:HDMI-CEC" : 4,
  268. "PA15:I2S1_WS" : 5,
  269. "PA15:I2S3_WS" : 6,
  270. "PA15:JTDI" : 0,
  271. "PA15:SPI1_NSS" : 5,
  272. "PA15:SPI3_NSS" : 6,
  273. "PA15:SPI6_NSS" : 7,
  274. "PA15:TIM2_CH1" : 1,
  275. "PA15:TIM2_ETR" : 1,
  276. "PA15:UART4_RTS" : 8,
  277. "PA15:UART7_TX" : 12,
  278. "PB0:DFSDM1_CKOUT" : 6,
  279. "PB0:ETH_MII_RXD2" : 11,
  280. "PB0:EVENTOUT" : 15,
  281. "PB0:LCD_G1" : 14,
  282. "PB0:LCD_R3" : 9,
  283. "PB0:OTG_HS_ULPI_D1" : 10,
  284. "PB0:TIM1_CH2N" : 1,
  285. "PB0:TIM3_CH3" : 2,
  286. "PB0:TIM8_CH2N" : 3,
  287. "PB0:UART4_CTS" : 8,
  288. "PB1:DFSDM1_DATIN1" : 6,
  289. "PB1:ETH_MII_RXD3" : 11,
  290. "PB1:EVENTOUT" : 15,
  291. "PB1:LCD_G0" : 14,
  292. "PB1:LCD_R6" : 9,
  293. "PB1:OTG_HS_ULPI_D2" : 10,
  294. "PB1:TIM1_CH3N" : 1,
  295. "PB1:TIM3_CH4" : 2,
  296. "PB1:TIM8_CH3N" : 3,
  297. "PB2:DFSDM1_CKIN1" : 10,
  298. "PB2:EVENTOUT" : 15,
  299. "PB2:I2S3_SD" : 7,
  300. "PB2:QUADSPI_CLK" : 9,
  301. "PB2:SAI1_SD_A" : 6,
  302. "PB2:SPI3_MOSI" : 7,
  303. "PB3:CAN3_RX" : 11,
  304. "PB3:EVENTOUT" : 15,
  305. "PB3:I2S1_CK" : 5,
  306. "PB3:I2S3_CK" : 6,
  307. "PB3:JTDO" : 0,
  308. "PB3:SDMMC2_D2" : 10,
  309. "PB3:SPI1_SCK" : 5,
  310. "PB3:SPI3_SCK" : 6,
  311. "PB3:SPI6_SCK" : 8,
  312. "PB3:TIM2_CH2" : 1,
  313. "PB3:TRACESWO" : 0,
  314. "PB3:UART7_RX" : 12,
  315. "PB4:CAN3_TX" : 11,
  316. "PB4:EVENTOUT" : 15,
  317. "PB4:I2S2_WS" : 7,
  318. "PB4:NJTRST" : 0,
  319. "PB4:SDMMC2_D3" : 10,
  320. "PB4:SPI1_MISO" : 5,
  321. "PB4:SPI2_NSS" : 7,
  322. "PB4:SPI3_MISO" : 6,
  323. "PB4:SPI6_MISO" : 8,
  324. "PB4:TIM3_CH1" : 2,
  325. "PB4:UART7_TX" : 12,
  326. "PB5:CAN2_RX" : 9,
  327. "PB5:DCMI_D10" : 13,
  328. "PB5:ETH_PPS_OUT" : 11,
  329. "PB5:EVENTOUT" : 15,
  330. "PB5:FMC_SDCKE1" : 12,
  331. "PB5:I2C1_SMBA" : 4,
  332. "PB5:I2S1_SD" : 5,
  333. "PB5:I2S3_SD" : 6,
  334. "PB5:LCD_G7" : 14,
  335. "PB5:OTG_HS_ULPI_D7" : 10,
  336. "PB5:SPI1_MOSI" : 5,
  337. "PB5:SPI3_MOSI" : 6,
  338. "PB5:SPI6_MOSI" : 8,
  339. "PB5:TIM3_CH2" : 2,
  340. "PB5:UART5_RX" : 1,
  341. "PB6:CAN2_TX" : 9,
  342. "PB6:DCMI_D5" : 13,
  343. "PB6:DFSDM1_DATIN5" : 6,
  344. "PB6:EVENTOUT" : 15,
  345. "PB6:FMC_SDNE1" : 12,
  346. "PB6:HDMI-CEC" : 3,
  347. "PB6:I2C1_SCL" : 4,
  348. "PB6:I2C4_SCL" : 11,
  349. "PB6:QUADSPI_BK1_NCS" : 10,
  350. "PB6:TIM4_CH1" : 2,
  351. "PB6:UART5_TX" : 1,
  352. "PB6:USART1_TX" : 7,
  353. "PB7:DCMI_VSYNC" : 13,
  354. "PB7:DFSDM1_CKIN5" : 6,
  355. "PB7:EVENTOUT" : 15,
  356. "PB7:FMC_NL" : 12,
  357. "PB7:I2C1_SDA" : 4,
  358. "PB7:I2S4_SDA" : 11,
  359. "PB7:TIM4_CH2" : 2,
  360. "PB7:USART1_RX" : 7,
  361. "PB8:CAN1_RX" : 9,
  362. "PB8:DCMI_D6" : 13,
  363. "PB8:DFSDM1_CKIN7" : 6,
  364. "PB8:ETH_MII_TXD3" : 11,
  365. "PB8:EVENTOUT" : 15,
  366. "PB8:I2C1_SCL" : 4,
  367. "PB8:I2C4_SCL" : 1,
  368. "PB8:LCD_B6" : 14,
  369. "PB8:SDMMC2_D4" : 10,
  370. "PB8:SDMMC_D4" : 12,
  371. "PB8:TIM10_CH1" : 3,
  372. "PB8:TIM4_CH3" : 2,
  373. "PB8:UART5_RX" : 7,
  374. "PB9:CAN1_TX" : 9,
  375. "PB9:DCMI_D7" : 13,
  376. "PB9:DFSDM1_DATIN7" : 6,
  377. "PB9:EVENTOUT" : 15,
  378. "PB9:I2C1_SDA" : 4,
  379. "PB9:I2C4_SDA" : 1,
  380. "PB9:I2C4_SMBA" : 11,
  381. "PB9:I2S2_WS" : 5,
  382. "PB9:LCD_B7" : 14,
  383. "PB9:SDMMC2_D5" : 10,
  384. "PB9:SDMMC_D5" : 12,
  385. "PB9:SPI2_NSS" : 5,
  386. "PB9:TIM11_CH1" : 3,
  387. "PB9:TIM4_CH4" : 2,
  388. "PB9:UART5_TX" : 7,
  389. "PB10:-QUADSPI_BK1_NCS" : 9,
  390. "PB10:DFSDM1_DATIN7" : 6,
  391. "PB10:ETH_MII_RX_ER" : 11,
  392. "PB10:EVENTOUT" : 15,
  393. "PB10:I2C2_SCL" : 4,
  394. "PB10:I2S2_CK" : 5,
  395. "PB10:LCD_G4" : 14,
  396. "PB10:OTG_HS_ULPI_D3" : 10,
  397. "PB10:SPI2_SCK" : 5,
  398. "PB10:TIM2_CH3" : 1,
  399. "PB10:USART3_TX" : 7,
  400. "PB11:DFSDM1_CKIN7" : 6,
  401. "PB11:DSI_TE" : 13,
  402. "PB11:ETH_MII_TX_EN" : 11,
  403. "PB11:ETH_RMII_TX_EN" : 11,
  404. "PB11:EVENTOUT" : 15,
  405. "PB11:I2C2_SDA" : 4,
  406. "PB11:LCD_G5" : 14,
  407. "PB11:OTG_HS_ULPI_D4" : 10,
  408. "PB11:TIM2_CH4" : 1,
  409. "PB11:USART3_RX" : 7,
  410. "PB12:CAN2_RX" : 9,
  411. "PB12:DFSDM1_DATIN1" : 6,
  412. "PB12:ETH_MII_TXD0" : 11,
  413. "PB12:ETH_RMII_TXD0" : 11,
  414. "PB12:EVENTOUT" : 15,
  415. "PB12:I2C2_SMBA" : 4,
  416. "PB12:I2S2_WS" : 5,
  417. "PB12:OTG_HS_ID" : 12,
  418. "PB12:OTG_HS_ULPI_D5" : 10,
  419. "PB12:SPI2_NSS" : 5,
  420. "PB12:TIM1_BKIN" : 1,
  421. "PB12:UART5_RX" : 8,
  422. "PB12:USART3_CK" : 7,
  423. "PB13:CAN2_TX" : 9,
  424. "PB13:DFSDM1_CKIN1" : 6,
  425. "PB13:ETH_MII_TXD1" : 11,
  426. "PB13:ETH_RMII_TXD1" : 11,
  427. "PB13:EVENTOUT" : 15,
  428. "PB13:I2S2_CK" : 5,
  429. "PB13:OTG_HS_ULPI_D6" : 10,
  430. "PB13:SPI2_SCK" : 5,
  431. "PB13:TIM1_CH1N" : 1,
  432. "PB13:UART5_TX" : 8,
  433. "PB13:USART3_CTS" : 7,
  434. "PB14:DFSDM1_DATIN2" : 6,
  435. "PB14:EVENTOUT" : 15,
  436. "PB14:OTG_HS_DM" : 12,
  437. "PB14:SDMMC2_D0" : 10,
  438. "PB14:SPI2_MISO" : 5,
  439. "PB14:TIM12_CH1" : 9,
  440. "PB14:TIM1_CH2N" : 1,
  441. "PB14:TIM8_CH2N" : 3,
  442. "PB14:UART4_RTS" : 8,
  443. "PB14:USART1_TX" : 4,
  444. "PB14:USART3_RTS" : 7,
  445. "PB15:DFSDM1_CKIN2" : 6,
  446. "PB15:EVENTOUT" : 15,
  447. "PB15:I2S2_SD" : 5,
  448. "PB15:OTG_HS_DP" : 12,
  449. "PB15:RTC_REFIN" : 0,
  450. "PB15:SDMMC2_D1" : 10,
  451. "PB15:SPI2_MOSI" : 5,
  452. "PB15:TIM12_CH2" : 9,
  453. "PB15:TIM1_CH3N" : 1,
  454. "PB15:TIM8_CH3N" : 3,
  455. "PB15:UART4_CTS" : 8,
  456. "PB15:USART1_RX" : 4,
  457. "PC0:DFSDM1_CKIN0" : 3,
  458. "PC0:DFSDM1_DATIN4" : 6,
  459. "PC0:EVENTOUT" : 15,
  460. "PC0:FMC_SDNWE" : 12,
  461. "PC0:LCD_R5" : 14,
  462. "PC0:OTG_HS_ULPI_STP" : 10,
  463. "PC0:SAI2_FS_B" : 8,
  464. "PC1:DFSDM1_CKIN4" : 10,
  465. "PC1:DFSDM1_DATAIN0" : 3,
  466. "PC1:ETH_MDC" : 11,
  467. "PC1:EVENTOUT" : 15,
  468. "PC1:I2S2_SD" : 5,
  469. "PC1:MDIOS_MDC" : 12,
  470. "PC1:SAI1_SD_A" : 6,
  471. "PC1:SPI2_MOSI" : 5,
  472. "PC1:TRACED0" : 0,
  473. "PC2:DFSDM1_CKIN1" : 3,
  474. "PC2:DFSDM1_CKOUT" : 6,
  475. "PC2:ETH_MII_TXD2" : 11,
  476. "PC2:EVENTOUT" : 15,
  477. "PC2:FMC_SDNE0" : 12,
  478. "PC2:OTG_HS_ULPI_DIR" : 10,
  479. "PC2:SPI2_MISO" : 5,
  480. "PC3:DFSDM1_DATAIN1" : 3,
  481. "PC3:ETH_MII_TX_CLK" : 11,
  482. "PC3:EVENTOUT" : 15,
  483. "PC3:FMC_SDCKE0" : 12,
  484. "PC3:I2S2_SD" : 5,
  485. "PC3:OTG_HS_ULPI_NXT" : 10,
  486. "PC3:SPI2_MOSI" : 5,
  487. "PC4:DFSDM1_CKIN2" : 3,
  488. "PC4:ETH_MII_RXD0" : 11,
  489. "PC4:ETH_RMII_RXD0" : 11,
  490. "PC4:EVENTOUT" : 15,
  491. "PC4:FMC_SDNE0" : 12,
  492. "PC4:I2S1_MCK" : 5,
  493. "PC4:SPDIF_RX2" : 8,
  494. "PC5:DFSDM1_DATAIN2" : 3,
  495. "PC5:ETH_MII_RXD1" : 11,
  496. "PC5:ETH_RMII_RXD1" : 11,
  497. "PC5:EVENTOUT" : 15,
  498. "PC5:FMC_SDCKE0" : 12,
  499. "PC5:SPDIF_RX3" : 8,
  500. "PC6:DCMI_D0" : 13,
  501. "PC6:DFSDM1_CKIN3" : 7,
  502. "PC6:EVENTOUT" : 15,
  503. "PC6:FMC_NWAIT" : 9,
  504. "PC6:I2S2_MCK" : 5,
  505. "PC6:LCD_HSYNC" : 14,
  506. "PC6:SDMMC2_D6" : 10,
  507. "PC6:SDMMC_D6" : 12,
  508. "PC6:TIM3_CH1" : 2,
  509. "PC6:TIM8_CH1" : 3,
  510. "PC6:USART6_TX" : 8,
  511. "PC7:DCMI_D1" : 13,
  512. "PC7:DFSDM1_DATAIN3" : 7,
  513. "PC7:EVENTOUT" : 15,
  514. "PC7:FMC_NE1" : 9,
  515. "PC7:I2S3_MCK" : 6,
  516. "PC7:LCD_G6" : 14,
  517. "PC7:SDMMC2_D7" : 10,
  518. "PC7:SDMMC_D7" : 12,
  519. "PC7:TIM3_CH2" : 2,
  520. "PC7:TIM8_CH2" : 3,
  521. "PC7:USART6_RX" : 8,
  522. "PC8:DCMI_D2" : 13,
  523. "PC8:EVENTOUT" : 15,
  524. "PC8:FMC_NCE" : 9,
  525. "PC8:FMC_NE2" : 9,
  526. "PC8:SDMMC_D0" : 12,
  527. "PC8:TIM3_CH3" : 2,
  528. "PC8:TIM8_CH3" : 3,
  529. "PC8:TRACED1" : 0,
  530. "PC8:UART5_RTS" : 7,
  531. "PC8:USART6_CK" : 8,
  532. "PC9:DCMI_D3" : 13,
  533. "PC9:EVENTOUT" : 15,
  534. "PC9:I2C3_SDA" : 4,
  535. "PC9:I2S_CKIN" : 5,
  536. "PC9:LCD_B2" : 14,
  537. "PC9:LCD_G3" : 10,
  538. "PC9:MCO2" : 0,
  539. "PC9:QUADSPI_BK1_IO0" : 9,
  540. "PC9:SDMMC_D1" : 12,
  541. "PC9:TIM3_CH4" : 2,
  542. "PC9:TIM8_CH4" : 3,
  543. "PC9:UART5_CTS" : 7,
  544. "PC10:DCMI_D8" : 13,
  545. "PC10:DFSDM1_CKIN5" : 3,
  546. "PC10:EVENTOUT" : 15,
  547. "PC10:I2S3_CK" : 6,
  548. "PC10:LCD_R2" : 14,
  549. "PC10:QUADSPI_BK1_IO1" : 9,
  550. "PC10:SDMMC_D2" : 12,
  551. "PC10:SPI3_SCK" : 6,
  552. "PC10:UART4_TX" : 8,
  553. "PC10:USART3_TX" : 7,
  554. "PC11:DCMI_D4" : 13,
  555. "PC11:DFSDM1_DATAIN5" : 3,
  556. "PC11:EVENTOUT" : 15,
  557. "PC11:QUADSPI_BK2_NCS" : 9,
  558. "PC11:SDMMC_D3" : 12,
  559. "PC11:SPI3_MISO" : 6,
  560. "PC11:UART4_RX" : 8,
  561. "PC11:USART3_RX" : 7,
  562. "PC12:DCMI_D9" : 13,
  563. "PC12:EVENTOUT" : 15,
  564. "PC12:I2S3_SD" : 6,
  565. "PC12:SDMMC_CK" : 12,
  566. "PC12:SPI3_MOSI" : 6,
  567. "PC12:TRACED3" : 0,
  568. "PC12:UART5_TX" : 8,
  569. "PC12:USART3_CK" : 7,
  570. "PC13:EVENTOUT" : 15,
  571. "PC14:EVENTOUT" : 15,
  572. "PC15:EVENTOUT" : 15,
  573. "PD0:CAN1_RX" : 9,
  574. "PD0:DFSDM1_CKIN6" : 3,
  575. "PD0:DFSDM1_DATAIN7" : 6,
  576. "PD0:EVENTOUT" : 15,
  577. "PD0:FMC_D2" : 12,
  578. "PD0:UART4_RX" : 8,
  579. "PD1:CAN1_TX" : 9,
  580. "PD1:DFSDM1_CKIN7" : 6,
  581. "PD1:DFSDM1_DATAIN6" : 3,
  582. "PD1:EVENTOUT" : 15,
  583. "PD1:FMC_D3" : 12,
  584. "PD1:UART4_TX" : 8,
  585. "PD2:DCMI_D11" : 13,
  586. "PD2:EVENTOUT" : 15,
  587. "PD2:SDMMC_CMD" : 12,
  588. "PD2:TIM3_ETR" : 2,
  589. "PD2:TRACED2" : 0,
  590. "PD2:UART5_RX" : 8,
  591. "PD3:DCMI_D5" : 13,
  592. "PD3:DFSDM1_CKOUT" : 3,
  593. "PD3:DFSDM1_DATAIN0" : 6,
  594. "PD3:EVENTOUT" : 15,
  595. "PD3:FMC_CLK" : 12,
  596. "PD3:I2S2_CK" : 5,
  597. "PD3:LCD_G7" : 14,
  598. "PD3:SPI2_SCK" : 5,
  599. "PD3:USART2_CTS" : 7,
  600. "PD4:DFSDM1_CKIN0" : 6,
  601. "PD4:EVENTOUT" : 15,
  602. "PD4:FMC_NOE" : 12,
  603. "PD4:USART2_RTS" : 7,
  604. "PD5:EVENTOUT" : 15,
  605. "PD5:FMC_NWE" : 12,
  606. "PD5:USART2_TX" : 7,
  607. "PD6:DCMI_D10" : 13,
  608. "PD6:DFSDM1_CKIN4" : 3,
  609. "PD6:DFSDM1_DATAIN1" : 10,
  610. "PD6:EVENTOUT" : 15,
  611. "PD6:FMC_NWAIT" : 12,
  612. "PD6:I2S3_SD" : 5,
  613. "PD6:LCD_B2" : 14,
  614. "PD6:SAI1_SD_A" : 6,
  615. "PD6:SDMMC2_CK" : 11,
  616. "PD6:SPI3_MOSI" : 5,
  617. "PD6:USART2_RX" : 7,
  618. "PD7:DFSDM1_CKIN1" : 6,
  619. "PD7:DFSDM1_DATAIN4" : 3,
  620. "PD7:EVENTOUT" : 15,
  621. "PD7:FMC_NE1" : 12,
  622. "PD7:I2S1_SD" : 5,
  623. "PD7:SDMMC2_CMD" : 11,
  624. "PD7:SPDIF_RX0" : 8,
  625. "PD7:SPI1_MOSI" : 5,
  626. "PD7:USART2_CK" : 7,
  627. "PD8:DFSDM1_CKIN3" : 3,
  628. "PD8:EVENTOUT" : 15,
  629. "PD8:FMC_D13" : 12,
  630. "PD8:SPDIF_RX1" : 8,
  631. "PD8:USART3_TX" : 7,
  632. "PD9:DFSDM1_DATAIN3" : 3,
  633. "PD9:EVENTOUT" : 15,
  634. "PD9:FMC_D14" : 12,
  635. "PD9:USART3_RX" : 7,
  636. "PD10:DFSDM1_CKOUT" : 3,
  637. "PD10:EVENTOUT" : 15,
  638. "PD10:FMC_D15" : 12,
  639. "PD10:LCD_B3" : 14,
  640. "PD10:USART3_CK" : 7,
  641. "PD11:EVENTOUT" : 15,
  642. "PD11:FMC_A16" : 12,
  643. "PD11:FMC_CLE" : 12,
  644. "PD11:I2C4_SMBA" : 4,
  645. "PD11:QUADSPI_BK1_IO0" : 9,
  646. "PD11:SAI2_SD_A" : 10,
  647. "PD11:USART3_CTS" : 7,
  648. "PD12:EVENTOUT" : 15,
  649. "PD12:FMC_A17" : 12,
  650. "PD12:FMC_ALE" : 12,
  651. "PD12:I2C4_SCL" : 4,
  652. "PD12:LPTIM1_IN1" : 3,
  653. "PD12:QUADSPI_BK1_IO1" : 9,
  654. "PD12:SAI2_FS_A" : 10,
  655. "PD12:TIM4_CH1" : 2,
  656. "PD12:USART3_RTS" : 7,
  657. "PD13:EVENTOUT" : 15,
  658. "PD13:FMC_A18" : 12,
  659. "PD13:I2C4_SDA" : 4,
  660. "PD13:LPTIM1_OUT" : 3,
  661. "PD13:QUADSPI_BK1_IO3" : 9,
  662. "PD13:SAI2_SCK_A" : 10,
  663. "PD13:TIM4_CH2" : 2,
  664. "PD14:EVENTOUT" : 15,
  665. "PD14:FMC_D0" : 12,
  666. "PD14:TIM4_CH3" : 2,
  667. "PD14:UART8_CTS" : 8,
  668. "PD15:EVENTOUT" : 15,
  669. "PD15:FMC_D1" : 12,
  670. "PD15:TIM4_CH4" : 2,
  671. "PD15:UART8_RTS" : 8,
  672. "PE0:DCMI_D2" : 13,
  673. "PE0:EVENTOUT" : 15,
  674. "PE0:FMC_NBL0" : 12,
  675. "PE0:LPTIM1_ETR" : 3,
  676. "PE0:SAI2_MCK_A" : 10,
  677. "PE0:TIM4_ETR" : 2,
  678. "PE0:UART8_RX" : 8,
  679. "PE1:DCMI_D3" : 13,
  680. "PE1:EVENTOUT" : 15,
  681. "PE1:FMC_NBL1" : 12,
  682. "PE1:LPTIM1_IN2" : 3,
  683. "PE1:UART8_TX" : 8,
  684. "PE2:ETH_MII_TXD3" : 11,
  685. "PE2:EVENTOUT" : 15,
  686. "PE2:FMC_A23" : 12,
  687. "PE2:QUADSPI_BK1_IO2" : 9,
  688. "PE2:SAI1_MCLK_A" : 6,
  689. "PE2:SPI4_SCK" : 5,
  690. "PE2:TRACECLK" : 0,
  691. "PE3:EVENTOUT" : 15,
  692. "PE3:FMC_A19" : 12,
  693. "PE3:SAI1_SD_B" : 6,
  694. "PE3:TRACED0" : 0,
  695. "PE4:DCMI_D4" : 13,
  696. "PE4:DFSDM1_DATAIN3" : 10,
  697. "PE4:EVENTOUT" : 15,
  698. "PE4:FMC_A20" : 12,
  699. "PE4:LCD_B0" : 14,
  700. "PE4:SAI1_FS_A" : 6,
  701. "PE4:SPI4_NSS" : 5,
  702. "PE4:TRACED1" : 0,
  703. "PE5:DCMI_D6" : 13,
  704. "PE5:DFSDM1_CKIN3" : 10,
  705. "PE5:EVENTOUT" : 15,
  706. "PE5:FMC_A21" : 12,
  707. "PE5:LCD_G0" : 14,
  708. "PE5:SAI1_SCK_A" : 6,
  709. "PE5:SPI4_MISO" : 5,
  710. "PE5:TIM9_CH1" : 3,
  711. "PE5:TRACED2" : 0,
  712. "PE6:DCMI_D7" : 13,
  713. "PE6:EVENTOUT" : 15,
  714. "PE6:FMC_A22" : 12,
  715. "PE6:LCD_G1" : 14,
  716. "PE6:SAI1_SD_A" : 6,
  717. "PE6:SAI2_MCK_B" : 10,
  718. "PE6:SPI4_MOSI" : 5,
  719. "PE6:TIM1_BKIN2" : 1,
  720. "PE6:TIM9_CH2" : 3,
  721. "PE6:TRACED3" : 0,
  722. "PE7:DFSDM1_DATAIN2" : 6,
  723. "PE7:EVENTOUT" : 15,
  724. "PE7:FMC_D4" : 12,
  725. "PE7:QUADSPI_BK2_IO0" : 10,
  726. "PE7:TIM1_ETR" : 1,
  727. "PE7:UART7_RX" : 8,
  728. "PE8:DFSDM1_CKIN2" : 6,
  729. "PE8:EVENTOUT" : 15,
  730. "PE8:FMC_D5" : 12,
  731. "PE8:QUADSPI_BK2_IO1" : 10,
  732. "PE8:TIM1_CH1N" : 1,
  733. "PE8:UART7_TX" : 8,
  734. "PE9:DFSDM1_CKOUT" : 6,
  735. "PE9:EVENTOUT" : 15,
  736. "PE9:FMC_D6" : 12,
  737. "PE9:QUADSPI_BK2_IO2" : 10,
  738. "PE9:TIM1_CH1" : 1,
  739. "PE9:UART7_RTS" : 8,
  740. "PE10:DFSDM1_DATAIN4" : 6,
  741. "PE10:EVENTOUT" : 15,
  742. "PE10:FMC_D7" : 12,
  743. "PE10:QUADSPI_BK2_IO3" : 10,
  744. "PE10:TIM1_CH2N" : 1,
  745. "PE10:UART7_CTS" : 8,
  746. "PE11:DFSDM1_CKIN4" : 6,
  747. "PE11:EVENTOUT" : 15,
  748. "PE11:FMC_D8" : 12,
  749. "PE11:LCD_G3" : 14,
  750. "PE11:SAI2_SD_B" : 10,
  751. "PE11:SPI4_NSS" : 5,
  752. "PE11:TIM1_CH2" : 1,
  753. "PE12:DFSDM1_DATAIN5" : 6,
  754. "PE12:EVENTOUT" : 15,
  755. "PE12:FMC_D9" : 12,
  756. "PE12:LCD_B4" : 14,
  757. "PE12:SAI2_SCK_B" : 10,
  758. "PE12:SPI4_SCK" : 5,
  759. "PE12:TIM1_CH3N" : 1,
  760. "PE13:DFSDM1_CKIN5" : 6,
  761. "PE13:EVENTOUT" : 15,
  762. "PE13:FMC_D10" : 12,
  763. "PE13:LCD_DE" : 14,
  764. "PE13:SAI2_FS_B" : 10,
  765. "PE13:SPI4_MISO" : 5,
  766. "PE13:TIM1_CH3" : 1,
  767. "PE14:EVENTOUT" : 15,
  768. "PE14:FMC_D11" : 12,
  769. "PE14:LCD_CLK" : 14,
  770. "PE14:SAI2_MCK_B" : 10,
  771. "PE14:SPI4_MOSI" : 5,
  772. "PE14:TIM1_CH4" : 1,
  773. "PE15:EVENTOUT" : 15,
  774. "PE15:FMC_D12" : 12,
  775. "PE15:LCD_R7" : 14,
  776. "PE15:TIM1_BKIN" : 1,
  777. "PF0:EVENTOUT" : 15,
  778. "PF0:FMC_A0" : 12,
  779. "PF0:I2C2_SDA" : 4,
  780. "PF1:EVENTOUT" : 15,
  781. "PF1:FMC_A1" : 12,
  782. "PF1:I2C2_SCL" : 4,
  783. "PF2:EVENTOUT" : 15,
  784. "PF2:FMC_A2" : 12,
  785. "PF2:I2C2_SMBA" : 4,
  786. "PF3:EVENTOUT" : 15,
  787. "PF3:FMC_A3" : 12,
  788. "PF4:EVENTOUT" : 15,
  789. "PF4:FMC_A4" : 12,
  790. "PF5:EVENTOUT" : 15,
  791. "PF5:FMC_A5" : 12,
  792. "PF6:EVENTOUT" : 15,
  793. "PF6:QUADSPI_BK1_IO3" : 9,
  794. "PF6:SAI1_SD_B" : 6,
  795. "PF6:SPI5_NSS" : 5,
  796. "PF6:TIM10_CH1" : 3,
  797. "PF6:UART7_RX" : 8,
  798. "PF7:EVENTOUT" : 15,
  799. "PF7:QUADSPI_BK1_IO2" : 9,
  800. "PF7:SAI1_MCLK_B" : 6,
  801. "PF7:SPI5_SCK" : 5,
  802. "PF7:TIM11_CH1" : 3,
  803. "PF7:UART7_TX" : 8,
  804. "PF8:EVENTOUT" : 15,
  805. "PF8:QUADSPI_BK1_IO0" : 10,
  806. "PF8:SAI1_SCK_B" : 6,
  807. "PF8:SPI5_MISO" : 5,
  808. "PF8:TIM13_CH1" : 9,
  809. "PF8:UART7_RTS" : 8,
  810. "PF9:EVENTOUT" : 15,
  811. "PF9:QUADSPI_BK1_IO1" : 10,
  812. "PF9:SAI1_FS_B" : 6,
  813. "PF9:SPI5_MOSI" : 5,
  814. "PF9:TIM14_CH1" : 9,
  815. "PF9:UART7_CTS" : 8,
  816. "PF10:DCMI_D11" : 13,
  817. "PF10:EVENTOUT" : 15,
  818. "PF10:LCD_DE" : 14,
  819. "PF10:QUADSPI_CLK" : 9,
  820. "PF11:DCMI_D12" : 13,
  821. "PF11:EVENTOUT" : 15,
  822. "PF11:FMC_SDNRAS" : 12,
  823. "PF11:SAI2_SD_B" : 10,
  824. "PF11:SPI5_MOSI" : 5,
  825. "PF12:EVENTOUT" : 15,
  826. "PF12:FMC_A6" : 12,
  827. "PF13:DFSDM1_DATAIN6" : 6,
  828. "PF13:EVENTOUT" : 15,
  829. "PF13:FMC_A7" : 12,
  830. "PF13:I2C4_SMBA" : 4,
  831. "PF14:DFSDM1_CKIN6" : 6,
  832. "PF14:EVENTOUT" : 15,
  833. "PF14:FMC_A8" : 12,
  834. "PF14:I2C4_SCL" : 4,
  835. "PF15:EVENTOUT" : 15,
  836. "PF15:FMC_A9" : 12,
  837. "PF15:I2C4_SDA" : 4,
  838. "PG0:EVENTOUT" : 15,
  839. "PG0:FMC_A10" : 12,
  840. "PG1:EVENTOUT" : 15,
  841. "PG1:FMC_A11" : 12,
  842. "PG2:EVENTOUT" : 15,
  843. "PG2:FMC_A12" : 12,
  844. "PG3:EVENTOUT" : 15,
  845. "PG3:FMC_A13" : 12,
  846. "PG4:EVENTOUT" : 15,
  847. "PG4:FMC_A14" : 12,
  848. "PG4:FMC_BA0" : 12,
  849. "PG5:EVENTOUT" : 15,
  850. "PG5:FMC_A15" : 12,
  851. "PG5:FMC_BA1" : 12,
  852. "PG6:DCMI_D12" : 13,
  853. "PG6:EVENTOUT" : 15,
  854. "PG6:FMC_NE3" : 12,
  855. "PG6:LCD_R7" : 14,
  856. "PG7:DCMI_D13" : 13,
  857. "PG7:EVENTOUT" : 15,
  858. "PG7:FMC_INT" : 12,
  859. "PG7:LCD_CLK" : 14,
  860. "PG7:SAI1_MCLK_A" : 6,
  861. "PG7:USART6_CK" : 8,
  862. "PG8:ETH_PPS_OUT" : 11,
  863. "PG8:EVENTOUT" : 15,
  864. "PG8:FMC_SDCLK" : 12,
  865. "PG8:LCD_G7" : 14,
  866. "PG8:SPDIF_RX2" : 7,
  867. "PG8:SPI6_NSS" : 5,
  868. "PG8:USART6_RTS" : 8,
  869. "PG9:DCMI_VSYNC" : 13,
  870. "PG9:EVENTOUT" : 15,
  871. "PG9:FMC_NCE" : 12,
  872. "PG9:FMC_NE2" : 12,
  873. "PG9:QUADSPI_BK2_IO2" : 9,
  874. "PG9:SAI2_FS_B" : 10,
  875. "PG9:SDMMC2_D0" : 11,
  876. "PG9:SPDIF_RX3" : 7,
  877. "PG9:SPI1_MISO" : 5,
  878. "PG9:USART6_RX" : 8,
  879. "PG10:DCMI_D2" : 13,
  880. "PG10:EVENTOUT" : 15,
  881. "PG10:FMC_NE3" : 12,
  882. "PG10:I2S1_WS" : 5,
  883. "PG10:LCD_B2" : 14,
  884. "PG10:LCD_G3" : 9,
  885. "PG10:SAI2_SD_B" : 10,
  886. "PG10:SDMMC2_D1" : 11,
  887. "PG10:SPI1_NSS" : 5,
  888. "PG11:DCMI_D3" : 13,
  889. "PG11:ETH_MII_TX_EN" : 11,
  890. "PG11:ETH_RMII_TX_EN" : 11,
  891. "PG11:EVENTOUT" : 15,
  892. "PG11:I2S1_CK" : 5,
  893. "PG11:LCD_B3" : 14,
  894. "PG11:SDMMC2_D2" : 10,
  895. "PG11:SPDIF_RX0" : 7,
  896. "PG11:SPI1_SCK" : 5,
  897. "PG12:EVENTOUT" : 15,
  898. "PG12:FMC_NE4" : 12,
  899. "PG12:LCD_B1" : 14,
  900. "PG12:LCD_B4" : 9,
  901. "PG12:LPTIM1_IN1" : 3,
  902. "PG12:SDMMC2_D3" : 11,
  903. "PG12:SPDIF_RX1" : 7,
  904. "PG12:SPI6_MISO" : 5,
  905. "PG12:USART6_RTS" : 8,
  906. "PG13:ETH_MII_TXD0" : 11,
  907. "PG13:ETH_RMII_TXD0" : 11,
  908. "PG13:EVENTOUT" : 15,
  909. "PG13:FMC_A24" : 12,
  910. "PG13:LCD_R0" : 14,
  911. "PG13:LPTIM1_OUT" : 3,
  912. "PG13:SPI6_SCK" : 5,
  913. "PG13:TRACED0" : 0,
  914. "PG13:USART6_CTS" : 8,
  915. "PG14:ETH_MII_TXD1" : 11,
  916. "PG14:ETH_RMII_TXD1" : 11,
  917. "PG14:EVENTOUT" : 15,
  918. "PG14:FMC_A25" : 12,
  919. "PG14:LCD_B0" : 14,
  920. "PG14:LPTIM1_ETR" : 3,
  921. "PG14:QUADSPI_BK2_IO3" : 9,
  922. "PG14:SPI6_MOSI" : 5,
  923. "PG14:TRACED1" : 0,
  924. "PG14:USART6_TX" : 8,
  925. "PG15:DCMI_D13" : 13,
  926. "PG15:EVENTOUT" : 15,
  927. "PG15:FMC_SDNCAS" : 12,
  928. "PG15:USART6_CTS" : 8,
  929. "PH0:EVENTOUT" : 15,
  930. "PH1:EVENTOUT" : 15,
  931. "PH2:ETH_MII_CRS" : 11,
  932. "PH2:EVENTOUT" : 15,
  933. "PH2:FMC_SDCKE0" : 12,
  934. "PH2:LCD_R0" : 14,
  935. "PH2:LPTIM1_IN2" : 3,
  936. "PH2:QUADSPI_BK2_IO0" : 9,
  937. "PH2:SAI2_SCK_B" : 10,
  938. "PH3:ETH_MII_COL" : 11,
  939. "PH3:EVENTOUT" : 15,
  940. "PH3:FMC_SDNE0" : 12,
  941. "PH3:LCD_R1" : 14,
  942. "PH3:QUADSPI_BK2_IO1" : 9,
  943. "PH3:SAI2_MCK_B" : 10,
  944. "PH4:EVENTOUT" : 15,
  945. "PH4:I2C2_SCL" : 4,
  946. "PH4:LCD_G4" : 14,
  947. "PH4:LCD_G5" : 9,
  948. "PH4:OTG_HS_ULPI_NXT" : 10,
  949. "PH5:EVENTOUT" : 15,
  950. "PH5:FMC_SDNWE" : 12,
  951. "PH5:I2C2_SDA" : 4,
  952. "PH5:SPI5_NSS" : 5,
  953. "PH6:DCMI_D8" : 13,
  954. "PH6:ETH_MII_RXD2" : 11,
  955. "PH6:EVENTOUT" : 15,
  956. "PH6:FMC_SDNE1" : 12,
  957. "PH6:I2C2_SMBA" : 4,
  958. "PH6:SPI5_SCK" : 5,
  959. "PH6:TIM12_CH1" : 9,
  960. "PH7:DCMI_D9" : 13,
  961. "PH7:ETH_MII_RXD3" : 11,
  962. "PH7:EVENTOUT" : 15,
  963. "PH7:FMC_SDCKE1" : 12,
  964. "PH7:I2C3_SCL" : 4,
  965. "PH7:SPI5_MISO" : 5,
  966. "PH8:DCMI_HSYNC" : 13,
  967. "PH8:EVENTOUT" : 15,
  968. "PH8:FMC_D16" : 12,
  969. "PH8:I2C3_SDA" : 4,
  970. "PH8:LCD_R2" : 14,
  971. "PH9:DCMI_D0" : 13,
  972. "PH9:EVENTOUT" : 15,
  973. "PH9:FMC_D17" : 12,
  974. "PH9:I2C3_SMBA" : 4,
  975. "PH9:LCD_R3" : 14,
  976. "PH9:TIM12_CH2" : 9,
  977. "PH10:DCMI_D1" : 13,
  978. "PH10:EVENTOUT" : 15,
  979. "PH10:FMC_D18" : 12,
  980. "PH10:I2C4_SMBA" : 4,
  981. "PH10:LCD_R4" : 14,
  982. "PH10:TIM5_CH1" : 2,
  983. "PH11:DCMI_D2" : 13,
  984. "PH11:EVENTOUT" : 15,
  985. "PH11:FMC_D19" : 12,
  986. "PH11:I2C4_SCL" : 4,
  987. "PH11:LCD_R5" : 14,
  988. "PH11:TIM5_CH2" : 2,
  989. "PH12:DCMI_D3" : 13,
  990. "PH12:EVENTOUT" : 15,
  991. "PH12:FMC_D20" : 12,
  992. "PH12:I2C4_SDA" : 4,
  993. "PH12:LCD_R6" : 14,
  994. "PH12:TIM5_CH3" : 2,
  995. "PH13:CAN1_TX" : 9,
  996. "PH13:EVENTOUT" : 15,
  997. "PH13:FMC_D21" : 12,
  998. "PH13:LCD_G2" : 14,
  999. "PH13:TIM8_CH1N" : 3,
  1000. "PH13:UART4_TX" : 8,
  1001. "PH14:CAN1_RX" : 9,
  1002. "PH14:DCMI_D4" : 13,
  1003. "PH14:EVENTOUT" : 15,
  1004. "PH14:FMC_D22" : 12,
  1005. "PH14:LCD_G3" : 14,
  1006. "PH14:TIM8_CH2N" : 3,
  1007. "PH14:UART4_RX" : 8,
  1008. "PH15:DCMI_D11" : 13,
  1009. "PH15:EVENTOUT" : 15,
  1010. "PH15:FMC_D23" : 12,
  1011. "PH15:LCD_G4" : 14,
  1012. "PH15:TIM8_CH3N" : 3,
  1013. "PI0:DCMI_D13" : 13,
  1014. "PI0:EVENTOUT" : 15,
  1015. "PI0:FMC_D24" : 12,
  1016. "PI0:I2S2_WS" : 5,
  1017. "PI0:LCD_G5" : 14,
  1018. "PI0:SPI2_NSS" : 5,
  1019. "PI0:TIM5_CH4" : 2,
  1020. "PI1:DCMI_D8" : 13,
  1021. "PI1:EVENTOUT" : 15,
  1022. "PI1:FMC_D25" : 12,
  1023. "PI1:I2S2_CK" : 5,
  1024. "PI1:LCD_G6" : 14,
  1025. "PI1:SPI2_SCK" : 5,
  1026. "PI1:TIM8_BKIN2" : 3,
  1027. "PI2:DCMI_D9" : 13,
  1028. "PI2:EVENTOUT" : 15,
  1029. "PI2:FMC_D26" : 12,
  1030. "PI2:LCD_G7" : 14,
  1031. "PI2:SPI2_MISO" : 5,
  1032. "PI2:TIM8_CH4" : 3,
  1033. "PI3:DCMI_D10" : 13,
  1034. "PI3:EVENTOUT" : 15,
  1035. "PI3:FMC_D27" : 12,
  1036. "PI3:I2S2_SD" : 5,
  1037. "PI3:SPI2_MOSI" : 5,
  1038. "PI3:TIM8_ETR" : 3,
  1039. "PI4:DCMI_D5" : 13,
  1040. "PI4:EVENTOUT" : 15,
  1041. "PI4:FMC_NBL2" : 12,
  1042. "PI4:LCD_B4" : 14,
  1043. "PI4:SAI2_MCK_A" : 10,
  1044. "PI4:TIM8_BKIN" : 3,
  1045. "PI5:DCMI_VSYNC" : 13,
  1046. "PI5:EVENTOUT" : 15,
  1047. "PI5:FMC_NBL3" : 12,
  1048. "PI5:LCD_B5" : 14,
  1049. "PI5:SAI2_SCK_A" : 10,
  1050. "PI5:TIM8_CH1" : 3,
  1051. "PI6:DCMI_D6" : 13,
  1052. "PI6:EVENTOUT" : 15,
  1053. "PI6:FMC_D28" : 12,
  1054. "PI6:LCD_B6" : 14,
  1055. "PI6:SAI2_SD_A" : 10,
  1056. "PI6:TIM8_CH2" : 3,
  1057. "PI7:DCMI_D7" : 13,
  1058. "PI7:EVENTOUT" : 15,
  1059. "PI7:FMC_D29" : 12,
  1060. "PI7:LCD_B7" : 14,
  1061. "PI7:SAI2_FS_A" : 10,
  1062. "PI7:TIM8_CH3" : 3,
  1063. "PI8:EVENTOUT" : 15,
  1064. "PI9:CAN1_RX" : 9,
  1065. "PI9:EVENTOUT" : 15,
  1066. "PI9:FMC_D30" : 12,
  1067. "PI9:LCD_VSYNC" : 14,
  1068. "PI9:UART4_RX" : 8,
  1069. "PI10:ETH_MII_RX_ER" : 11,
  1070. "PI10:EVENTOUT" : 15,
  1071. "PI10:FMC_D31" : 12,
  1072. "PI10:LCD_HSYNC" : 14,
  1073. "PI11:EVENTOUT" : 15,
  1074. "PI11:LCD_G6" : 9,
  1075. "PI11:OTG_HS_ULPI_DIR" : 10,
  1076. "PI12:EVENTOUT" : 15,
  1077. "PI12:LCD_HSYNC" : 14,
  1078. "PI13:EVENTOUT" : 15,
  1079. "PI13:LCD_VSYNC" : 14,
  1080. "PI14:EVENTOUT" : 15,
  1081. "PI14:LCD_CLK" : 14,
  1082. "PI15:EVENTOUT" : 15,
  1083. "PI15:LCD_G2" : 9,
  1084. "PI15:LCD_R0" : 14,
  1085. "PJ0:EVENTOUT" : 15,
  1086. "PJ0:LCD_R1" : 14,
  1087. "PJ0:LCD_R7" : 9,
  1088. "PJ1:EVENTOUT" : 15,
  1089. "PJ1:LCD_R2" : 14,
  1090. "PJ2:DSI_TE" : 13,
  1091. "PJ2:EVENTOUT" : 15,
  1092. "PJ2:LCD_R3" : 14,
  1093. "PJ3:EVENTOUT" : 15,
  1094. "PJ3:LCD_R4" : 14,
  1095. "PJ4:EVENTOUT" : 15,
  1096. "PJ4:LCD_R5" : 14,
  1097. "PJ5:EVENTOUT" : 15,
  1098. "PJ5:LCD_R6" : 14,
  1099. "PJ6:EVENTOUT" : 15,
  1100. "PJ6:LCD_R7" : 14,
  1101. "PJ7:EVENTOUT" : 15,
  1102. "PJ7:LCD_G0" : 14,
  1103. "PJ8:EVENTOUT" : 15,
  1104. "PJ8:LCD_G1" : 14,
  1105. "PJ9:EVENTOUT" : 15,
  1106. "PJ9:LCD_G2" : 14,
  1107. "PJ10:EVENTOUT" : 15,
  1108. "PJ10:LCD_G3" : 14,
  1109. "PJ11:EVENTOUT" : 15,
  1110. "PJ11:LCD_G4" : 14,
  1111. "PJ12:EVENTOUT" : 15,
  1112. "PJ12:LCD_B0" : 14,
  1113. "PJ12:LCD_G3" : 9,
  1114. "PJ13:EVENTOUT" : 15,
  1115. "PJ13:LCD_B1" : 14,
  1116. "PJ13:LCD_G4" : 9,
  1117. "PJ14:EVENTOUT" : 15,
  1118. "PJ14:LCD_B2" : 14,
  1119. "PJ15:EVENTOUT" : 15,
  1120. "PJ15:LCD_B3" : 14,
  1121. "PK0:EVENTOUT" : 15,
  1122. "PK0:LCD_G5" : 14,
  1123. "PK1:EVENTOUT" : 15,
  1124. "PK1:LCD_G6" : 14,
  1125. "PK2:EVENTOUT" : 15,
  1126. "PK2:LCD_G7" : 14,
  1127. "PK3:EVENTOUT" : 15,
  1128. "PK3:LCD_B4" : 14,
  1129. "PK4:EVENTOUT" : 15,
  1130. "PK4:LCD_B5" : 14,
  1131. "PK5:EVENTOUT" : 15,
  1132. "PK5:LCD_B6" : 14,
  1133. "PK6:EVENTOUT" : 15,
  1134. "PK6:LCD_B7" : 14,
  1135. "PK7:EVENTOUT" : 15,
  1136. "PK7:LCD_DE" : 14,
  1137. }
  1138. ADC1_map = {
  1139. # format is PIN : ADC1_CHAN
  1140. "PA0" : 0,
  1141. "PA1" : 1,
  1142. "PA2" : 2,
  1143. "PA3" : 3,
  1144. "PA4" : 4,
  1145. "PA5" : 5,
  1146. "PA6" : 6,
  1147. "PA7" : 7,
  1148. "PB0" : 8,
  1149. "PB1" : 9,
  1150. "PC0" : 10,
  1151. "PC1" : 11,
  1152. "PC2" : 12,
  1153. "PC3" : 13,
  1154. "PC4" : 14,
  1155. "PC5" : 15,
  1156. }