stm32f745.pp 78 KB

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