stm32f756.pp 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722
  1. {
  2. Register definitions and utility code for STM32F756
  3. Created by Jeppe Johansen 2015 - [email protected]
  4. }
  5. {$IFNDEF FPC_DOTTEDUNITS}
  6. unit stm32f756;
  7. {$ENDIF FPC_DOTTEDUNITS}
  8. {$goto on}
  9. interface
  10. {$PACKRECORDS C}
  11. (**
  12. * @brief Configuration of the Cortex-M7 Processor and Core Peripherals
  13. *)
  14. const
  15. __CM7_REV = $0000; (*!< Cortex-M7 revision r0p0 *)
  16. __MPU_PRESENT = true; (*!< CM7 provides an MPU *)
  17. __NVIC_PRIO_BITS = 4; (*!< CM7 uses 4 Bits for the Priority Levels *)
  18. __Vendor_SysTickConfig = 0; (*!< Set to 1 if different SysTick Config is used *)
  19. __FPU_PRESENT = true; (*!< FPU present *)
  20. CACHE_PRESENT = true; (*!< CM7 instruction cache present *)
  21. __DCACHE_PRESENT = true; (*!< CM7 data cache present *)
  22. (** @addtogroup Peripheral_registers_structures
  23. * @{
  24. *)
  25. (**
  26. * @brief Analog to Digital Converter
  27. *)
  28. type
  29. ADC_TypeDef = record
  30. SR: longword; (*!< ADC status register, Address offset: 0x00 *)
  31. CR1: longword; (*!< ADC control register 1, Address offset: 0x04 *)
  32. CR2: longword; (*!< ADC control register 2, Address offset: 0x08 *)
  33. SMPR1: longword; (*!< ADC sample time register 1, Address offset: 0x0C *)
  34. SMPR2: longword; (*!< ADC sample time register 2, Address offset: 0x10 *)
  35. JOFR1: longword; (*!< ADC injected channel data offset register 1, Address offset: 0x14 *)
  36. JOFR2: longword; (*!< ADC injected channel data offset register 2, Address offset: 0x18 *)
  37. JOFR3: longword; (*!< ADC injected channel data offset register 3, Address offset: 0x1C *)
  38. JOFR4: longword; (*!< ADC injected channel data offset register 4, Address offset: 0x20 *)
  39. HTR: longword; (*!< ADC watchdog higher threshold register, Address offset: 0x24 *)
  40. LTR: longword; (*!< ADC watchdog lower threshold register, Address offset: 0x28 *)
  41. SQR1: longword; (*!< ADC regular sequence register 1, Address offset: 0x2C *)
  42. SQR2: longword; (*!< ADC regular sequence register 2, Address offset: 0x30 *)
  43. SQR3: longword; (*!< ADC regular sequence register 3, Address offset: 0x34 *)
  44. JSQR: longword; (*!< ADC injected sequence register, Address offset: 0x38 *)
  45. JDR1: longword; (*!< ADC injected data register 1, Address offset: 0x3C *)
  46. JDR2: longword; (*!< ADC injected data register 2, Address offset: 0x40 *)
  47. JDR3: longword; (*!< ADC injected data register 3, Address offset: 0x44 *)
  48. JDR4: longword; (*!< ADC injected data register 4, Address offset: 0x48 *)
  49. DR: longword; (*!< ADC regular data register, Address offset: 0x4C *)
  50. end;
  51. ADC_Common_TypeDef = record
  52. CSR: longword; (*!< ADC Common status register, Address offset: ADC1 base address + 0x300 *)
  53. CCR: longword; (*!< ADC common control register, Address offset: ADC1 base address + 0x304 *)
  54. CDR: longword; (*!< ADC common regular data register for dual
  55. AND triple modes, Address offset: ADC1 base address + 0x308 *)
  56. end;
  57. (**
  58. * @brief Controller Area Network TxMailBox
  59. *)
  60. CAN_TxMailBox_TypeDef = record
  61. TIR: longword; (*!< CAN TX mailbox identifier register *)
  62. TDTR: longword; (*!< CAN mailbox data length control and time stamp register *)
  63. TDLR: longword; (*!< CAN mailbox data low register *)
  64. TDHR: longword; (*!< CAN mailbox data high register *)
  65. end;
  66. (**
  67. * @brief Controller Area Network FIFOMailBox
  68. *)
  69. CAN_FIFOMailBox_TypeDef = record
  70. RIR: longword; (*!< CAN receive FIFO mailbox identifier register *)
  71. RDTR: longword; (*!< CAN receive FIFO mailbox data length control and time stamp register *)
  72. RDLR: longword; (*!< CAN receive FIFO mailbox data low register *)
  73. RDHR: longword; (*!< CAN receive FIFO mailbox data high register *)
  74. end;
  75. (**
  76. * @brief Controller Area Network FilterRegister
  77. *)
  78. CAN_FilterRegister_TypeDef = record
  79. FR1: longword; (*!< CAN Filter bank register 1 *)
  80. FR2: longword; (*!< CAN Filter bank register 1 *)
  81. end;
  82. (**
  83. * @brief Controller Area Network
  84. *)
  85. CAN_TypeDef = record
  86. MCR: longword; (*!< CAN master control register, Address offset: 0x00 *)
  87. MSR: longword; (*!< CAN master status register, Address offset: 0x04 *)
  88. TSR: longword; (*!< CAN transmit status register, Address offset: 0x08 *)
  89. RF0R: longword; (*!< CAN receive FIFO 0 register, Address offset: 0x0C *)
  90. RF1R: longword; (*!< CAN receive FIFO 1 register, Address offset: 0x10 *)
  91. IER: longword; (*!< CAN interrupt enable register, Address offset: 0x14 *)
  92. ESR: longword; (*!< CAN error status register, Address offset: 0x18 *)
  93. BTR: longword; (*!< CAN bit timing register, Address offset: 0x1C *)
  94. RESERVED0: array [0..87] of longword; (*!< Reserved, 0x020 - 0x17F *)
  95. sTxMailBox: array [0..2] of CAN_TxMailBox_TypeDef; (*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC *)
  96. sFIFOMailBox: array [0..1] of CAN_FIFOMailBox_TypeDef; (*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC *)
  97. RESERVED1: array [0..11] of longword; (*!< Reserved, 0x1D0 - 0x1FF *)
  98. FMR: longword; (*!< CAN filter master register, Address offset: 0x200 *)
  99. FM1R: longword; (*!< CAN filter mode register, Address offset: 0x204 *)
  100. RESERVED2: longword; (*!< Reserved, 0x208 *)
  101. FS1R: longword; (*!< CAN filter scale register, Address offset: 0x20C *)
  102. RESERVED3: longword; (*!< Reserved, 0x210 *)
  103. FFA1R: longword; (*!< CAN filter FIFO assignment register, Address offset: 0x214 *)
  104. RESERVED4: longword; (*!< Reserved, 0x218 *)
  105. FA1R: longword; (*!< CAN filter activation register, Address offset: 0x21C *)
  106. RESERVED5: array [0..7] of longword; (*!< Reserved, 0x220-0x23F *)
  107. sFilterRegister: array [0..27] of CAN_FilterRegister_TypeDef; (*!< CAN Filter Register, Address offset: 0x240-0x31C *)
  108. end;
  109. (**
  110. * @brief HDMI-CEC
  111. *)
  112. CEC_TypeDef = record
  113. CR: longword; (*!< CEC control register, Address offset:0x00 *)
  114. CFGR: longword; (*!< CEC configuration register, Address offset:0x04 *)
  115. TXDR: longword; (*!< CEC Tx data register , Address offset:0x08 *)
  116. RXDR: longword; (*!< CEC Rx Data Register, Address offset:0x0C *)
  117. ISR: longword; (*!< CEC Interrupt and Status Register, Address offset:0x10 *)
  118. IER: longword; (*!< CEC interrupt enable register, Address offset:0x14 *)
  119. end;
  120. (**
  121. * @brief CRC calculation unit
  122. *)
  123. CRC_TypeDef = record
  124. DR: longword; (*!< CRC Data register, Address offset: 0x00 *)
  125. IDR: byte; (*!< CRC Independent data register, Address offset: 0x04 *)
  126. RESERVED0: byte; (*!< Reserved, 0x05 *)
  127. RESERVED1: word; (*!< Reserved, 0x06 *)
  128. CR: longword; (*!< CRC Control register, Address offset: 0x08 *)
  129. RESERVED2: longword; (*!< Reserved, 0x0C *)
  130. INIT: longword; (*!< Initial CRC value register, Address offset: 0x10 *)
  131. POL: longword; (*!< CRC polynomial register, Address offset: 0x14 *)
  132. end;
  133. (**
  134. * @brief Digital to Analog Converter
  135. *)
  136. DAC_TypeDef = record
  137. CR: longword; (*!< DAC control register, Address offset: 0x00 *)
  138. SWTRIGR: longword; (*!< DAC software trigger register, Address offset: 0x04 *)
  139. DHR12R1: longword; (*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 *)
  140. DHR12L1: longword; (*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C *)
  141. DHR8R1: longword; (*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 *)
  142. DHR12R2: longword; (*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 *)
  143. DHR12L2: longword; (*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 *)
  144. DHR8R2: longword; (*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C *)
  145. DHR12RD: longword; (*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 *)
  146. DHR12LD: longword; (*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 *)
  147. DHR8RD: longword; (*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 *)
  148. DOR1: longword; (*!< DAC channel1 data output register, Address offset: 0x2C *)
  149. DOR2: longword; (*!< DAC channel2 data output register, Address offset: 0x30 *)
  150. SR: longword; (*!< DAC status register, Address offset: 0x34 *)
  151. end;
  152. (**
  153. * @brief Debug MCU
  154. *)
  155. DBGMCU_TypeDef = record
  156. IDCODE: longword; (*!< MCU device ID code, Address offset: 0x00 *)
  157. CR: longword; (*!< Debug MCU configuration register, Address offset: 0x04 *)
  158. APB1FZ: longword; (*!< Debug MCU APB1 freeze register, Address offset: 0x08 *)
  159. APB2FZ: longword; (*!< Debug MCU APB2 freeze register, Address offset: 0x0C *)
  160. end;
  161. (**
  162. * @brief DCMI
  163. *)
  164. DCMI_TypeDef = record
  165. CR: longword; (*!< DCMI control register 1, Address offset: 0x00 *)
  166. SR: longword; (*!< DCMI status register, Address offset: 0x04 *)
  167. RISR: longword; (*!< DCMI raw interrupt status register, Address offset: 0x08 *)
  168. IER: longword; (*!< DCMI interrupt enable register, Address offset: 0x0C *)
  169. MISR: longword; (*!< DCMI masked interrupt status register, Address offset: 0x10 *)
  170. ICR: longword; (*!< DCMI interrupt clear register, Address offset: 0x14 *)
  171. ESCR: longword; (*!< DCMI embedded synchronization code register, Address offset: 0x18 *)
  172. ESUR: longword; (*!< DCMI embedded synchronization unmask register, Address offset: 0x1C *)
  173. CWSTRTR: longword; (*!< DCMI crop window start, Address offset: 0x20 *)
  174. CWSIZER: longword; (*!< DCMI crop window size, Address offset: 0x24 *)
  175. DR: longword; (*!< DCMI data register, Address offset: 0x28 *)
  176. end;
  177. (**
  178. * @brief DMA Controller
  179. *)
  180. DMA_Stream_TypeDef = record
  181. CR: longword; (*!< DMA stream x configuration register *)
  182. NDTR: longword; (*!< DMA stream x number of data register *)
  183. PAR: longword; (*!< DMA stream x peripheral address register *)
  184. M0AR: longword; (*!< DMA stream x memory 0 address register *)
  185. M1AR: longword; (*!< DMA stream x memory 1 address register *)
  186. FCR: longword; (*!< DMA stream x FIFO control register *)
  187. end;
  188. DMA_TypeDef = record
  189. LISR: longword; (*!< DMA low interrupt status register, Address offset: 0x00 *)
  190. HISR: longword; (*!< DMA high interrupt status register, Address offset: 0x04 *)
  191. LIFCR: longword; (*!< DMA low interrupt flag clear register, Address offset: 0x08 *)
  192. HIFCR: longword; (*!< DMA high interrupt flag clear register, Address offset: 0x0C *)
  193. end;
  194. (**
  195. * @brief DMA2D Controller
  196. *)
  197. DMA2D_TypeDef = record
  198. CR: longword; (*!< DMA2D Control Register, Address offset: 0x00 *)
  199. ISR: longword; (*!< DMA2D Interrupt Status Register, Address offset: 0x04 *)
  200. IFCR: longword; (*!< DMA2D Interrupt Flag Clear Register, Address offset: 0x08 *)
  201. FGMAR: longword; (*!< DMA2D Foreground Memory Address Register, Address offset: 0x0C *)
  202. FGOR: longword; (*!< DMA2D Foreground Offset Register, Address offset: 0x10 *)
  203. BGMAR: longword; (*!< DMA2D Background Memory Address Register, Address offset: 0x14 *)
  204. BGOR: longword; (*!< DMA2D Background Offset Register, Address offset: 0x18 *)
  205. FGPFCCR: longword; (*!< DMA2D Foreground PFC Control Register, Address offset: 0x1C *)
  206. FGCOLR: longword; (*!< DMA2D Foreground Color Register, Address offset: 0x20 *)
  207. BGPFCCR: longword; (*!< DMA2D Background PFC Control Register, Address offset: 0x24 *)
  208. BGCOLR: longword; (*!< DMA2D Background Color Register, Address offset: 0x28 *)
  209. FGCMAR: longword; (*!< DMA2D Foreground CLUT Memory Address Register, Address offset: 0x2C *)
  210. BGCMAR: longword; (*!< DMA2D Background CLUT Memory Address Register, Address offset: 0x30 *)
  211. OPFCCR: longword; (*!< DMA2D Output PFC Control Register, Address offset: 0x34 *)
  212. OCOLR: longword; (*!< DMA2D Output Color Register, Address offset: 0x38 *)
  213. OMAR: longword; (*!< DMA2D Output Memory Address Register, Address offset: 0x3C *)
  214. OOR: longword; (*!< DMA2D Output Offset Register, Address offset: 0x40 *)
  215. NLR: longword; (*!< DMA2D Number of Line Register, Address offset: 0x44 *)
  216. LWR: longword; (*!< DMA2D Line Watermark Register, Address offset: 0x48 *)
  217. AMTCR: longword; (*!< DMA2D AHB Master Timer Configuration Register, Address offset: 0x4C *)
  218. RESERVED: array [0..235] of longword; (*!< Reserved, 0x50-0x3FF *)
  219. FGCLUT: array [0..255] of longword; (*!< DMA2D Foreground CLUT, Address offset:400-7FF *)
  220. BGCLUT: array [0..255] of longword; (*!< DMA2D Background CLUT, Address offset:800-BFF *)
  221. end;
  222. (**
  223. * @brief Ethernet MAC
  224. *)
  225. ETH_TypeDef = record
  226. MACCR: longword;
  227. MACFFR: longword;
  228. MACHTHR: longword;
  229. MACHTLR: longword;
  230. MACMIIAR: longword;
  231. MACMIIDR: longword;
  232. MACFCR: longword;
  233. MACVLANTR: longword; (* 8 *)
  234. RESERVED0: array [0..1] of longword;
  235. MACRWUFFR: longword; (* 11 *)
  236. MACPMTCSR: longword;
  237. RESERVED1: array [0..1] of longword;
  238. MACSR: longword; (* 15 *)
  239. MACIMR: longword;
  240. MACA0HR: longword;
  241. MACA0LR: longword;
  242. MACA1HR: longword;
  243. MACA1LR: longword;
  244. MACA2HR: longword;
  245. MACA2LR: longword;
  246. MACA3HR: longword;
  247. MACA3LR: longword; (* 24 *)
  248. RESERVED2: array [0..39] of longword;
  249. MMCCR: longword; (* 65 *)
  250. MMCRIR: longword;
  251. MMCTIR: longword;
  252. MMCRIMR: longword;
  253. MMCTIMR: longword; (* 69 *)
  254. RESERVED3: array [0..13] of longword;
  255. MMCTGFSCCR: longword; (* 84 *)
  256. MMCTGFMSCCR: longword;
  257. RESERVED4: array [0..4] of longword;
  258. MMCTGFCR: longword;
  259. RESERVED5: array [0..9] of longword;
  260. MMCRFCECR: longword;
  261. MMCRFAECR: longword;
  262. RESERVED6: array [0..9] of longword;
  263. MMCRGUFCR: longword;
  264. RESERVED7: array [0..333] of longword;
  265. PTPTSCR: longword;
  266. PTPSSIR: longword;
  267. PTPTSHR: longword;
  268. PTPTSLR: longword;
  269. PTPTSHUR: longword;
  270. PTPTSLUR: longword;
  271. PTPTSAR: longword;
  272. PTPTTHR: longword;
  273. PTPTTLR: longword;
  274. RESERVED8: longword;
  275. PTPTSSR: longword;
  276. RESERVED9: array [0..564] of longword;
  277. DMABMR: longword;
  278. DMATPDR: longword;
  279. DMARPDR: longword;
  280. DMARDLAR: longword;
  281. DMATDLAR: longword;
  282. DMASR: longword;
  283. DMAOMR: longword;
  284. DMAIER: longword;
  285. DMAMFBOCR: longword;
  286. DMARSWTR: longword;
  287. RESERVED10: array [0..7] of longword;
  288. DMACHTDR: longword;
  289. DMACHRDR: longword;
  290. DMACHTBAR: longword;
  291. DMACHRBAR: longword;
  292. end;
  293. (**
  294. * @brief External Interrupt/Event Controller
  295. *)
  296. EXTI_TypeDef = record
  297. IMR: longword; (*!< EXTI Interrupt mask register, Address offset: 0x00 *)
  298. EMR: longword; (*!< EXTI Event mask register, Address offset: 0x04 *)
  299. RTSR: longword; (*!< EXTI Rising trigger selection register, Address offset: 0x08 *)
  300. FTSR: longword; (*!< EXTI Falling trigger selection register, Address offset: 0x0C *)
  301. SWIER: longword; (*!< EXTI Software interrupt event register, Address offset: 0x10 *)
  302. PR: longword; (*!< EXTI Pending register, Address offset: 0x14 *)
  303. end;
  304. (**
  305. * @brief FLASH Registers
  306. *)
  307. FLASH_TypeDef = record
  308. ACR: longword; (*!< FLASH access control register, Address offset: 0x00 *)
  309. KEYR: longword; (*!< FLASH key register, Address offset: 0x04 *)
  310. OPTKEYR: longword; (*!< FLASH option key register, Address offset: 0x08 *)
  311. SR: longword; (*!< FLASH status register, Address offset: 0x0C *)
  312. CR: longword; (*!< FLASH control register, Address offset: 0x10 *)
  313. OPTCR: longword; (*!< FLASH option control register , Address offset: 0x14 *)
  314. OPTCR1: longword; (*!< FLASH option control register 1 , Address offset: 0x18 *)
  315. end;
  316. (**
  317. * @brief Flexible Memory Controller
  318. *)
  319. FMC_Bank1_TypeDef = record
  320. BTCR: array [0..7] of longword; (*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C *)
  321. end;
  322. (**
  323. * @brief Flexible Memory Controller Bank1E
  324. *)
  325. FMC_Bank1E_TypeDef = record
  326. BWTR: array [0..6] of longword; (*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C *)
  327. end;
  328. (**
  329. * @brief Flexible Memory Controller Bank3
  330. *)
  331. FMC_Bank3_TypeDef = record
  332. PCR: longword; (*!< NAND Flash control register, Address offset: 0x80 *)
  333. SR: longword; (*!< NAND Flash FIFO status and interrupt register, Address offset: 0x84 *)
  334. PMEM: longword; (*!< NAND Flash Common memory space timing register, Address offset: 0x88 *)
  335. PATT: longword; (*!< NAND Flash Attribute memory space timing register, Address offset: 0x8C *)
  336. RESERVED0: longword; (*!< Reserved, 0x90 *)
  337. ECCR: longword; (*!< NAND Flash ECC result registers, Address offset: 0x94 *)
  338. end;
  339. (**
  340. * @brief Flexible Memory Controller Bank5_6
  341. *)
  342. FMC_Bank5_6_TypeDef = record
  343. SDCR: array [0..1] of longword; (*!< SDRAM Control registers , Address offset: 0x140-0x144 *)
  344. SDTR: array [0..1] of longword; (*!< SDRAM Timing registers , Address offset: 0x148-0x14C *)
  345. SDCMR: longword; (*!< SDRAM Command Mode register, Address offset: 0x150 *)
  346. SDRTR: longword; (*!< SDRAM Refresh Timer register, Address offset: 0x154 *)
  347. SDSR: longword; (*!< SDRAM Status register, Address offset: 0x158 *)
  348. end;
  349. (**
  350. * @brief General Purpose I/O
  351. *)
  352. GPIO_TypeDef = record
  353. MODER: longword; (*!< GPIO port mode register, Address offset: 0x00 *)
  354. OTYPER: longword; (*!< GPIO port output type register, Address offset: 0x04 *)
  355. OSPEEDR: longword; (*!< GPIO port output speed register, Address offset: 0x08 *)
  356. PUPDR: longword; (*!< GPIO port pull-up/pull-down register, Address offset: 0x0C *)
  357. IDR: longword; (*!< GPIO port input data register, Address offset: 0x10 *)
  358. ODR: longword; (*!< GPIO port output data register, Address offset: 0x14 *)
  359. BSRR: longword; (*!< GPIO port bit set/reset register, Address offset: 0x18 *)
  360. LCKR: longword; (*!< GPIO port configuration lock register, Address offset: 0x1C *)
  361. AFR: array [0..1] of longword; (*!< GPIO alternate function registers, Address offset: 0x20-0x24 *)
  362. end;
  363. (**
  364. * @brief System configuration controller
  365. *)
  366. SYSCFG_TypeDef = record
  367. MEMRMP: longword; (*!< SYSCFG memory remap register, Address offset: 0x00 *)
  368. PMC: longword; (*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 *)
  369. EXTICR: array [0..3] of longword; (*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 *)
  370. RESERVED: array [0..1] of longword; (*!< Reserved, 0x18-0x1C *)
  371. CMPCR: longword; (*!< SYSCFG Compensation cell control register, Address offset: 0x20 *)
  372. end;
  373. (**
  374. * @brief Inter-integrated Circuit Interface
  375. *)
  376. I2C_TypeDef = record
  377. CR1: longword; (*!< I2C Control register 1, Address offset: 0x00 *)
  378. CR2: longword; (*!< I2C Control register 2, Address offset: 0x04 *)
  379. OAR1: longword; (*!< I2C Own address 1 register, Address offset: 0x08 *)
  380. OAR2: longword; (*!< I2C Own address 2 register, Address offset: 0x0C *)
  381. TIMINGR: longword; (*!< I2C Timing register, Address offset: 0x10 *)
  382. TIMEOUTR: longword; (*!< I2C Timeout register, Address offset: 0x14 *)
  383. ISR: longword; (*!< I2C Interrupt and status register, Address offset: 0x18 *)
  384. ICR: longword; (*!< I2C Interrupt clear register, Address offset: 0x1C *)
  385. PECR: longword; (*!< I2C PEC register, Address offset: 0x20 *)
  386. RXDR: longword; (*!< I2C Receive data register, Address offset: 0x24 *)
  387. TXDR: longword; (*!< I2C Transmit data register, Address offset: 0x28 *)
  388. end;
  389. (**
  390. * @brief Independent WATCHDOG
  391. *)
  392. IWDG_TypeDef = record
  393. KR: longword; (*!< IWDG Key register, Address offset: 0x00 *)
  394. PR: longword; (*!< IWDG Prescaler register, Address offset: 0x04 *)
  395. RLR: longword; (*!< IWDG Reload register, Address offset: 0x08 *)
  396. SR: longword; (*!< IWDG Status register, Address offset: 0x0C *)
  397. WINR: longword; (*!< IWDG Window register, Address offset: 0x10 *)
  398. end;
  399. (**
  400. * @brief LCD-TFT Display Controller
  401. *)
  402. LTDC_TypeDef = record
  403. RESERVED0: array [0..1] of longword; (*!< Reserved, 0x00-0x04 *)
  404. SSCR: longword; (*!< LTDC Synchronization Size Configuration Register, Address offset: 0x08 *)
  405. BPCR: longword; (*!< LTDC Back Porch Configuration Register, Address offset: 0x0C *)
  406. AWCR: longword; (*!< LTDC Active Width Configuration Register, Address offset: 0x10 *)
  407. TWCR: longword; (*!< LTDC Total Width Configuration Register, Address offset: 0x14 *)
  408. GCR: longword; (*!< LTDC Global Control Register, Address offset: 0x18 *)
  409. RESERVED1: array [0..1] of longword; (*!< Reserved, 0x1C-0x20 *)
  410. SRCR: longword; (*!< LTDC Shadow Reload Configuration Register, Address offset: 0x24 *)
  411. RESERVED2: array [0..0] of longword; (*!< Reserved, 0x28 *)
  412. BCCR: longword; (*!< LTDC Background Color Configuration Register, Address offset: 0x2C *)
  413. RESERVED3: array [0..0] of longword; (*!< Reserved, 0x30 *)
  414. IER: longword; (*!< LTDC Interrupt Enable Register, Address offset: 0x34 *)
  415. ISR: longword; (*!< LTDC Interrupt Status Register, Address offset: 0x38 *)
  416. ICR: longword; (*!< LTDC Interrupt Clear Register, Address offset: 0x3C *)
  417. LIPCR: longword; (*!< LTDC Line Interrupt Position Configuration Register, Address offset: 0x40 *)
  418. CPSR: longword; (*!< LTDC Current Position Status Register, Address offset: 0x44 *)
  419. CDSR: longword; (*!< LTDC Current Display Status Register, Address offset: 0x48 *)
  420. end;
  421. (**
  422. * @brief LCD-TFT Display layer x Controller
  423. *)
  424. LTDC_Layer_TypeDef = record
  425. CR: longword; (*!< LTDC Layerx Control Register Address offset: 0x84 *)
  426. WHPCR: longword; (*!< LTDC Layerx Window Horizontal Position Configuration Register Address offset: 0x88 *)
  427. WVPCR: longword; (*!< LTDC Layerx Window Vertical Position Configuration Register Address offset: 0x8C *)
  428. CKCR: longword; (*!< LTDC Layerx Color Keying Configuration Register Address offset: 0x90 *)
  429. PFCR: longword; (*!< LTDC Layerx Pixel Format Configuration Register Address offset: 0x94 *)
  430. CACR: longword; (*!< LTDC Layerx Constant Alpha Configuration Register Address offset: 0x98 *)
  431. DCCR: longword; (*!< LTDC Layerx Default Color Configuration Register Address offset: 0x9C *)
  432. BFCR: longword; (*!< LTDC Layerx Blending Factors Configuration Register Address offset: 0xA0 *)
  433. RESERVED0: array [0..1] of longword; (*!< Reserved *)
  434. CFBAR: longword; (*!< LTDC Layerx Color Frame Buffer Address Register Address offset: 0xAC *)
  435. CFBLR: longword; (*!< LTDC Layerx Color Frame Buffer Length Register Address offset: 0xB0 *)
  436. CFBLNR: longword; (*!< LTDC Layerx ColorFrame Buffer Line Number Register Address offset: 0xB4 *)
  437. RESERVED1: array [0..2] of longword; (*!< Reserved *)
  438. CLUTWR: longword; (*!< LTDC Layerx CLUT Write Register Address offset: 0x144 *)
  439. end;
  440. (**
  441. * @brief Power Control
  442. *)
  443. PWR_TypeDef = record
  444. CR1: longword; (*!< PWR power control register 1, Address offset: 0x00 *)
  445. CSR1: longword; (*!< PWR power control/status register 2, Address offset: 0x04 *)
  446. CR2: longword; (*!< PWR power control register 2, Address offset: 0x08 *)
  447. CSR2: longword; (*!< PWR power control/status register 2, Address offset: 0x0C *)
  448. end;
  449. (**
  450. * @brief Reset and Clock Control
  451. *)
  452. RCC_TypeDef = record
  453. CR: longword; (*!< RCC clock control register, Address offset: 0x00 *)
  454. PLLCFGR: longword; (*!< RCC PLL configuration register, Address offset: 0x04 *)
  455. CFGR: longword; (*!< RCC clock configuration register, Address offset: 0x08 *)
  456. CIR: longword; (*!< RCC clock interrupt register, Address offset: 0x0C *)
  457. AHB1RSTR: longword; (*!< RCC AHB1 peripheral reset register, Address offset: 0x10 *)
  458. AHB2RSTR: longword; (*!< RCC AHB2 peripheral reset register, Address offset: 0x14 *)
  459. AHB3RSTR: longword; (*!< RCC AHB3 peripheral reset register, Address offset: 0x18 *)
  460. RESERVED0: longword; (*!< Reserved, 0x1C *)
  461. APB1RSTR: longword; (*!< RCC APB1 peripheral reset register, Address offset: 0x20 *)
  462. APB2RSTR: longword; (*!< RCC APB2 peripheral reset register, Address offset: 0x24 *)
  463. RESERVED1: array [0..1] of longword; (*!< Reserved, 0x28-0x2C *)
  464. AHB1ENR: longword; (*!< RCC AHB1 peripheral clock register, Address offset: 0x30 *)
  465. AHB2ENR: longword; (*!< RCC AHB2 peripheral clock register, Address offset: 0x34 *)
  466. AHB3ENR: longword; (*!< RCC AHB3 peripheral clock register, Address offset: 0x38 *)
  467. RESERVED2: longword; (*!< Reserved, 0x3C *)
  468. APB1ENR: longword; (*!< RCC APB1 peripheral clock enable register, Address offset: 0x40 *)
  469. APB2ENR: longword; (*!< RCC APB2 peripheral clock enable register, Address offset: 0x44 *)
  470. RESERVED3: array [0..1] of longword; (*!< Reserved, 0x48-0x4C *)
  471. AHB1LPENR: longword; (*!< RCC AHB1 peripheral clock enable in low power mode register, Address offset: 0x50 *)
  472. AHB2LPENR: longword; (*!< RCC AHB2 peripheral clock enable in low power mode register, Address offset: 0x54 *)
  473. AHB3LPENR: longword; (*!< RCC AHB3 peripheral clock enable in low power mode register, Address offset: 0x58 *)
  474. RESERVED4: longword; (*!< Reserved, 0x5C *)
  475. APB1LPENR: longword; (*!< RCC APB1 peripheral clock enable in low power mode register, Address offset: 0x60 *)
  476. APB2LPENR: longword; (*!< RCC APB2 peripheral clock enable in low power mode register, Address offset: 0x64 *)
  477. RESERVED5: array [0..1] of longword; (*!< Reserved, 0x68-0x6C *)
  478. BDCR: longword; (*!< RCC Backup domain control register, Address offset: 0x70 *)
  479. CSR: longword; (*!< RCC clock control & status register, Address offset: 0x74 *)
  480. RESERVED6: array [0..1] of longword; (*!< Reserved, 0x78-0x7C *)
  481. SSCGR: longword; (*!< RCC spread spectrum clock generation register, Address offset: 0x80 *)
  482. PLLI2SCFGR: longword; (*!< RCC PLLI2S configuration register, Address offset: 0x84 *)
  483. PLLSAICFGR: longword; (*!< RCC PLLSAI configuration register, Address offset: 0x88 *)
  484. DCKCFGR1: longword; (*!< RCC Dedicated Clocks configuration register1, Address offset: 0x8C *)
  485. DCKCFGR2: longword; (*!< RCC Dedicated Clocks configuration register 2, Address offset: 0x90 *)
  486. end;
  487. (**
  488. * @brief Real-Time Clock
  489. *)
  490. RTC_TypeDef = record
  491. TR: longword; (*!< RTC time register, Address offset: 0x00 *)
  492. DR: longword; (*!< RTC date register, Address offset: 0x04 *)
  493. CR: longword; (*!< RTC control register, Address offset: 0x08 *)
  494. ISR: longword; (*!< RTC initialization and status register, Address offset: 0x0C *)
  495. PRER: longword; (*!< RTC prescaler register, Address offset: 0x10 *)
  496. WUTR: longword; (*!< RTC wakeup timer register, Address offset: 0x14 *)
  497. reserved: longword; (*!< Reserved *)
  498. ALRMAR: longword; (*!< RTC alarm A register, Address offset: 0x1C *)
  499. ALRMBR: longword; (*!< RTC alarm B register, Address offset: 0x20 *)
  500. WPR: longword; (*!< RTC write protection register, Address offset: 0x24 *)
  501. SSR: longword; (*!< RTC sub second register, Address offset: 0x28 *)
  502. SHIFTR: longword; (*!< RTC shift control register, Address offset: 0x2C *)
  503. TSTR: longword; (*!< RTC time stamp time register, Address offset: 0x30 *)
  504. TSDR: longword; (*!< RTC time stamp date register, Address offset: 0x34 *)
  505. TSSSR: longword; (*!< RTC time-stamp sub second register, Address offset: 0x38 *)
  506. CALR: longword; (*!< RTC calibration register, Address offset: 0x3C *)
  507. TAMPCR: longword; (*!< RTC tamper configuration register, Address offset: 0x40 *)
  508. ALRMASSR: longword; (*!< RTC alarm A sub second register, Address offset: 0x44 *)
  509. ALRMBSSR: longword; (*!< RTC alarm B sub second register, Address offset: 0x48 *)
  510. OR_: longword; (*!< RTC option register, Address offset: 0x4C *)
  511. BKP0R: longword; (*!< RTC backup register 0, Address offset: 0x50 *)
  512. BKP1R: longword; (*!< RTC backup register 1, Address offset: 0x54 *)
  513. BKP2R: longword; (*!< RTC backup register 2, Address offset: 0x58 *)
  514. BKP3R: longword; (*!< RTC backup register 3, Address offset: 0x5C *)
  515. BKP4R: longword; (*!< RTC backup register 4, Address offset: 0x60 *)
  516. BKP5R: longword; (*!< RTC backup register 5, Address offset: 0x64 *)
  517. BKP6R: longword; (*!< RTC backup register 6, Address offset: 0x68 *)
  518. BKP7R: longword; (*!< RTC backup register 7, Address offset: 0x6C *)
  519. BKP8R: longword; (*!< RTC backup register 8, Address offset: 0x70 *)
  520. BKP9R: longword; (*!< RTC backup register 9, Address offset: 0x74 *)
  521. BKP10R: longword; (*!< RTC backup register 10, Address offset: 0x78 *)
  522. BKP11R: longword; (*!< RTC backup register 11, Address offset: 0x7C *)
  523. BKP12R: longword; (*!< RTC backup register 12, Address offset: 0x80 *)
  524. BKP13R: longword; (*!< RTC backup register 13, Address offset: 0x84 *)
  525. BKP14R: longword; (*!< RTC backup register 14, Address offset: 0x88 *)
  526. BKP15R: longword; (*!< RTC backup register 15, Address offset: 0x8C *)
  527. BKP16R: longword; (*!< RTC backup register 16, Address offset: 0x90 *)
  528. BKP17R: longword; (*!< RTC backup register 17, Address offset: 0x94 *)
  529. BKP18R: longword; (*!< RTC backup register 18, Address offset: 0x98 *)
  530. BKP19R: longword; (*!< RTC backup register 19, Address offset: 0x9C *)
  531. BKP20R: longword; (*!< RTC backup register 20, Address offset: 0xA0 *)
  532. BKP21R: longword; (*!< RTC backup register 21, Address offset: 0xA4 *)
  533. BKP22R: longword; (*!< RTC backup register 22, Address offset: 0xA8 *)
  534. BKP23R: longword; (*!< RTC backup register 23, Address offset: 0xAC *)
  535. BKP24R: longword; (*!< RTC backup register 24, Address offset: 0xB0 *)
  536. BKP25R: longword; (*!< RTC backup register 25, Address offset: 0xB4 *)
  537. BKP26R: longword; (*!< RTC backup register 26, Address offset: 0xB8 *)
  538. BKP27R: longword; (*!< RTC backup register 27, Address offset: 0xBC *)
  539. BKP28R: longword; (*!< RTC backup register 28, Address offset: 0xC0 *)
  540. BKP29R: longword; (*!< RTC backup register 29, Address offset: 0xC4 *)
  541. BKP30R: longword; (*!< RTC backup register 30, Address offset: 0xC8 *)
  542. BKP31R: longword; (*!< RTC backup register 31, Address offset: 0xCC *)
  543. end;
  544. (**
  545. * @brief Serial Audio Interface
  546. *)
  547. SAI_TypeDef = record
  548. GCR: longword; (*!< SAI global configuration register, Address offset: 0x00 *)
  549. end;
  550. SAI_Block_TypeDef = record
  551. CR1: longword; (*!< SAI block x configuration register 1, Address offset: 0x04 *)
  552. CR2: longword; (*!< SAI block x configuration register 2, Address offset: 0x08 *)
  553. FRCR: longword; (*!< SAI block x frame configuration register, Address offset: 0x0C *)
  554. SLOTR: longword; (*!< SAI block x slot register, Address offset: 0x10 *)
  555. IMR: longword; (*!< SAI block x interrupt mask register, Address offset: 0x14 *)
  556. SR: longword; (*!< SAI block x status register, Address offset: 0x18 *)
  557. CLRFR: longword; (*!< SAI block x clear flag register, Address offset: 0x1C *)
  558. DR: longword; (*!< SAI block x data register, Address offset: 0x20 *)
  559. end;
  560. (**
  561. * @brief SPDIF-RX Interface
  562. *)
  563. SPDIFRX_TypeDef = record
  564. CR: longword; (*!< Control register, Address offset: 0x00 *)
  565. IMR: longword; (*!< Interrupt mask register, Address offset: 0x04 *)
  566. SR: longword; (*!< Status register, Address offset: 0x08 *)
  567. IFCR: longword; (*!< Interrupt Flag Clear register, Address offset: 0x0C *)
  568. DR: longword; (*!< Data input register, Address offset: 0x10 *)
  569. CSR: longword; (*!< Channel Status register, Address offset: 0x14 *)
  570. DIR: longword; (*!< Debug Information register, Address offset: 0x18 *)
  571. end;
  572. (**
  573. * @brief SD host Interface
  574. *)
  575. SDMMC_TypeDef = record
  576. POWER: longword; (*!< SDMMC power control register, Address offset: 0x00 *)
  577. CLKCR: longword; (*!< SDMMClock control register, Address offset: 0x04 *)
  578. ARG: longword; (*!< SDMMC argument register, Address offset: 0x08 *)
  579. CMD: longword; (*!< SDMMC command register, Address offset: 0x0C *)
  580. RESPCMD: longword; (*!< SDMMC command response register, Address offset: 0x10 *)
  581. RESP1: longword; (*!< SDMMC response 1 register, Address offset: 0x14 *)
  582. RESP2: longword; (*!< SDMMC response 2 register, Address offset: 0x18 *)
  583. RESP3: longword; (*!< SDMMC response 3 register, Address offset: 0x1C *)
  584. RESP4: longword; (*!< SDMMC response 4 register, Address offset: 0x20 *)
  585. DTIMER: longword; (*!< SDMMC data timer register, Address offset: 0x24 *)
  586. DLEN: longword; (*!< SDMMC data length register, Address offset: 0x28 *)
  587. DCTRL: longword; (*!< SDMMC data control register, Address offset: 0x2C *)
  588. DCOUNT: longword; (*!< SDMMC data counter register, Address offset: 0x30 *)
  589. STA: longword; (*!< SDMMC status register, Address offset: 0x34 *)
  590. ICR: longword; (*!< SDMMC interrupt clear register, Address offset: 0x38 *)
  591. MASK: longword; (*!< SDMMC mask register, Address offset: 0x3C *)
  592. RESERVED0: array [0..1] of longword; (*!< Reserved, 0x40-0x44 *)
  593. FIFOCNT: longword; (*!< SDMMC FIFO counter register, Address offset: 0x48 *)
  594. RESERVED1: array [0..12] of longword; (*!< Reserved, 0x4C-0x7C *)
  595. FIFO: longword; (*!< SDMMC data FIFO register, Address offset: 0x80 *)
  596. end;
  597. (**
  598. * @brief Serial Peripheral Interface
  599. *)
  600. SPI_TypeDef = record
  601. CR1: longword; (*!< SPI control register 1 (not used in I2S mode), Address offset: 0x00 *)
  602. CR2: longword; (*!< SPI control register 2, Address offset: 0x04 *)
  603. SR: longword; (*!< SPI status register, Address offset: 0x08 *)
  604. DR: longword; (*!< SPI data register, Address offset: 0x0C *)
  605. CRCPR: longword; (*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 *)
  606. RXCRCR: longword; (*!< SPI RX CRC register (not used in I2S mode), Address offset: 0x14 *)
  607. TXCRCR: longword; (*!< SPI TX CRC register (not used in I2S mode), Address offset: 0x18 *)
  608. I2SCFGR: longword; (*!< SPI_I2S configuration register, Address offset: 0x1C *)
  609. I2SPR: longword; (*!< SPI_I2S prescaler register, Address offset: 0x20 *)
  610. end;
  611. (**
  612. * @brief QUAD Serial Peripheral Interface
  613. *)
  614. QUADSPI_TypeDef = record
  615. CR: longword; (*!< QUADSPI Control register, Address offset: 0x00 *)
  616. DCR: longword; (*!< QUADSPI Device Configuration register, Address offset: 0x04 *)
  617. SR: longword; (*!< QUADSPI Status register, Address offset: 0x08 *)
  618. FCR: longword; (*!< QUADSPI Flag Clear register, Address offset: 0x0C *)
  619. DLR: longword; (*!< QUADSPI Data Length register, Address offset: 0x10 *)
  620. CCR: longword; (*!< QUADSPI Communication Configuration register, Address offset: 0x14 *)
  621. AR: longword; (*!< QUADSPI Address register, Address offset: 0x18 *)
  622. ABR: longword; (*!< QUADSPI Alternate Bytes register, Address offset: 0x1C *)
  623. DR: longword; (*!< QUADSPI Data register, Address offset: 0x20 *)
  624. PSMKR: longword; (*!< QUADSPI Polling Status Mask register, Address offset: 0x24 *)
  625. PSMAR: longword; (*!< QUADSPI Polling Status Match register, Address offset: 0x28 *)
  626. PIR: longword; (*!< QUADSPI Polling Interval register, Address offset: 0x2C *)
  627. LPTR: longword; (*!< QUADSPI Low Power Timeout register, Address offset: 0x30 *)
  628. end;
  629. (**
  630. * @brief TIM
  631. *)
  632. TIM_TypeDef = record
  633. CR1: longword; (*!< TIM control register 1, Address offset: 0x00 *)
  634. CR2: longword; (*!< TIM control register 2, Address offset: 0x04 *)
  635. SMCR: longword; (*!< TIM slave mode control register, Address offset: 0x08 *)
  636. DIER: longword; (*!< TIM DMA/interrupt enable register, Address offset: 0x0C *)
  637. SR: longword; (*!< TIM status register, Address offset: 0x10 *)
  638. EGR: longword; (*!< TIM event generation register, Address offset: 0x14 *)
  639. CCMR1: longword; (*!< TIM capture/compare mode register 1, Address offset: 0x18 *)
  640. CCMR2: longword; (*!< TIM capture/compare mode register 2, Address offset: 0x1C *)
  641. CCER: longword; (*!< TIM capture/compare enable register, Address offset: 0x20 *)
  642. CNT: longword; (*!< TIM counter register, Address offset: 0x24 *)
  643. PSC: longword; (*!< TIM prescaler, Address offset: 0x28 *)
  644. ARR: longword; (*!< TIM auto-reload register, Address offset: 0x2C *)
  645. RCR: longword; (*!< TIM repetition counter register, Address offset: 0x30 *)
  646. CCR1: longword; (*!< TIM capture/compare register 1, Address offset: 0x34 *)
  647. CCR2: longword; (*!< TIM capture/compare register 2, Address offset: 0x38 *)
  648. CCR3: longword; (*!< TIM capture/compare register 3, Address offset: 0x3C *)
  649. CCR4: longword; (*!< TIM capture/compare register 4, Address offset: 0x40 *)
  650. BDTR: longword; (*!< TIM break and dead-time register, Address offset: 0x44 *)
  651. DCR: longword; (*!< TIM DMA control register, Address offset: 0x48 *)
  652. DMAR: longword; (*!< TIM DMA address for full transfer, Address offset: 0x4C *)
  653. OR_: longword; (*!< TIM option register, Address offset: 0x50 *)
  654. CCMR3: longword; (*!< TIM capture/compare mode register 3, Address offset: 0x54 *)
  655. CCR5: longword; (*!< TIM capture/compare mode register5, Address offset: 0x58 *)
  656. CCR6: longword; (*!< TIM capture/compare mode register6, Address offset: 0x5C *)
  657. end;
  658. (**
  659. * @brief LPTIMIMER
  660. *)
  661. LPTIM_TypeDef = record
  662. ISR: longword; (*!< LPTIM Interrupt and Status register, Address offset: 0x00 *)
  663. ICR: longword; (*!< LPTIM Interrupt Clear register, Address offset: 0x04 *)
  664. IER: longword; (*!< LPTIM Interrupt Enable register, Address offset: 0x08 *)
  665. CFGR: longword; (*!< LPTIM Configuration register, Address offset: 0x0C *)
  666. CR: longword; (*!< LPTIM Control register, Address offset: 0x10 *)
  667. CMP: longword; (*!< LPTIM Compare register, Address offset: 0x14 *)
  668. ARR: longword; (*!< LPTIM Autoreload register, Address offset: 0x18 *)
  669. CNT: longword; (*!< LPTIM Counter register, Address offset: 0x1C *)
  670. OR_: longword; (*!< LPTIM Option register, Address offset: 0x20 *)
  671. end;
  672. (**
  673. * @brief Universal Synchronous Asynchronous Receiver Transmitter
  674. *)
  675. USART_TypeDef = record
  676. CR1: longword; (*!< USART Control register 1, Address offset: 0x00 *)
  677. CR2: longword; (*!< USART Control register 2, Address offset: 0x04 *)
  678. CR3: longword; (*!< USART Control register 3, Address offset: 0x08 *)
  679. BRR: longword; (*!< USART Baud rate register, Address offset: 0x0C *)
  680. GTPR: longword; (*!< USART Guard time and prescaler register, Address offset: 0x10 *)
  681. RTOR: longword; (*!< USART Receiver Time Out register, Address offset: 0x14 *)
  682. RQR: longword; (*!< USART Request register, Address offset: 0x18 *)
  683. ISR: longword; (*!< USART Interrupt and status register, Address offset: 0x1C *)
  684. ICR: longword; (*!< USART Interrupt flag Clear register, Address offset: 0x20 *)
  685. RDR: longword; (*!< USART Receive Data register, Address offset: 0x24 *)
  686. TDR: longword; (*!< USART Transmit Data register, Address offset: 0x28 *)
  687. end;
  688. (**
  689. * @brief Window WATCHDOG
  690. *)
  691. WWDG_TypeDef = record
  692. CR: longword; (*!< WWDG Control register, Address offset: 0x00 *)
  693. CFR: longword; (*!< WWDG Configuration register, Address offset: 0x04 *)
  694. SR: longword; (*!< WWDG Status register, Address offset: 0x08 *)
  695. end;
  696. (**
  697. * @brief Crypto Processor
  698. *)
  699. CRYP_TypeDef = record
  700. CR: longword; (*!< CRYP control register, Address offset: 0x00 *)
  701. SR: longword; (*!< CRYP status register, Address offset: 0x04 *)
  702. DR: longword; (*!< CRYP data input register, Address offset: 0x08 *)
  703. DOUT: longword; (*!< CRYP data output register, Address offset: 0x0C *)
  704. DMACR: longword; (*!< CRYP DMA control register, Address offset: 0x10 *)
  705. IMSCR: longword; (*!< CRYP interrupt mask set/clear register, Address offset: 0x14 *)
  706. RISR: longword; (*!< CRYP raw interrupt status register, Address offset: 0x18 *)
  707. MISR: longword; (*!< CRYP masked interrupt status register, Address offset: 0x1C *)
  708. K0LR: longword; (*!< CRYP key left register 0, Address offset: 0x20 *)
  709. K0RR: longword; (*!< CRYP key right register 0, Address offset: 0x24 *)
  710. K1LR: longword; (*!< CRYP key left register 1, Address offset: 0x28 *)
  711. K1RR: longword; (*!< CRYP key right register 1, Address offset: 0x2C *)
  712. K2LR: longword; (*!< CRYP key left register 2, Address offset: 0x30 *)
  713. K2RR: longword; (*!< CRYP key right register 2, Address offset: 0x34 *)
  714. K3LR: longword; (*!< CRYP key left register 3, Address offset: 0x38 *)
  715. K3RR: longword; (*!< CRYP key right register 3, Address offset: 0x3C *)
  716. IV0LR: longword; (*!< CRYP initialization vector left-word register 0, Address offset: 0x40 *)
  717. IV0RR: longword; (*!< CRYP initialization vector right-word register 0, Address offset: 0x44 *)
  718. IV1LR: longword; (*!< CRYP initialization vector left-word register 1, Address offset: 0x48 *)
  719. IV1RR: longword; (*!< CRYP initialization vector right-word register 1, Address offset: 0x4C *)
  720. CSGCMCCM0R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 0, Address offset: 0x50 *)
  721. CSGCMCCM1R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 1, Address offset: 0x54 *)
  722. CSGCMCCM2R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 2, Address offset: 0x58 *)
  723. CSGCMCCM3R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 3, Address offset: 0x5C *)
  724. CSGCMCCM4R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 4, Address offset: 0x60 *)
  725. CSGCMCCM5R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 5, Address offset: 0x64 *)
  726. CSGCMCCM6R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 6, Address offset: 0x68 *)
  727. CSGCMCCM7R: longword; (*!< CRYP GCM/GMAC or CCM/CMAC context swap register 7, Address offset: 0x6C *)
  728. CSGCM0R: longword; (*!< CRYP GCM/GMAC context swap register 0, Address offset: 0x70 *)
  729. CSGCM1R: longword; (*!< CRYP GCM/GMAC context swap register 1, Address offset: 0x74 *)
  730. CSGCM2R: longword; (*!< CRYP GCM/GMAC context swap register 2, Address offset: 0x78 *)
  731. CSGCM3R: longword; (*!< CRYP GCM/GMAC context swap register 3, Address offset: 0x7C *)
  732. CSGCM4R: longword; (*!< CRYP GCM/GMAC context swap register 4, Address offset: 0x80 *)
  733. CSGCM5R: longword; (*!< CRYP GCM/GMAC context swap register 5, Address offset: 0x84 *)
  734. CSGCM6R: longword; (*!< CRYP GCM/GMAC context swap register 6, Address offset: 0x88 *)
  735. CSGCM7R: longword; (*!< CRYP GCM/GMAC context swap register 7, Address offset: 0x8C *)
  736. end;
  737. (**
  738. * @brief HASH
  739. *)
  740. HASH_TypeDef = record
  741. CR: longword; (*!< HASH control register, Address offset: 0x00 *)
  742. DIN: longword; (*!< HASH data input register, Address offset: 0x04 *)
  743. STR: longword; (*!< HASH start register, Address offset: 0x08 *)
  744. HR: array [0..4] of longword; (*!< HASH digest registers, Address offset: 0x0C-0x1C *)
  745. IMR: longword; (*!< HASH interrupt enable register, Address offset: 0x20 *)
  746. SR: longword; (*!< HASH status register, Address offset: 0x24 *)
  747. RESERVED: array [0..51] of longword; (*!< Reserved, 0x28-0xF4 *)
  748. CSR: array [0..53] of longword; (*!< HASH context swap registers, Address offset: 0x0F8-0x1CC *)
  749. end;
  750. (**
  751. * @brief HASH_DIGEST
  752. *)
  753. HASH_DIGEST_TypeDef = record
  754. HR: array [0..7] of longword; (*!< HASH digest registers, Address offset: 0x310-0x32C *)
  755. end;
  756. (**
  757. * @brief RNG
  758. *)
  759. RNG_TypeDef = record
  760. CR: longword; (*!< RNG control register, Address offset: 0x00 *)
  761. SR: longword; (*!< RNG status register, Address offset: 0x04 *)
  762. DR: longword; (*!< RNG data register, Address offset: 0x08 *)
  763. end;
  764. (**
  765. * @}
  766. *)
  767. (**
  768. * @brief USB_OTG_Core_Registers
  769. *)
  770. USB_OTG_GlobalTypeDef = record
  771. GOTGCTL: longword; (*!< USB_OTG Control and Status Register 000h *)
  772. GOTGINT: longword; (*!< USB_OTG Interrupt Register 004h *)
  773. GAHBCFG: longword; (*!< Core AHB Configuration Register 008h *)
  774. GUSBCFG: longword; (*!< Core USB Configuration Register 00Ch *)
  775. GRSTCTL: longword; (*!< Core Reset Register 010h *)
  776. GINTSTS: longword; (*!< Core Interrupt Register 014h *)
  777. GINTMSK: longword; (*!< Core Interrupt Mask Register 018h *)
  778. GRXSTSR: longword; (*!< Receive Sts Q Read Register 01Ch *)
  779. GRXSTSP: longword; (*!< Receive Sts Q Read & POP Register 020h *)
  780. GRXFSIZ: longword; (*!< Receive FIFO Size Register 024h *)
  781. DIEPTXF0_HNPTXFSIZ: longword; (*!< EP0 / Non Periodic Tx FIFO Size Register 028h *)
  782. HNPTXSTS: longword; (*!< Non Periodic Tx FIFO/Queue Sts reg 02Ch *)
  783. Reserved30: array [0..1] of longword; (*!< Reserved 030h *)
  784. GCCFG: longword; (*!< General Purpose IO Register 038h *)
  785. CID: longword; (*!< User ID Register 03Ch *)
  786. Reserved5: array [0..2] of longword; (*!< Reserved 040h-048h *)
  787. GHWCFG3: longword; (*!< User HW config3 04Ch *)
  788. Reserved6: longword; (*!< Reserved 050h *)
  789. GLPMCFG: longword; (*!< LPM Register 054h *)
  790. GPWRDN: longword; (*!< Power Down Register 058h *)
  791. GDFIFOCFG: longword; (*!< DFIFO Software Config Register 05Ch *)
  792. GADPCTL: longword; (*!< ADP Timer, Control and Status Register 60Ch *)
  793. Reserved43: array [0..38] of longword; (*!< Reserved 058h-0FFh *)
  794. HPTXFSIZ: longword; (*!< Host Periodic Tx FIFO Size Reg 100h *)
  795. DIEPTXF: array [0..14] of longword; (*!< dev Periodic Transmit FIFO *)
  796. end;
  797. (**
  798. * @brief USB_OTG_device_Registers
  799. *)
  800. USB_OTG_DeviceTypeDef = record
  801. DCFG: longword; (*!< dev Configuration Register 800h *)
  802. DCTL: longword; (*!< dev Control Register 804h *)
  803. DSTS: longword; (*!< dev Status Register (RO) 808h *)
  804. Reserved0C: longword; (*!< Reserved 80Ch *)
  805. DIEPMSK: longword; (*!< dev IN Endpoint Mask 810h *)
  806. DOEPMSK: longword; (*!< dev OUT Endpoint Mask 814h *)
  807. DAINT: longword; (*!< dev All Endpoints Itr Reg 818h *)
  808. DAINTMSK: longword; (*!< dev All Endpoints Itr Mask 81Ch *)
  809. Reserved20: longword; (*!< Reserved 820h *)
  810. Reserved9: longword; (*!< Reserved 824h *)
  811. DVBUSDIS: longword; (*!< dev VBUS discharge Register 828h *)
  812. DVBUSPULSE: longword; (*!< dev VBUS Pulse Register 82Ch *)
  813. DTHRCTL: longword; (*!< dev threshold 830h *)
  814. DIEPEMPMSK: longword; (*!< dev empty msk 834h *)
  815. DEACHINT: longword; (*!< dedicated EP interrupt 838h *)
  816. DEACHMSK: longword; (*!< dedicated EP msk 83Ch *)
  817. Reserved40: longword; (*!< dedicated EP mask 840h *)
  818. DINEP1MSK: longword; (*!< dedicated EP mask 844h *)
  819. Reserved44: array [0..14] of longword; (*!< Reserved 844-87Ch *)
  820. DOUTEP1MSK: longword; (*!< dedicated EP msk 884h *)
  821. end;
  822. (**
  823. * @brief USB_OTG_IN_Endpoint-Specific_Register
  824. *)
  825. USB_OTG_INEndpointTypeDef = record
  826. DIEPCTL: longword; (*!< dev IN Endpoint Control Reg 900h + (ep_num * 20h) + 00h *)
  827. Reserved04: longword; (*!< Reserved 900h + (ep_num * 20h) + 04h *)
  828. DIEPINT: longword; (*!< dev IN Endpoint Itr Reg 900h + (ep_num * 20h) + 08h *)
  829. Reserved0C: longword; (*!< Reserved 900h + (ep_num * 20h) + 0Ch *)
  830. DIEPTSIZ: longword; (*!< IN Endpoint Txfer Size 900h + (ep_num * 20h) + 10h *)
  831. DIEPDMA: longword; (*!< IN Endpoint DMA Address Reg 900h + (ep_num * 20h) + 14h *)
  832. DTXFSTS: longword; (*!< IN Endpoint Tx FIFO Status Reg 900h + (ep_num * 20h) + 18h *)
  833. Reserved18: longword; (*!< Reserved 900h+(ep_num*20h)+1Ch-900h+ (ep_num * 20h) + 1Ch *)
  834. end;
  835. (**
  836. * @brief USB_OTG_OUT_Endpoint-Specific_Registers
  837. *)
  838. USB_OTG_OUTEndpointTypeDef = record
  839. DOEPCTL: longword; (*!< dev OUT Endpoint Control Reg B00h + (ep_num * 20h) + 00h *)
  840. Reserved04: longword; (*!< Reserved B00h + (ep_num * 20h) + 04h *)
  841. DOEPINT: longword; (*!< dev OUT Endpoint Itr Reg B00h + (ep_num * 20h) + 08h *)
  842. Reserved0C: longword; (*!< Reserved B00h + (ep_num * 20h) + 0Ch *)
  843. DOEPTSIZ: longword; (*!< dev OUT Endpoint Txfer Size B00h + (ep_num * 20h) + 10h *)
  844. DOEPDMA: longword; (*!< dev OUT Endpoint DMA Address B00h + (ep_num * 20h) + 14h *)
  845. Reserved18: array [0..1] of longword; (*!< Reserved B00h + (ep_num * 20h) + 18h - B00h + (ep_num * 20h) + 1Ch *)
  846. end;
  847. (**
  848. * @brief USB_OTG_Host_Mode_Register_Structures
  849. *)
  850. USB_OTG_HostTypeDef = record
  851. HCFG: longword; (*!< Host Configuration Register 400h *)
  852. HFIR: longword; (*!< Host Frame Interval Register 404h *)
  853. HFNUM: longword; (*!< Host Frame Nbr/Frame Remaining 408h *)
  854. Reserved40C: longword; (*!< Reserved 40Ch *)
  855. HPTXSTS: longword; (*!< Host Periodic Tx FIFO/ Queue Status 410h *)
  856. HAINT: longword; (*!< Host All Channels Interrupt Register 414h *)
  857. HAINTMSK: longword; (*!< Host All Channels Interrupt Mask 418h *)
  858. end;
  859. (**
  860. * @brief USB_OTG_Host_Channel_Specific_Registers
  861. *)
  862. USB_OTG_HostChannelTypeDef = record
  863. HCCHAR: longword; (*!< Host Channel Characteristics Register 500h *)
  864. HCSPLT: longword; (*!< Host Channel Split Control Register 504h *)
  865. HCINT: longword; (*!< Host Channel Interrupt Register 508h *)
  866. HCINTMSK: longword; (*!< Host Channel Interrupt Mask Register 50Ch *)
  867. HCTSIZ: longword; (*!< Host Channel Transfer Size Register 510h *)
  868. HCDMA: longword; (*!< Host Channel DMA Address Register 514h *)
  869. Reserved: array [0..1] of longword; (*!< Reserved *)
  870. end;
  871. (**
  872. * @}
  873. *)
  874. (** @addtogroup Peripheral_memory_map
  875. * @{
  876. *)
  877. const
  878. RAMITCM_BASE = $00000000; (*!< Base address of :16KB RAM reserved for CPU execution/instruction accessible over ITCM *)
  879. FLASHITCM_BASE = $00200000; (*!< Base address of :(up to 1 MB) embedded FLASH memory accessible over ITCM *)
  880. FLASHAXI_BASE = $08000000; (*!< Base address of : (up to 1 MB) embedded FLASH memory accessible over AXI *)
  881. RAMDTCM_BASE = $20000000; (*!< Base address of : 64KB system data RAM accessible over DTCM *)
  882. SRAM1_BASE = $20010000; (*!< Base address of : 240KB RAM1 accessible over AXI/AHB *)
  883. SRAM2_BASE = $2004C000; (*!< Base address of : 16KB RAM2 accessible over AXI/AHB *)
  884. PERIPH_BASE = $40000000; (*!< Base address of : AHB/ABP Peripherals *)
  885. BKPSRAM_BASE = $40024000; (*!< Base address of : Backup SRAM(4 KB) *)
  886. QSPI_BASE = $90000000; (*!< Base address of : QSPI memories accessible over AXI *)
  887. FMC_R_BASE = $A0000000; (*!< Base address of : FMC Control registers *)
  888. QSPI_R_BASE = $A0001000; (*!< Base address of : QSPI Control registers *)
  889. FLASH_END = $080FFFFF; (*!< FLASH end address *)
  890. (* Legacy define *)
  891. FLASH_BASE = FLASHAXI_BASE;
  892. (*!< Peripheral memory map *)
  893. APB1PERIPH_BASE = PERIPH_BASE;
  894. APB2PERIPH_BASE = (PERIPH_BASE + $00010000);
  895. AHB1PERIPH_BASE = (PERIPH_BASE + $00020000);
  896. AHB2PERIPH_BASE = (PERIPH_BASE + $10000000);
  897. (*!< APB1 peripherals *)
  898. TIM2_BASE = (APB1PERIPH_BASE + $0000);
  899. TIM3_BASE = (APB1PERIPH_BASE + $0400);
  900. TIM4_BASE = (APB1PERIPH_BASE + $0800);
  901. TIM5_BASE = (APB1PERIPH_BASE + $0C00);
  902. TIM6_BASE = (APB1PERIPH_BASE + $1000);
  903. TIM7_BASE = (APB1PERIPH_BASE + $1400);
  904. TIM12_BASE = (APB1PERIPH_BASE + $1800);
  905. TIM13_BASE = (APB1PERIPH_BASE + $1C00);
  906. TIM14_BASE = (APB1PERIPH_BASE + $2000);
  907. LPTIM1_BASE = (APB1PERIPH_BASE + $2400);
  908. RTC_BASE = (APB1PERIPH_BASE + $2800);
  909. WWDG_BASE = (APB1PERIPH_BASE + $2C00);
  910. IWDG_BASE = (APB1PERIPH_BASE + $3000);
  911. SPI2_BASE = (APB1PERIPH_BASE + $3800);
  912. SPI3_BASE = (APB1PERIPH_BASE + $3C00);
  913. SPDIFRX_BASE = (APB1PERIPH_BASE + $4000);
  914. USART2_BASE = (APB1PERIPH_BASE + $4400);
  915. USART3_BASE = (APB1PERIPH_BASE + $4800);
  916. UART4_BASE = (APB1PERIPH_BASE + $4C00);
  917. UART5_BASE = (APB1PERIPH_BASE + $5000);
  918. I2C1_BASE = (APB1PERIPH_BASE + $5400);
  919. I2C2_BASE = (APB1PERIPH_BASE + $5800);
  920. I2C3_BASE = (APB1PERIPH_BASE + $5C00);
  921. I2C4_BASE = (APB1PERIPH_BASE + $6000);
  922. CAN1_BASE = (APB1PERIPH_BASE + $6400);
  923. CAN2_BASE = (APB1PERIPH_BASE + $6800);
  924. CEC_BASE = (APB1PERIPH_BASE + $6C00);
  925. PWR_BASE = (APB1PERIPH_BASE + $7000);
  926. DAC_BASE = (APB1PERIPH_BASE + $7400);
  927. UART7_BASE = (APB1PERIPH_BASE + $7800);
  928. UART8_BASE = (APB1PERIPH_BASE + $7C00);
  929. (*!< APB2 peripherals *)
  930. TIM1_BASE = (APB2PERIPH_BASE + $0000);
  931. TIM8_BASE = (APB2PERIPH_BASE + $0400);
  932. USART1_BASE = (APB2PERIPH_BASE + $1000);
  933. USART6_BASE = (APB2PERIPH_BASE + $1400);
  934. ADC1_BASE = (APB2PERIPH_BASE + $2000);
  935. ADC2_BASE = (APB2PERIPH_BASE + $2100);
  936. ADC3_BASE = (APB2PERIPH_BASE + $2200);
  937. ADC_BASE = (APB2PERIPH_BASE + $2300);
  938. SDMMC1_BASE = (APB2PERIPH_BASE + $2C00);
  939. SPI1_BASE = (APB2PERIPH_BASE + $3000);
  940. SPI4_BASE = (APB2PERIPH_BASE + $3400);
  941. SYSCFG_BASE = (APB2PERIPH_BASE + $3800);
  942. EXTI_BASE = (APB2PERIPH_BASE + $3C00);
  943. TIM9_BASE = (APB2PERIPH_BASE + $4000);
  944. TIM10_BASE = (APB2PERIPH_BASE + $4400);
  945. TIM11_BASE = (APB2PERIPH_BASE + $4800);
  946. SPI5_BASE = (APB2PERIPH_BASE + $5000);
  947. SPI6_BASE = (APB2PERIPH_BASE + $5400);
  948. SAI1_BASE = (APB2PERIPH_BASE + $5800);
  949. SAI2_BASE = (APB2PERIPH_BASE + $5C00);
  950. SAI1_Block_A_BASE = (SAI1_BASE + $004);
  951. SAI1_Block_B_BASE = (SAI1_BASE + $024);
  952. SAI2_Block_A_BASE = (SAI2_BASE + $004);
  953. SAI2_Block_B_BASE = (SAI2_BASE + $024);
  954. LTDC_BASE = (APB2PERIPH_BASE + $6800);
  955. LTDC_Layer1_BASE = (LTDC_BASE + $84);
  956. LTDC_Layer2_BASE = (LTDC_BASE + $104);
  957. (*!< AHB1 peripherals *)
  958. GPIOA_BASE = (AHB1PERIPH_BASE + $0000);
  959. GPIOB_BASE = (AHB1PERIPH_BASE + $0400);
  960. GPIOC_BASE = (AHB1PERIPH_BASE + $0800);
  961. GPIOD_BASE = (AHB1PERIPH_BASE + $0C00);
  962. GPIOE_BASE = (AHB1PERIPH_BASE + $1000);
  963. GPIOF_BASE = (AHB1PERIPH_BASE + $1400);
  964. GPIOG_BASE = (AHB1PERIPH_BASE + $1800);
  965. GPIOH_BASE = (AHB1PERIPH_BASE + $1C00);
  966. GPIOI_BASE = (AHB1PERIPH_BASE + $2000);
  967. GPIOJ_BASE = (AHB1PERIPH_BASE + $2400);
  968. GPIOK_BASE = (AHB1PERIPH_BASE + $2800);
  969. CRC_BASE = (AHB1PERIPH_BASE + $3000);
  970. RCC_BASE = (AHB1PERIPH_BASE + $3800);
  971. FLASH_R_BASE = (AHB1PERIPH_BASE + $3C00);
  972. DMA1_BASE = (AHB1PERIPH_BASE + $6000);
  973. DMA1_Stream0_BASE = (DMA1_BASE + $010);
  974. DMA1_Stream1_BASE = (DMA1_BASE + $028);
  975. DMA1_Stream2_BASE = (DMA1_BASE + $040);
  976. DMA1_Stream3_BASE = (DMA1_BASE + $058);
  977. DMA1_Stream4_BASE = (DMA1_BASE + $070);
  978. DMA1_Stream5_BASE = (DMA1_BASE + $088);
  979. DMA1_Stream6_BASE = (DMA1_BASE + $0A0);
  980. DMA1_Stream7_BASE = (DMA1_BASE + $0B8);
  981. DMA2_BASE = (AHB1PERIPH_BASE + $6400);
  982. DMA2_Stream0_BASE = (DMA2_BASE + $010);
  983. DMA2_Stream1_BASE = (DMA2_BASE + $028);
  984. DMA2_Stream2_BASE = (DMA2_BASE + $040);
  985. DMA2_Stream3_BASE = (DMA2_BASE + $058);
  986. DMA2_Stream4_BASE = (DMA2_BASE + $070);
  987. DMA2_Stream5_BASE = (DMA2_BASE + $088);
  988. DMA2_Stream6_BASE = (DMA2_BASE + $0A0);
  989. DMA2_Stream7_BASE = (DMA2_BASE + $0B8);
  990. ETH_BASE = (AHB1PERIPH_BASE + $8000);
  991. ETH_MAC_BASE = (ETH_BASE);
  992. ETH_MMC_BASE = (ETH_BASE + $0100);
  993. ETH_PTP_BASE = (ETH_BASE + $0700);
  994. ETH_DMA_BASE = (ETH_BASE + $1000);
  995. DMA2D_BASE = (AHB1PERIPH_BASE + $B000);
  996. (*!< AHB2 peripherals *)
  997. DCMI_BASE = (AHB2PERIPH_BASE + $50000);
  998. CRYP_BASE = (AHB2PERIPH_BASE + $60000);
  999. HASH_BASE = (AHB2PERIPH_BASE + $60400);
  1000. HASH_DIGEST_BASE = (AHB2PERIPH_BASE + $60710);
  1001. RNG_BASE = (AHB2PERIPH_BASE + $60800);
  1002. (*!< FMC Bankx registers base address *)
  1003. FMC_Bank1_R_BASE = (FMC_R_BASE + $0000);
  1004. FMC_Bank1E_R_BASE = (FMC_R_BASE + $0104);
  1005. FMC_Bank3_R_BASE = (FMC_R_BASE + $0080);
  1006. FMC_Bank5_6_R_BASE = (FMC_R_BASE + $0140);
  1007. (* Debug MCU registers base address *)
  1008. DBGMCU_BASE = $E0042000;
  1009. (*!< USB registers base address *)
  1010. USB_OTG_HS_PERIPH_BASE = $40040000;
  1011. USB_OTG_FS_PERIPH_BASE = $50000000;
  1012. USB_OTG_GLOBAL_BASE = $000;
  1013. USB_OTG_DEVICE_BASE = $800;
  1014. USB_OTG_IN_ENDPOINT_BASE = $900;
  1015. USB_OTG_OUT_ENDPOINT_BASE = $B00;
  1016. USB_OTG_EP_REG_SIZE = $20;
  1017. USB_OTG_HOST_BASE = $400;
  1018. USB_OTG_HOST_PORT_BASE = $440;
  1019. USB_OTG_HOST_CHANNEL_BASE = $500;
  1020. USB_OTG_HOST_CHANNEL_SIZE = $20;
  1021. USB_OTG_PCGCCTL_BASE = $E00;
  1022. USB_OTG_FIFO_BASE = $1000;
  1023. USB_OTG_FIFO_SIZE = $1000;
  1024. var
  1025. TIM2: TIM_TypeDef absolute TIM2_BASE;
  1026. TIM3: TIM_TypeDef absolute TIM3_BASE;
  1027. TIM4: TIM_TypeDef absolute TIM4_BASE;
  1028. TIM5: TIM_TypeDef absolute TIM5_BASE;
  1029. TIM6: TIM_TypeDef absolute TIM6_BASE;
  1030. TIM7: TIM_TypeDef absolute TIM7_BASE;
  1031. TIM12: TIM_TypeDef absolute TIM12_BASE;
  1032. TIM13: TIM_TypeDef absolute TIM13_BASE;
  1033. TIM14: TIM_TypeDef absolute TIM14_BASE;
  1034. LPTIM1: LPTIM_TypeDef absolute LPTIM1_BASE;
  1035. RTC: RTC_TypeDef absolute RTC_BASE;
  1036. WWDG: WWDG_TypeDef absolute WWDG_BASE;
  1037. IWDG: IWDG_TypeDef absolute IWDG_BASE;
  1038. SPI2: SPI_TypeDef absolute SPI2_BASE;
  1039. SPI3: SPI_TypeDef absolute SPI3_BASE;
  1040. SPDIFRX: SPDIFRX_TypeDef absolute SPDIFRX_BASE;
  1041. USART2: USART_TypeDef absolute USART2_BASE;
  1042. USART3: USART_TypeDef absolute USART3_BASE;
  1043. UART4: USART_TypeDef absolute UART4_BASE;
  1044. UART5: USART_TypeDef absolute UART5_BASE;
  1045. I2C1: I2C_TypeDef absolute I2C1_BASE;
  1046. I2C2: I2C_TypeDef absolute I2C2_BASE;
  1047. I2C3: I2C_TypeDef absolute I2C3_BASE;
  1048. I2C4: I2C_TypeDef absolute I2C4_BASE;
  1049. CAN1: CAN_TypeDef absolute CAN1_BASE;
  1050. CAN2: CAN_TypeDef absolute CAN2_BASE;
  1051. CEC: CEC_TypeDef absolute CEC_BASE;
  1052. PWR: PWR_TypeDef absolute PWR_BASE;
  1053. DAC: DAC_TypeDef absolute DAC_BASE;
  1054. UART7: USART_TypeDef absolute UART7_BASE;
  1055. UART8: USART_TypeDef absolute UART8_BASE;
  1056. TIM1: TIM_TypeDef absolute TIM1_BASE;
  1057. TIM8: TIM_TypeDef absolute TIM8_BASE;
  1058. USART1: USART_TypeDef absolute USART1_BASE;
  1059. USART6: USART_TypeDef absolute USART6_BASE;
  1060. ADC: ADC_Common_TypeDef absolute ADC_BASE;
  1061. ADC1: ADC_TypeDef absolute ADC1_BASE;
  1062. ADC2: ADC_TypeDef absolute ADC2_BASE;
  1063. ADC3: ADC_TypeDef absolute ADC3_BASE;
  1064. SDMMC1: SDMMC_TypeDef absolute SDMMC1_BASE;
  1065. SPI1: SPI_TypeDef absolute SPI1_BASE;
  1066. SPI4: SPI_TypeDef absolute SPI4_BASE;
  1067. SYSCFG: SYSCFG_TypeDef absolute SYSCFG_BASE;
  1068. EXTI: EXTI_TypeDef absolute EXTI_BASE;
  1069. TIM9: TIM_TypeDef absolute TIM9_BASE;
  1070. TIM10: TIM_TypeDef absolute TIM10_BASE;
  1071. TIM11: TIM_TypeDef absolute TIM11_BASE;
  1072. SPI5: SPI_TypeDef absolute SPI5_BASE;
  1073. SPI6: SPI_TypeDef absolute SPI6_BASE;
  1074. SAI1: SAI_TypeDef absolute SAI1_BASE;
  1075. SAI2: SAI_TypeDef absolute SAI2_BASE;
  1076. SAI1_Block_A: SAI_Block_TypeDef absolute SAI1_Block_A_BASE;
  1077. SAI1_Block_B: SAI_Block_TypeDef absolute SAI1_Block_B_BASE;
  1078. SAI2_Block_A: SAI_Block_TypeDef absolute SAI2_Block_A_BASE;
  1079. SAI2_Block_B: SAI_Block_TypeDef absolute SAI2_Block_B_BASE;
  1080. LTDC: LTDC_TypeDef absolute LTDC_BASE;
  1081. LTDC_Layer1: LTDC_Layer_TypeDef absolute LTDC_Layer1_BASE;
  1082. LTDC_Layer2: LTDC_Layer_TypeDef absolute LTDC_Layer2_BASE;
  1083. GPIOA: GPIO_TypeDef absolute GPIOA_BASE;
  1084. GPIOB: GPIO_TypeDef absolute GPIOB_BASE;
  1085. GPIOC: GPIO_TypeDef absolute GPIOC_BASE;
  1086. GPIOD: GPIO_TypeDef absolute GPIOD_BASE;
  1087. GPIOE: GPIO_TypeDef absolute GPIOE_BASE;
  1088. GPIOF: GPIO_TypeDef absolute GPIOF_BASE;
  1089. GPIOG: GPIO_TypeDef absolute GPIOG_BASE;
  1090. GPIOH: GPIO_TypeDef absolute GPIOH_BASE;
  1091. GPIOI: GPIO_TypeDef absolute GPIOI_BASE;
  1092. GPIOJ: GPIO_TypeDef absolute GPIOJ_BASE;
  1093. GPIOK: GPIO_TypeDef absolute GPIOK_BASE;
  1094. CRC: CRC_TypeDef absolute CRC_BASE;
  1095. RCC: RCC_TypeDef absolute RCC_BASE;
  1096. FLASH: FLASH_TypeDef absolute FLASH_R_BASE;
  1097. DMA1: DMA_TypeDef absolute DMA1_BASE;
  1098. DMA1_Stream0: DMA_Stream_TypeDef absolute DMA1_Stream0_BASE;
  1099. DMA1_Stream1: DMA_Stream_TypeDef absolute DMA1_Stream1_BASE;
  1100. DMA1_Stream2: DMA_Stream_TypeDef absolute DMA1_Stream2_BASE;
  1101. DMA1_Stream3: DMA_Stream_TypeDef absolute DMA1_Stream3_BASE;
  1102. DMA1_Stream4: DMA_Stream_TypeDef absolute DMA1_Stream4_BASE;
  1103. DMA1_Stream5: DMA_Stream_TypeDef absolute DMA1_Stream5_BASE;
  1104. DMA1_Stream6: DMA_Stream_TypeDef absolute DMA1_Stream6_BASE;
  1105. DMA1_Stream7: DMA_Stream_TypeDef absolute DMA1_Stream7_BASE;
  1106. DMA2: DMA_TypeDef absolute DMA2_BASE;
  1107. DMA2_Stream0: DMA_Stream_TypeDef absolute DMA2_Stream0_BASE;
  1108. DMA2_Stream1: DMA_Stream_TypeDef absolute DMA2_Stream1_BASE;
  1109. DMA2_Stream2: DMA_Stream_TypeDef absolute DMA2_Stream2_BASE;
  1110. DMA2_Stream3: DMA_Stream_TypeDef absolute DMA2_Stream3_BASE;
  1111. DMA2_Stream4: DMA_Stream_TypeDef absolute DMA2_Stream4_BASE;
  1112. DMA2_Stream5: DMA_Stream_TypeDef absolute DMA2_Stream5_BASE;
  1113. DMA2_Stream6: DMA_Stream_TypeDef absolute DMA2_Stream6_BASE;
  1114. DMA2_Stream7: DMA_Stream_TypeDef absolute DMA2_Stream7_BASE;
  1115. ETH: ETH_TypeDef absolute ETH_BASE;
  1116. DMA2D: DMA2D_TypeDef absolute DMA2D_BASE;
  1117. DCMI: DCMI_TypeDef absolute DCMI_BASE;
  1118. CRYP: CRYP_TypeDef absolute CRYP_BASE;
  1119. HASH: HASH_TypeDef absolute HASH_BASE;
  1120. HASH_DIGEST: HASH_DIGEST_TypeDef absolute HASH_DIGEST_BASE;
  1121. RNG: RNG_TypeDef absolute RNG_BASE;
  1122. FMC_Bank1: FMC_Bank1_TypeDef absolute FMC_Bank1_R_BASE;
  1123. FMC_Bank1E: FMC_Bank1E_TypeDef absolute FMC_Bank1E_R_BASE;
  1124. FMC_Bank3: FMC_Bank3_TypeDef absolute FMC_Bank3_R_BASE;
  1125. FMC_Bank5_6: FMC_Bank5_6_TypeDef absolute FMC_Bank5_6_R_BASE;
  1126. QUADSPI: QUADSPI_TypeDef absolute QSPI_R_BASE;
  1127. DBGMCU: DBGMCU_TypeDef absolute DBGMCU_BASE;
  1128. USB_OTG_FS: USB_OTG_GlobalTypeDef absolute USB_OTG_FS_PERIPH_BASE;
  1129. USB_OTG_HS: USB_OTG_GlobalTypeDef absolute USB_OTG_HS_PERIPH_BASE;
  1130. implementation
  1131. procedure NMI_Interrupt; external name 'NMI_Interrupt';
  1132. procedure HardFault_Interrupt; external name 'HardFault_Interrupt';
  1133. procedure MemManage_Interrupt; external name 'MemManage_Interrupt';
  1134. procedure BusFault_Interrupt; external name 'BusFault_Interrupt';
  1135. procedure UsageFault_Interrupt; external name 'UsageFault_Interrupt';
  1136. procedure SVC_Interrupt; external name 'SVC_Interrupt';
  1137. procedure DebugMon_Interrupt; external name 'DebugMon_Interrupt';
  1138. procedure PendSV_Interrupt; external name 'PendSV_Interrupt';
  1139. procedure SysTick_Interrupt; external name 'SysTick_Interrupt';
  1140. procedure WWDG_Interrupt; external name 'WWDG_Interrupt';
  1141. procedure PVD_Interrupt; external name 'PVD_Interrupt';
  1142. procedure TAMP_STAMP_Interrupt; external name 'TAMP_STAMP_Interrupt';
  1143. procedure RTC_WKUP_Interrupt; external name 'RTC_WKUP_Interrupt';
  1144. procedure FLASH_Interrupt; external name 'FLASH_Interrupt';
  1145. procedure RCC_Interrupt; external name 'RCC_Interrupt';
  1146. procedure EXTI0_Interrupt; external name 'EXTI0_Interrupt';
  1147. procedure EXTI1_Interrupt; external name 'EXTI1_Interrupt';
  1148. procedure EXTI2_Interrupt; external name 'EXTI2_Interrupt';
  1149. procedure EXTI3_Interrupt; external name 'EXTI3_Interrupt';
  1150. procedure EXTI4_Interrupt; external name 'EXTI4_Interrupt';
  1151. procedure DMA1_Stream0_Interrupt; external name 'DMA1_Stream0_Interrupt';
  1152. procedure DMA1_Stream1_Interrupt; external name 'DMA1_Stream1_Interrupt';
  1153. procedure DMA1_Stream2_Interrupt; external name 'DMA1_Stream2_Interrupt';
  1154. procedure DMA1_Stream3_Interrupt; external name 'DMA1_Stream3_Interrupt';
  1155. procedure DMA1_Stream4_Interrupt; external name 'DMA1_Stream4_Interrupt';
  1156. procedure DMA1_Stream5_Interrupt; external name 'DMA1_Stream5_Interrupt';
  1157. procedure DMA1_Stream6_Interrupt; external name 'DMA1_Stream6_Interrupt';
  1158. procedure ADC_Interrupt; external name 'ADC_Interrupt';
  1159. procedure CAN1_TX_Interrupt; external name 'CAN1_TX_Interrupt';
  1160. procedure CAN1_RX0_Interrupt; external name 'CAN1_RX0_Interrupt';
  1161. procedure CAN1_RX1_Interrupt; external name 'CAN1_RX1_Interrupt';
  1162. procedure CAN1_SCE_Interrupt; external name 'CAN1_SCE_Interrupt';
  1163. procedure EXTI9_5_Interrupt; external name 'EXTI9_5_Interrupt';
  1164. procedure TIM1_BRK_TIM9_Interrupt; external name 'TIM1_BRK_TIM9_Interrupt';
  1165. procedure TIM1_UP_TIM10_Interrupt; external name 'TIM1_UP_TIM10_Interrupt';
  1166. procedure TIM1_TRG_COM_TIM11_Interrupt; external name 'TIM1_TRG_COM_TIM11_Interrupt';
  1167. procedure TIM1_CC_Interrupt; external name 'TIM1_CC_Interrupt';
  1168. procedure TIM2_Interrupt; external name 'TIM2_Interrupt';
  1169. procedure TIM3_Interrupt; external name 'TIM3_Interrupt';
  1170. procedure TIM4_Interrupt; external name 'TIM4_Interrupt';
  1171. procedure I2C1_EV_Interrupt; external name 'I2C1_EV_Interrupt';
  1172. procedure I2C1_ER_Interrupt; external name 'I2C1_ER_Interrupt';
  1173. procedure I2C2_EV_Interrupt; external name 'I2C2_EV_Interrupt';
  1174. procedure I2C2_ER_Interrupt; external name 'I2C2_ER_Interrupt';
  1175. procedure SPI1_Interrupt; external name 'SPI1_Interrupt';
  1176. procedure SPI2_Interrupt; external name 'SPI2_Interrupt';
  1177. procedure USART1_Interrupt; external name 'USART1_Interrupt';
  1178. procedure USART2_Interrupt; external name 'USART2_Interrupt';
  1179. procedure USART3_Interrupt; external name 'USART3_Interrupt';
  1180. procedure EXTI15_10_Interrupt; external name 'EXTI15_10_Interrupt';
  1181. procedure RTC_Alarm_Interrupt; external name 'RTC_Alarm_Interrupt';
  1182. procedure OTG_FS_WKUP_Interrupt; external name 'OTG_FS_WKUP_Interrupt';
  1183. procedure TIM8_BRK_TIM12_Interrupt; external name 'TIM8_BRK_TIM12_Interrupt';
  1184. procedure TIM8_UP_TIM13_Interrupt; external name 'TIM8_UP_TIM13_Interrupt';
  1185. procedure TIM8_TRG_COM_TIM14_Interrupt; external name 'TIM8_TRG_COM_TIM14_Interrupt';
  1186. procedure TIM8_CC_Interrupt; external name 'TIM8_CC_Interrupt';
  1187. procedure DMA1_Stream7_Interrupt; external name 'DMA1_Stream7_Interrupt';
  1188. procedure FMC_Interrupt; external name 'FMC_Interrupt';
  1189. procedure SDMMC1_Interrupt; external name 'SDMMC1_Interrupt';
  1190. procedure TIM5_Interrupt; external name 'TIM5_Interrupt';
  1191. procedure SPI3_Interrupt; external name 'SPI3_Interrupt';
  1192. procedure UART4_Interrupt; external name 'UART4_Interrupt';
  1193. procedure UART5_Interrupt; external name 'UART5_Interrupt';
  1194. procedure TIM6_DAC_Interrupt; external name 'TIM6_DAC_Interrupt';
  1195. procedure TIM7_Interrupt; external name 'TIM7_Interrupt';
  1196. procedure DMA2_Stream0_Interrupt; external name 'DMA2_Stream0_Interrupt';
  1197. procedure DMA2_Stream1_Interrupt; external name 'DMA2_Stream1_Interrupt';
  1198. procedure DMA2_Stream2_Interrupt; external name 'DMA2_Stream2_Interrupt';
  1199. procedure DMA2_Stream3_Interrupt; external name 'DMA2_Stream3_Interrupt';
  1200. procedure DMA2_Stream4_Interrupt; external name 'DMA2_Stream4_Interrupt';
  1201. procedure ETH_Interrupt; external name 'ETH_Interrupt';
  1202. procedure ETH_WKUP_Interrupt; external name 'ETH_WKUP_Interrupt';
  1203. procedure CAN2_TX_Interrupt; external name 'CAN2_TX_Interrupt';
  1204. procedure CAN2_RX0_Interrupt; external name 'CAN2_RX0_Interrupt';
  1205. procedure CAN2_RX1_Interrupt; external name 'CAN2_RX1_Interrupt';
  1206. procedure CAN2_SCE_Interrupt; external name 'CAN2_SCE_Interrupt';
  1207. procedure OTG_FS_Interrupt; external name 'OTG_FS_Interrupt';
  1208. procedure DMA2_Stream5_Interrupt; external name 'DMA2_Stream5_Interrupt';
  1209. procedure DMA2_Stream6_Interrupt; external name 'DMA2_Stream6_Interrupt';
  1210. procedure DMA2_Stream7_Interrupt; external name 'DMA2_Stream7_Interrupt';
  1211. procedure USART6_Interrupt; external name 'USART6_Interrupt';
  1212. procedure I2C3_EV_Interrupt; external name 'I2C3_EV_Interrupt';
  1213. procedure I2C3_ER_Interrupt; external name 'I2C3_ER_Interrupt';
  1214. procedure OTG_HS_EP1_OUT_Interrupt; external name 'OTG_HS_EP1_OUT_Interrupt';
  1215. procedure OTG_HS_EP1_IN_Interrupt; external name 'OTG_HS_EP1_IN_Interrupt';
  1216. procedure OTG_HS_WKUP_Interrupt; external name 'OTG_HS_WKUP_Interrupt';
  1217. procedure OTG_HS_Interrupt; external name 'OTG_HS_Interrupt';
  1218. procedure DCMI_Interrupt; external name 'DCMI_Interrupt';
  1219. procedure CRYP_Interrupt; external name 'CRYP_Interrupt';
  1220. procedure HASH_RNG_Interrupt; external name 'HASH_RNG_Interrupt';
  1221. procedure FPU_Interrupt; external name 'FPU_Interrupt';
  1222. procedure UART7_Interrupt; external name 'UART7_Interrupt';
  1223. procedure UART8_Interrupt; external name 'UART8_Interrupt';
  1224. procedure SPI4_Interrupt; external name 'SPI4_Interrupt';
  1225. procedure SPI5_Interrupt; external name 'SPI5_Interrupt';
  1226. procedure SPI6_Interrupt; external name 'SPI6_Interrupt';
  1227. procedure SAI1_Interrupt; external name 'SAI1_Interrupt';
  1228. procedure LTDC_Interrupt; external name 'LTDC_Interrupt';
  1229. procedure LTDC_ER_Interrupt; external name 'LTDC_ER_Interrupt';
  1230. procedure DMA2D_Interrupt; external name 'DMA2D_Interrupt';
  1231. procedure SAI2_Interrupt; external name 'SAI2_Interrupt';
  1232. procedure QUADSPI_Interrupt; external name 'QUADSPI_Interrupt';
  1233. procedure LPTIM1_Interrupt; external name 'LPTIM1_Interrupt';
  1234. procedure CEC_Interrupt; external name 'CEC_Interrupt';
  1235. procedure I2C4_EV_Interrupt; external name 'I2C4_EV_Interrupt';
  1236. procedure I2C4_ER_Interrupt; external name 'I2C4_ER_Interrupt';
  1237. procedure SPDIF_RX_Interrupt; external name 'SPDIF_RX_Interrupt';
  1238. {$i cortexm4f_start.inc}
  1239. procedure Vectors; assembler; nostackframe;
  1240. label interrupt_vectors;
  1241. asm
  1242. .section ".init.interrupt_vectors"
  1243. interrupt_vectors:
  1244. .long _stack_top
  1245. .long Startup
  1246. .long NMI_Interrupt
  1247. .long HardFault_Interrupt
  1248. .long MemManage_Interrupt
  1249. .long BusFault_Interrupt
  1250. .long UsageFault_Interrupt
  1251. .long 0
  1252. .long 0
  1253. .long 0
  1254. .long 0
  1255. .long SVC_Interrupt
  1256. .long DebugMon_Interrupt
  1257. .long 0
  1258. .long PendSV_Interrupt
  1259. .long SysTick_Interrupt
  1260. (* External Interrupts *)
  1261. .long WWDG_Interrupt
  1262. .long PVD_Interrupt
  1263. .long TAMP_STAMP_Interrupt
  1264. .long RTC_WKUP_Interrupt
  1265. .long FLASH_Interrupt
  1266. .long RCC_Interrupt
  1267. .long EXTI0_Interrupt
  1268. .long EXTI1_Interrupt
  1269. .long EXTI2_Interrupt
  1270. .long EXTI3_Interrupt
  1271. .long EXTI4_Interrupt
  1272. .long DMA1_Stream0_Interrupt
  1273. .long DMA1_Stream1_Interrupt
  1274. .long DMA1_Stream2_Interrupt
  1275. .long DMA1_Stream3_Interrupt
  1276. .long DMA1_Stream4_Interrupt
  1277. .long DMA1_Stream5_Interrupt
  1278. .long DMA1_Stream6_Interrupt
  1279. .long ADC_Interrupt
  1280. .long CAN1_TX_Interrupt
  1281. .long CAN1_RX0_Interrupt
  1282. .long CAN1_RX1_Interrupt
  1283. .long CAN1_SCE_Interrupt
  1284. .long EXTI9_5_Interrupt
  1285. .long TIM1_BRK_TIM9_Interrupt
  1286. .long TIM1_UP_TIM10_Interrupt
  1287. .long TIM1_TRG_COM_TIM11_Interrupt
  1288. .long TIM1_CC_Interrupt
  1289. .long TIM2_Interrupt
  1290. .long TIM3_Interrupt
  1291. .long TIM4_Interrupt
  1292. .long I2C1_EV_Interrupt
  1293. .long I2C1_ER_Interrupt
  1294. .long I2C2_EV_Interrupt
  1295. .long I2C2_ER_Interrupt
  1296. .long SPI1_Interrupt
  1297. .long SPI2_Interrupt
  1298. .long USART1_Interrupt
  1299. .long USART2_Interrupt
  1300. .long USART3_Interrupt
  1301. .long EXTI15_10_Interrupt
  1302. .long RTC_Alarm_Interrupt
  1303. .long OTG_FS_WKUP_Interrupt
  1304. .long TIM8_BRK_TIM12_Interrupt
  1305. .long TIM8_UP_TIM13_Interrupt
  1306. .long TIM8_TRG_COM_TIM14_Interrupt
  1307. .long TIM8_CC_Interrupt
  1308. .long DMA1_Stream7_Interrupt
  1309. .long FMC_Interrupt
  1310. .long SDMMC1_Interrupt
  1311. .long TIM5_Interrupt
  1312. .long SPI3_Interrupt
  1313. .long UART4_Interrupt
  1314. .long UART5_Interrupt
  1315. .long TIM6_DAC_Interrupt
  1316. .long TIM7_Interrupt
  1317. .long DMA2_Stream0_Interrupt
  1318. .long DMA2_Stream1_Interrupt
  1319. .long DMA2_Stream2_Interrupt
  1320. .long DMA2_Stream3_Interrupt
  1321. .long DMA2_Stream4_Interrupt
  1322. .long ETH_Interrupt
  1323. .long ETH_WKUP_Interrupt
  1324. .long CAN2_TX_Interrupt
  1325. .long CAN2_RX0_Interrupt
  1326. .long CAN2_RX1_Interrupt
  1327. .long CAN2_SCE_Interrupt
  1328. .long OTG_FS_Interrupt
  1329. .long DMA2_Stream5_Interrupt
  1330. .long DMA2_Stream6_Interrupt
  1331. .long DMA2_Stream7_Interrupt
  1332. .long USART6_Interrupt
  1333. .long I2C3_EV_Interrupt
  1334. .long I2C3_ER_Interrupt
  1335. .long OTG_HS_EP1_OUT_Interrupt
  1336. .long OTG_HS_EP1_IN_Interrupt
  1337. .long OTG_HS_WKUP_Interrupt
  1338. .long OTG_HS_Interrupt
  1339. .long DCMI_Interrupt
  1340. .long CRYP_Interrupt
  1341. .long HASH_RNG_Interrupt
  1342. .long FPU_Interrupt
  1343. .long UART7_Interrupt
  1344. .long UART8_Interrupt
  1345. .long SPI4_Interrupt
  1346. .long SPI5_Interrupt
  1347. .long SPI6_Interrupt
  1348. .long SAI1_Interrupt
  1349. .long LTDC_Interrupt
  1350. .long LTDC_ER_Interrupt
  1351. .long DMA2D_Interrupt
  1352. .long SAI2_Interrupt
  1353. .long QUADSPI_Interrupt
  1354. .long LPTIM1_Interrupt
  1355. .long CEC_Interrupt
  1356. .long I2C4_EV_Interrupt
  1357. .long I2C4_ER_Interrupt
  1358. .long SPDIF_RX_Interrupt
  1359. .weak NMI_Interrupt
  1360. .weak HardFault_Interrupt
  1361. .weak MemManage_Interrupt
  1362. .weak BusFault_Interrupt
  1363. .weak UsageFault_Interrupt
  1364. .weak SVC_Interrupt
  1365. .weak DebugMon_Interrupt
  1366. .weak PendSV_Interrupt
  1367. .weak SysTick_Interrupt
  1368. .weak WWDG_Interrupt
  1369. .weak PVD_Interrupt
  1370. .weak TAMP_STAMP_Interrupt
  1371. .weak RTC_WKUP_Interrupt
  1372. .weak FLASH_Interrupt
  1373. .weak RCC_Interrupt
  1374. .weak EXTI0_Interrupt
  1375. .weak EXTI1_Interrupt
  1376. .weak EXTI2_Interrupt
  1377. .weak EXTI3_Interrupt
  1378. .weak EXTI4_Interrupt
  1379. .weak DMA1_Stream0_Interrupt
  1380. .weak DMA1_Stream1_Interrupt
  1381. .weak DMA1_Stream2_Interrupt
  1382. .weak DMA1_Stream3_Interrupt
  1383. .weak DMA1_Stream4_Interrupt
  1384. .weak DMA1_Stream5_Interrupt
  1385. .weak DMA1_Stream6_Interrupt
  1386. .weak ADC_Interrupt
  1387. .weak CAN1_TX_Interrupt
  1388. .weak CAN1_RX0_Interrupt
  1389. .weak CAN1_RX1_Interrupt
  1390. .weak CAN1_SCE_Interrupt
  1391. .weak EXTI9_5_Interrupt
  1392. .weak TIM1_BRK_TIM9_Interrupt
  1393. .weak TIM1_UP_TIM10_Interrupt
  1394. .weak TIM1_TRG_COM_TIM11_Interrupt
  1395. .weak TIM1_CC_Interrupt
  1396. .weak TIM2_Interrupt
  1397. .weak TIM3_Interrupt
  1398. .weak TIM4_Interrupt
  1399. .weak I2C1_EV_Interrupt
  1400. .weak I2C1_ER_Interrupt
  1401. .weak I2C2_EV_Interrupt
  1402. .weak I2C2_ER_Interrupt
  1403. .weak SPI1_Interrupt
  1404. .weak SPI2_Interrupt
  1405. .weak USART1_Interrupt
  1406. .weak USART2_Interrupt
  1407. .weak USART3_Interrupt
  1408. .weak EXTI15_10_Interrupt
  1409. .weak RTC_Alarm_Interrupt
  1410. .weak OTG_FS_WKUP_Interrupt
  1411. .weak TIM8_BRK_TIM12_Interrupt
  1412. .weak TIM8_UP_TIM13_Interrupt
  1413. .weak TIM8_TRG_COM_TIM14_Interrupt
  1414. .weak TIM8_CC_Interrupt
  1415. .weak DMA1_Stream7_Interrupt
  1416. .weak FMC_Interrupt
  1417. .weak SDMMC1_Interrupt
  1418. .weak TIM5_Interrupt
  1419. .weak SPI3_Interrupt
  1420. .weak UART4_Interrupt
  1421. .weak UART5_Interrupt
  1422. .weak TIM6_DAC_Interrupt
  1423. .weak TIM7_Interrupt
  1424. .weak DMA2_Stream0_Interrupt
  1425. .weak DMA2_Stream1_Interrupt
  1426. .weak DMA2_Stream2_Interrupt
  1427. .weak DMA2_Stream3_Interrupt
  1428. .weak DMA2_Stream4_Interrupt
  1429. .weak ETH_Interrupt
  1430. .weak ETH_WKUP_Interrupt
  1431. .weak CAN2_TX_Interrupt
  1432. .weak CAN2_RX0_Interrupt
  1433. .weak CAN2_RX1_Interrupt
  1434. .weak CAN2_SCE_Interrupt
  1435. .weak OTG_FS_Interrupt
  1436. .weak DMA2_Stream5_Interrupt
  1437. .weak DMA2_Stream6_Interrupt
  1438. .weak DMA2_Stream7_Interrupt
  1439. .weak USART6_Interrupt
  1440. .weak I2C3_EV_Interrupt
  1441. .weak I2C3_ER_Interrupt
  1442. .weak OTG_HS_EP1_OUT_Interrupt
  1443. .weak OTG_HS_EP1_IN_Interrupt
  1444. .weak OTG_HS_WKUP_Interrupt
  1445. .weak OTG_HS_Interrupt
  1446. .weak DCMI_Interrupt
  1447. .weak CRYP_Interrupt
  1448. .weak HASH_RNG_Interrupt
  1449. .weak FPU_Interrupt
  1450. .weak UART7_Interrupt
  1451. .weak UART8_Interrupt
  1452. .weak SPI4_Interrupt
  1453. .weak SPI5_Interrupt
  1454. .weak SPI6_Interrupt
  1455. .weak SAI1_Interrupt
  1456. .weak LTDC_Interrupt
  1457. .weak LTDC_ER_Interrupt
  1458. .weak DMA2D_Interrupt
  1459. .weak SAI2_Interrupt
  1460. .weak QUADSPI_Interrupt
  1461. .weak LPTIM1_Interrupt
  1462. .weak CEC_Interrupt
  1463. .weak I2C4_EV_Interrupt
  1464. .weak I2C4_ER_Interrupt
  1465. .weak SPDIF_RX_Interrupt
  1466. .set NMI_Interrupt, HaltProc
  1467. .set HardFault_Interrupt, HaltProc
  1468. .set MemManage_Interrupt, HaltProc
  1469. .set BusFault_Interrupt, HaltProc
  1470. .set UsageFault_Interrupt, HaltProc
  1471. .set SVC_Interrupt, HaltProc
  1472. .set DebugMon_Interrupt, HaltProc
  1473. .set PendSV_Interrupt, HaltProc
  1474. .set SysTick_Interrupt, HaltProc
  1475. .set WWDG_Interrupt, HaltProc
  1476. .set PVD_Interrupt, HaltProc
  1477. .set TAMP_STAMP_Interrupt, HaltProc
  1478. .set RTC_WKUP_Interrupt, HaltProc
  1479. .set FLASH_Interrupt, HaltProc
  1480. .set RCC_Interrupt, HaltProc
  1481. .set EXTI0_Interrupt, HaltProc
  1482. .set EXTI1_Interrupt, HaltProc
  1483. .set EXTI2_Interrupt, HaltProc
  1484. .set EXTI3_Interrupt, HaltProc
  1485. .set EXTI4_Interrupt, HaltProc
  1486. .set DMA1_Stream0_Interrupt, HaltProc
  1487. .set DMA1_Stream1_Interrupt, HaltProc
  1488. .set DMA1_Stream2_Interrupt, HaltProc
  1489. .set DMA1_Stream3_Interrupt, HaltProc
  1490. .set DMA1_Stream4_Interrupt, HaltProc
  1491. .set DMA1_Stream5_Interrupt, HaltProc
  1492. .set DMA1_Stream6_Interrupt, HaltProc
  1493. .set ADC_Interrupt, HaltProc
  1494. .set CAN1_TX_Interrupt, HaltProc
  1495. .set CAN1_RX0_Interrupt, HaltProc
  1496. .set CAN1_RX1_Interrupt, HaltProc
  1497. .set CAN1_SCE_Interrupt, HaltProc
  1498. .set EXTI9_5_Interrupt, HaltProc
  1499. .set TIM1_BRK_TIM9_Interrupt, HaltProc
  1500. .set TIM1_UP_TIM10_Interrupt, HaltProc
  1501. .set TIM1_TRG_COM_TIM11_Interrupt, HaltProc
  1502. .set TIM1_CC_Interrupt, HaltProc
  1503. .set TIM2_Interrupt, HaltProc
  1504. .set TIM3_Interrupt, HaltProc
  1505. .set TIM4_Interrupt, HaltProc
  1506. .set I2C1_EV_Interrupt, HaltProc
  1507. .set I2C1_ER_Interrupt, HaltProc
  1508. .set I2C2_EV_Interrupt, HaltProc
  1509. .set I2C2_ER_Interrupt, HaltProc
  1510. .set SPI1_Interrupt, HaltProc
  1511. .set SPI2_Interrupt, HaltProc
  1512. .set USART1_Interrupt, HaltProc
  1513. .set USART2_Interrupt, HaltProc
  1514. .set USART3_Interrupt, HaltProc
  1515. .set EXTI15_10_Interrupt, HaltProc
  1516. .set RTC_Alarm_Interrupt, HaltProc
  1517. .set OTG_FS_WKUP_Interrupt, HaltProc
  1518. .set TIM8_BRK_TIM12_Interrupt, HaltProc
  1519. .set TIM8_UP_TIM13_Interrupt, HaltProc
  1520. .set TIM8_TRG_COM_TIM14_Interrupt, HaltProc
  1521. .set TIM8_CC_Interrupt, HaltProc
  1522. .set DMA1_Stream7_Interrupt, HaltProc
  1523. .set FMC_Interrupt, HaltProc
  1524. .set SDMMC1_Interrupt, HaltProc
  1525. .set TIM5_Interrupt, HaltProc
  1526. .set SPI3_Interrupt, HaltProc
  1527. .set UART4_Interrupt, HaltProc
  1528. .set UART5_Interrupt, HaltProc
  1529. .set TIM6_DAC_Interrupt, HaltProc
  1530. .set TIM7_Interrupt, HaltProc
  1531. .set DMA2_Stream0_Interrupt, HaltProc
  1532. .set DMA2_Stream1_Interrupt, HaltProc
  1533. .set DMA2_Stream2_Interrupt, HaltProc
  1534. .set DMA2_Stream3_Interrupt, HaltProc
  1535. .set DMA2_Stream4_Interrupt, HaltProc
  1536. .set ETH_Interrupt, HaltProc
  1537. .set ETH_WKUP_Interrupt, HaltProc
  1538. .set CAN2_TX_Interrupt, HaltProc
  1539. .set CAN2_RX0_Interrupt, HaltProc
  1540. .set CAN2_RX1_Interrupt, HaltProc
  1541. .set CAN2_SCE_Interrupt, HaltProc
  1542. .set OTG_FS_Interrupt, HaltProc
  1543. .set DMA2_Stream5_Interrupt, HaltProc
  1544. .set DMA2_Stream6_Interrupt, HaltProc
  1545. .set DMA2_Stream7_Interrupt, HaltProc
  1546. .set USART6_Interrupt, HaltProc
  1547. .set I2C3_EV_Interrupt, HaltProc
  1548. .set I2C3_ER_Interrupt, HaltProc
  1549. .set OTG_HS_EP1_OUT_Interrupt, HaltProc
  1550. .set OTG_HS_EP1_IN_Interrupt, HaltProc
  1551. .set OTG_HS_WKUP_Interrupt, HaltProc
  1552. .set OTG_HS_Interrupt, HaltProc
  1553. .set DCMI_Interrupt, HaltProc
  1554. .set CRYP_Interrupt, HaltProc
  1555. .set HASH_RNG_Interrupt, HaltProc
  1556. .set FPU_Interrupt, HaltProc
  1557. .set UART7_Interrupt, HaltProc
  1558. .set UART8_Interrupt, HaltProc
  1559. .set SPI4_Interrupt, HaltProc
  1560. .set SPI5_Interrupt, HaltProc
  1561. .set SPI6_Interrupt, HaltProc
  1562. .set SAI1_Interrupt, HaltProc
  1563. .set LTDC_Interrupt, HaltProc
  1564. .set LTDC_ER_Interrupt, HaltProc
  1565. .set DMA2D_Interrupt, HaltProc
  1566. .set SAI2_Interrupt, HaltProc
  1567. .set QUADSPI_Interrupt, HaltProc
  1568. .set LPTIM1_Interrupt, HaltProc
  1569. .set CEC_Interrupt, HaltProc
  1570. .set I2C4_EV_Interrupt, HaltProc
  1571. .set I2C4_ER_Interrupt, HaltProc
  1572. .set SPDIF_RX_Interrupt, HaltProc
  1573. .text
  1574. end;
  1575. end.