stm32f10x_conn.pp 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. {
  2. Register definitions and utility code for STM32F10x - Connectivity line
  3. Created by Jeppe Johansen 2012 - [email protected]
  4. }
  5. unit stm32f10x_conn;
  6. {$goto on}
  7. {$define stm32f10x_conn}
  8. interface
  9. type
  10. TBitvector32 = bitpacked array[0..31] of 0..1;
  11. {$PACKRECORDS 2}
  12. const
  13. PeripheralBase = $40000000;
  14. FSMCBase = $60000000;
  15. APB1Base = PeripheralBase;
  16. APB2Base = PeripheralBase+$10000;
  17. AHBBase = PeripheralBase+$20000;
  18. SCS_BASE = $E000E000;
  19. { FSMC }
  20. FSMCBank1NOR1 = FSMCBase+$00000000;
  21. FSMCBank1NOR2 = FSMCBase+$04000000;
  22. FSMCBank1NOR3 = FSMCBase+$08000000;
  23. FSMCBank1NOR4 = FSMCBase+$0C000000;
  24. FSMCBank1PSRAM1 = FSMCBase+$00000000;
  25. FSMCBank1PSRAM2 = FSMCBase+$04000000;
  26. FSMCBank1PSRAM3 = FSMCBase+$08000000;
  27. FSMCBank1PSRAM4 = FSMCBase+$0C000000;
  28. FSMCBank2NAND1 = FSMCBase+$10000000;
  29. FSMCBank3NAND2 = FSMCBase+$20000000;
  30. FSMCBank4PCCARD = FSMCBase+$30000000;
  31. type
  32. TTimerRegisters = record
  33. CR1, res1,
  34. CR2, res2,
  35. SMCR, res3,
  36. DIER, res4,
  37. SR, res5,
  38. EGR, res,
  39. CCMR1, res6,
  40. CCMR2, res7,
  41. CCER, res8,
  42. CNT, res9,
  43. PSC, res10,
  44. ARR, res11,
  45. RCR, res12,
  46. CCR1, res13,
  47. CCR2, res14,
  48. CCR3, res15,
  49. CCR4, res16,
  50. BDTR, res17,
  51. DCR, res18,
  52. DMAR, res19: Word;
  53. end;
  54. TRTCRegisters = record
  55. CRH, res1,
  56. CRL, res2,
  57. PRLH, res3,
  58. PRLL, res4,
  59. DIVH, res5,
  60. DIVL, res6,
  61. CNTH, res7,
  62. CNTL, res8,
  63. ALRH, res9,
  64. ALRL, res10: Word;
  65. end;
  66. TIWDGRegisters = record
  67. KR, res1,
  68. PR, res2,
  69. RLR, res3,
  70. SR, res4: word;
  71. end;
  72. TWWDGRegisters = record
  73. CR, res2,
  74. CFR, res3,
  75. SR, res4: word;
  76. end;
  77. TSPIRegisters = record
  78. CR1, res1,
  79. CR2, res2,
  80. SR, res3,
  81. DR, res4,
  82. CRCPR, res5,
  83. RXCRCR, res6,
  84. TXCRCR, res7,
  85. I2SCFGR, res8,
  86. I2SPR, res9: Word;
  87. end;
  88. TUSARTRegisters = record
  89. SR, res1,
  90. DR, res2,
  91. BRR, res3,
  92. CR1, res4,
  93. CR2, res5,
  94. CR3, res6,
  95. GTPR, res7: Word;
  96. end;
  97. TI2CRegisters = record
  98. CR1, res1,
  99. CR2, res2,
  100. OAR1, res3,
  101. OAR2, res4,
  102. DR, res5,
  103. SR1, res6,
  104. SR2, res7,
  105. CCR, res8: word;
  106. TRISE: byte;
  107. end;
  108. TUSBRegisters = record
  109. EPR: array[0..7] of longword;
  110. res: array[0..7] of longword;
  111. CNTR, res1,
  112. ISTR, res2,
  113. FNR, res3: Word;
  114. DADDR: byte; res4: word; res5: byte;
  115. BTABLE: Word;
  116. end;
  117. TUSBMem = packed array[0..511] of byte;
  118. TCANMailbox = record
  119. IR,
  120. DTR,
  121. DLR,
  122. DHR: longword;
  123. end;
  124. TCANRegisters = record
  125. MCR,
  126. MSR,
  127. TSR,
  128. RF0R,
  129. RF1R,
  130. IER,
  131. ESR,
  132. BTR: longword;
  133. res5: array[$020..$17F] of byte;
  134. TX: array[0..2] of TCANMailbox;
  135. RX: array[0..2] of TCANMailbox;
  136. res6: array[$1D0..$1FF] of byte;
  137. FMR,
  138. FM1R,
  139. res9: longword;
  140. FS1R, res10: word;
  141. res11: longword;
  142. FFA1R, res12: word;
  143. res13: longword;
  144. FA1R, res14: word;
  145. res15: array[$220..$23F] of byte;
  146. FOR1,
  147. FOR2: longword;
  148. FB: array[1..13] of array[1..2] of longword;
  149. end;
  150. TBKPRegisters = record
  151. DR: array[1..10] of record data, res: word; end;
  152. RTCCR,
  153. CR,
  154. CSR,
  155. res1,res2: longword;
  156. DR2: array[11..42] of record data, res: word; end;
  157. end;
  158. TPwrRegisters = record
  159. CR, res: word;
  160. CSR: Word;
  161. end;
  162. TDACRegisters = record
  163. CR,
  164. SWTRIGR: longword;
  165. DHR12R1, res2,
  166. DHR12L1, res3,
  167. DHR8R1, res4,
  168. DHR12R2, res5,
  169. DHR12L2, res6,
  170. DHR8R2, res7: word;
  171. DHR12RD,
  172. DHR12LD: longword;
  173. DHR8RD, res8,
  174. DOR1, res9,
  175. DOR2, res10: Word;
  176. end;
  177. TAFIORegisters = record
  178. EVCR,
  179. MAPR: longword;
  180. EXTICR: array[0..3] of longword;
  181. end;
  182. TEXTIRegisters = record
  183. IMR,
  184. EMR,
  185. RTSR,
  186. FTSR,
  187. SWIER,
  188. PR: longword;
  189. end;
  190. TPortRegisters = record
  191. CRL,
  192. CRH,
  193. IDR,
  194. ODR,
  195. BSRR,
  196. BRR,
  197. LCKR: longword;
  198. end;
  199. TADCRegisters = record
  200. SR,
  201. CR1,
  202. CR2,
  203. SMPR1,
  204. SMPR2: longword;
  205. JOFR1, res2,
  206. JOFR2, res3,
  207. JOFR3, res4,
  208. JOFR4, res5,
  209. HTR, res6,
  210. LTR, res7: word;
  211. SQR1,
  212. SQR2,
  213. SQR3,
  214. JSQR: longword;
  215. JDR1, res8,
  216. JDR2, res9,
  217. JDR3, res10,
  218. JDR4, res11: Word;
  219. DR: longword;
  220. end;
  221. TSDIORegisters = record
  222. POWER,
  223. CLKCR,
  224. ARG: longword;
  225. CMD, res3,
  226. RESPCMD, res4: Word;
  227. RESP1,
  228. RESP2,
  229. RESP3,
  230. RESP4,
  231. DTIMER,
  232. DLEN: longword;
  233. DCTRL, res5: word;
  234. DCOUNT,
  235. STA,
  236. ICR,
  237. MASK,
  238. FIFOCNT,
  239. FIFO: longword;
  240. end;
  241. TDMAChannel = record
  242. CCR, res1,
  243. CNDTR, res2: word;
  244. CPAR,
  245. CMAR,
  246. res: longword;
  247. end;
  248. TDMARegisters = record
  249. ISR,
  250. IFCR: longword;
  251. Channel: array[0..7] of TDMAChannel;
  252. end;
  253. TRCCRegisters = record
  254. CR,
  255. CFGR,
  256. CIR,
  257. APB2RSTR,
  258. APB1RSTR,
  259. AHBENR,
  260. APB2ENR,
  261. APB1ENR,
  262. BDCR,
  263. CSR: longword;
  264. end;
  265. TCRCRegisters = record
  266. DR: longword;
  267. IDR: byte; res1: word; res2: byte;
  268. CR: byte;
  269. end;
  270. TFSMCRegisters = record
  271. nothingyet: byte;
  272. end;
  273. TFlashRegisters = record
  274. ACR,
  275. KEYR,
  276. OPTKEYR,
  277. SR,
  278. CR,
  279. AR,
  280. res,
  281. OBR,
  282. WRPR: longword;
  283. end;
  284. TNVICRegisters = record
  285. ISER: array[0..7] of longword;
  286. reserved0: array[0..23] of longword;
  287. ICER: array[0..7] of longword;
  288. reserved1: array[0..23] of longword;
  289. ISPR: array[0..7] of longword;
  290. reserved2: array[0..23] of longword;
  291. ICPR: array[0..7] of longword;
  292. reserved3: array[0..23] of longword;
  293. IABR: array[0..7] of longword;
  294. reserved4: array[0..55] of longword;
  295. IP: array[0..239] of longword;
  296. reserved5: array[0..643] of longword;
  297. STIR: longword;
  298. end;
  299. TSCBRegisters = record
  300. CPUID, {!< CPU ID Base Register }
  301. ICSR, {!< Interrupt Control State Register }
  302. VTOR, {!< Vector Table Offset Register }
  303. AIRCR, {!< Application Interrupt / Reset Control Register }
  304. SCR, {!< System Control Register }
  305. CCR: longword; {!< Configuration Control Register }
  306. SHP: array[0..11] of byte; {!< System Handlers Priority Registers (4-7, 8-11, 12-15) }
  307. SHCSR, {!< System Handler Control and State Register }
  308. CFSR, {!< Configurable Fault Status Register }
  309. HFSR, {!< Hard Fault Status Register }
  310. DFSR, {!< Debug Fault Status Register }
  311. MMFAR, {!< Mem Manage Address Register }
  312. BFAR, {!< Bus Fault Address Register }
  313. AFSR: longword; {!< Auxiliary Fault Status Register }
  314. PFR: array[0..1] of longword; {!< Processor Feature Register }
  315. DFR, {!< Debug Feature Register }
  316. ADR: longword; {!< Auxiliary Feature Register }
  317. MMFR: array[0..3] of longword; {!< Memory Model Feature Register }
  318. ISAR: array[0..4] of longword; {!< ISA Feature Register }
  319. end;
  320. TSysTickRegisters = record
  321. Ctrl,
  322. Load,
  323. Val,
  324. Calib: longword;
  325. end;
  326. {$ALIGN 2}
  327. var
  328. { Timers }
  329. Timer1: TTimerRegisters absolute (APB2Base+$2C00);
  330. Timer2: TTimerRegisters absolute (APB1Base+$0000);
  331. Timer3: TTimerRegisters absolute (APB1Base+$0400);
  332. Timer4: TTimerRegisters absolute (APB1Base+$0800);
  333. Timer5: TTimerRegisters absolute (APB1Base+$0C00);
  334. Timer6: TTimerRegisters absolute (APB1Base+$1000);
  335. Timer7: TTimerRegisters absolute (APB1Base+$1400);
  336. Timer8: TTimerRegisters absolute (APB2Base+$3400);
  337. { RTC }
  338. RTC: TRTCRegisters absolute (APB1Base+$2800);
  339. { WDG }
  340. WWDG: TWWDGRegisters absolute (APB1Base+$2C00);
  341. IWDG: TIWDGRegisters absolute (APB1Base+$3000);
  342. { SPI }
  343. SPI1: TSPIRegisters absolute (APB2Base+$3000);
  344. SPI2: TSPIRegisters absolute (APB1Base+$3800);
  345. SPI3: TSPIRegisters absolute (APB1Base+$3C00);
  346. { USART/UART }
  347. USART1: TUSARTRegisters absolute (APB2Base+$3800);
  348. USART2: TUSARTRegisters absolute (APB1Base+$4400);
  349. USART3: TUSARTRegisters absolute (APB1Base+$4800);
  350. UART4: TUSARTRegisters absolute (APB1Base+$4C00);
  351. UART5: TUSARTRegisters absolute (APB1Base+$5000);
  352. { I2C }
  353. I2C1: TI2CRegisters absolute (APB1Base+$5400);
  354. I2C2: TI2CRegisters absolute (APB1Base+$5800);
  355. { USB }
  356. USB: TUSBRegisters absolute (APB1Base+$5C00);
  357. USBMem: TUSBMem absolute (APB1Base+$6000);
  358. { CAN }
  359. CAN: TCANRegisters absolute (APB1Base+$6800);
  360. { BKP }
  361. BKP: TBKPRegisters absolute (APB1Base+$6C00);
  362. { PWR }
  363. PWR: TPwrRegisters absolute (APB1Base+$7000);
  364. { DAC }
  365. DAC: TDACRegisters absolute (APB1Base+$7400);
  366. { GPIO }
  367. AFIO: TAFIORegisters absolute (APB2Base+$0);
  368. EXTI: TEXTIRegisters absolute (APB2Base+$0400);
  369. PortA: TPortRegisters absolute (APB2Base+$0800);
  370. PortB: TPortRegisters absolute (APB2Base+$0C00);
  371. PortC: TPortRegisters absolute (APB2Base+$1000);
  372. PortD: TPortRegisters absolute (APB2Base+$1400);
  373. PortE: TPortRegisters absolute (APB2Base+$1800);
  374. PortF: TPortRegisters absolute (APB2Base+$1C00);
  375. PortG: TPortRegisters absolute (APB2Base+$2000);
  376. { ADC }
  377. ADC1: TADCRegisters absolute (APB2Base+$2400);
  378. ADC2: TADCRegisters absolute (APB2Base+$2800);
  379. ADC3: TADCRegisters absolute (APB2Base+$3C00);
  380. { SDIO }
  381. SDIO: TSDIORegisters absolute (APB2Base+$8000);
  382. { DMA }
  383. DMA1: TDMARegisters absolute (AHBBase+$0000);
  384. DMA2: TDMARegisters absolute (AHBBase+$0400);
  385. { RCC }
  386. RCC: TRCCRegisters absolute (AHBBase+$1000);
  387. { Flash }
  388. Flash: TFlashRegisters absolute (AHBBase+$2000);
  389. { CRC }
  390. CRC: TCRCRegisters absolute (AHBBase+$3000);
  391. { SCB }
  392. SCB: TSCBRegisters absolute (SCS_BASE+$0D00);
  393. { SysTick }
  394. SysTick: TSysTickRegisters absolute (SCS_BASE+$0010);
  395. { NVIC }
  396. NVIC: TNVICRegisters absolute (SCS_BASE+$0100);
  397. implementation
  398. procedure NMI_interrupt; external name 'NMI_interrupt';
  399. procedure Hardfault_interrupt; external name 'Hardfault_interrupt';
  400. procedure MemManage_interrupt; external name 'MemManage_interrupt';
  401. procedure BusFault_interrupt; external name 'BusFault_interrupt';
  402. procedure UsageFault_interrupt; external name 'UsageFault_interrupt';
  403. procedure SWI_interrupt; external name 'SWI_interrupt';
  404. procedure DebugMonitor_interrupt; external name 'DebugMonitor_interrupt';
  405. procedure PendingSV_interrupt; external name 'PendingSV_interrupt';
  406. procedure SysTick_interrupt; external name 'SysTick_interrupt';
  407. procedure Window_Watchdog_interrupt; external name 'Window_Watchdog_interrupt';
  408. procedure PVD_through_EXTI_Line_detection_interrupt; external name 'PVD_through_EXTI_Line_detection_interrupt';
  409. procedure Tamper_interrupt; external name 'Tamper_interrupt';
  410. procedure RTC_global_interrupt; external name 'RTC_global_interrupt';
  411. procedure Flash_global_interrupt; external name 'Flash_global_interrupt';
  412. procedure RCC_global_interrupt; external name 'RCC_global_interrupt';
  413. procedure EXTI_Line0_interrupt; external name 'EXTI_Line0_interrupt';
  414. procedure EXTI_Line1_interrupt; external name 'EXTI_Line1_interrupt';
  415. procedure EXTI_Line2_interrupt; external name 'EXTI_Line2_interrupt';
  416. procedure EXTI_Line3_interrupt; external name 'EXTI_Line3_interrupt';
  417. procedure EXTI_Line4_interrupt; external name 'EXTI_Line4_interrupt';
  418. procedure DMA1_Channel1_global_interrupt; external name 'DMA1_Channel1_global_interrupt';
  419. procedure DMA1_Channel2_global_interrupt; external name 'DMA1_Channel2_global_interrupt';
  420. procedure DMA1_Channel3_global_interrupt; external name 'DMA1_Channel3_global_interrupt';
  421. procedure DMA1_Channel4_global_interrupt; external name 'DMA1_Channel4_global_interrupt';
  422. procedure DMA1_Channel5_global_interrupt; external name 'DMA1_Channel5_global_interrupt';
  423. procedure DMA1_Channel6_global_interrupt; external name 'DMA1_Channel6_global_interrupt';
  424. procedure DMA1_Channel7_global_interrupt; external name 'DMA1_Channel7_global_interrupt';
  425. procedure ADC1_and_ADC2_global_interrupt; external name 'ADC1_and_ADC2_global_interrupt';
  426. procedure CAN1_TX_interrupts; external name 'CAN1_TX_interrupts';
  427. procedure CAN1_RX0_interrupts; external name 'CAN1_RX0_interrupts';
  428. procedure CAN1_RX1_interrupt; external name 'CAN1_RX1_interrupt';
  429. procedure CAN1_SCE_interrupt; external name 'CAN1_SCE_interrupt';
  430. procedure EXTI_Line9_5_interrupts; external name 'EXTI_Line9_5_interrupts';
  431. procedure TIM1_Break_interrupt; external name 'TIM1_Break_interrupt';
  432. procedure TIM1_Update_interrupt; external name 'TIM1_Update_interrupt';
  433. procedure TIM1_Trigger_and_Commutation_interrupts; external name 'TIM1_Trigger_and_Commutation_interrupts';
  434. procedure TIM1_Capture_Compare_interrupt; external name 'TIM1_Capture_Compare_interrupt';
  435. procedure TIM2_global_interrupt; external name 'TIM2_global_interrupt';
  436. procedure TIM3_global_interrupt; external name 'TIM3_global_interrupt';
  437. procedure TIM4_global_interrupt; external name 'TIM4_global_interrupt';
  438. procedure I2C1_event_interrupt; external name 'I2C1_event_interrupt';
  439. procedure I2C1_error_interrupt; external name 'I2C1_error_interrupt';
  440. procedure I2C2_event_interrupt; external name 'I2C2_event_interrupt';
  441. procedure I2C2_error_interrupt; external name 'I2C2_error_interrupt';
  442. procedure SPI1_global_interrupt; external name 'SPI1_global_interrupt';
  443. procedure SPI2_global_interrupt; external name 'SPI2_global_interrupt';
  444. procedure USART1_global_interrupt; external name 'USART1_global_interrupt';
  445. procedure USART2_global_interrupt; external name 'USART2_global_interrupt';
  446. procedure USART3_global_interrupt; external name 'USART3_global_interrupt';
  447. procedure EXTI_Line15_10_interrupts; external name 'EXTI_Line15_10_interrupts';
  448. procedure RTC_alarm_through_EXTI_line_interrupt; external name 'RTC_alarm_through_EXTI_line_interrupt';
  449. procedure USB_OTG_FS_Wakeup_through_EXTI_line_interrupt; external name 'USB_OTG_FS_Wakeup_through_EXTI_line_interrupt';
  450. procedure TIM5_global_interrupt; external name 'TIM5_global_interrupt';
  451. procedure SPI3_global_interrupt; external name 'SPI3_global_interrupt';
  452. procedure UART4_global_interrupt; external name 'UART4_global_interrupt';
  453. procedure UART5_global_interrupt; external name 'UART5_global_interrupt';
  454. procedure TIM6_global_interrupt; external name 'TIM6_global_interrupt';
  455. procedure TIM7_global_interrupt; external name 'TIM7_global_interrupt';
  456. procedure DMA2_Channel1_global_interrupt; external name 'DMA2_Channel1_global_interrupt';
  457. procedure DMA2_Channel2_global_interrupt; external name 'DMA2_Channel2_global_interrupt';
  458. procedure DMA2_Channel3_global_interrupt; external name 'DMA2_Channel3_global_interrupt';
  459. procedure DMA2_Channel4_global_interrupt; external name 'DMA2_Channel4_global_interrupt';
  460. procedure DMA2_Channel5_global_interrupt; external name 'DMA2_Channel5_global_interrupt';
  461. procedure Ethernet_global_interrupt; external name 'Ethernet_global_interrupt';
  462. procedure Ethernet_Wakeup_through_EXTI_line_interrupt; external name 'Ethernet_Wakeup_through_EXTI_line_interrupt';
  463. procedure CAN2_TX_interrupts; external name 'CAN2_TX_interrupts';
  464. procedure CAN2_RX0_interrupts; external name 'CAN2_RX0_interrupts';
  465. procedure CAN2_RX1_interrupt; external name 'CAN2_RX1_interrupt';
  466. procedure CAN2_SCE_interrupt; external name 'CAN2_SCE_interrupt';
  467. procedure USB_On_The_Go_FS_global_interrupt; external name 'USB_On_The_Go_FS_global_interrupt';
  468. {$i cortexm3_start.inc}
  469. procedure Vectors; assembler; nostackframe;
  470. label interrupt_vectors;
  471. asm
  472. .section ".init.interrupt_vectors"
  473. interrupt_vectors:
  474. .long _stack_top
  475. .long Startup
  476. .long NMI_interrupt
  477. .long Hardfault_interrupt
  478. .long MemManage_interrupt
  479. .long BusFault_interrupt
  480. .long UsageFault_interrupt
  481. .long 0
  482. .long 0
  483. .long 0
  484. .long 0
  485. .long SWI_interrupt
  486. .long DebugMonitor_interrupt
  487. .long 0
  488. .long PendingSV_interrupt
  489. .long SysTick_interrupt
  490. .long Window_Watchdog_interrupt
  491. .long PVD_through_EXTI_Line_detection_interrupt
  492. .long Tamper_interrupt
  493. .long RTC_global_interrupt
  494. .long Flash_global_interrupt
  495. .long RCC_global_interrupt
  496. .long EXTI_Line0_interrupt
  497. .long EXTI_Line1_interrupt
  498. .long EXTI_Line2_interrupt
  499. .long EXTI_Line3_interrupt
  500. .long EXTI_Line4_interrupt
  501. .long DMA1_Channel1_global_interrupt
  502. .long DMA1_Channel2_global_interrupt
  503. .long DMA1_Channel3_global_interrupt
  504. .long DMA1_Channel4_global_interrupt
  505. .long DMA1_Channel5_global_interrupt
  506. .long DMA1_Channel6_global_interrupt
  507. .long DMA1_Channel7_global_interrupt
  508. .long ADC1_and_ADC2_global_interrupt
  509. .long CAN1_TX_interrupts
  510. .long CAN1_RX0_interrupts
  511. .long CAN1_RX1_interrupt
  512. .long CAN1_SCE_interrupt
  513. .long EXTI_Line9_5_interrupts
  514. .long TIM1_Break_interrupt
  515. .long TIM1_Update_interrupt
  516. .long TIM1_Trigger_and_Commutation_interrupts
  517. .long TIM1_Capture_Compare_interrupt
  518. .long TIM2_global_interrupt
  519. .long TIM3_global_interrupt
  520. .long TIM4_global_interrupt
  521. .long I2C1_event_interrupt
  522. .long I2C1_error_interrupt
  523. .long I2C2_event_interrupt
  524. .long I2C2_error_interrupt
  525. .long SPI1_global_interrupt
  526. .long SPI2_global_interrupt
  527. .long USART1_global_interrupt
  528. .long USART2_global_interrupt
  529. .long USART3_global_interrupt
  530. .long EXTI_Line15_10_interrupts
  531. .long RTC_alarm_through_EXTI_line_interrupt
  532. .long USB_OTG_FS_Wakeup_through_EXTI_line_interrupt
  533. .long 0
  534. .long 0
  535. .long 0
  536. .long 0
  537. .long 0
  538. .long 0
  539. .long 0
  540. .long TIM5_global_interrupt
  541. .long SPI3_global_interrupt
  542. .long UART4_global_interrupt
  543. .long UART5_global_interrupt
  544. .long TIM6_global_interrupt
  545. .long TIM7_global_interrupt
  546. .long DMA2_Channel1_global_interrupt
  547. .long DMA2_Channel2_global_interrupt
  548. .long DMA2_Channel3_global_interrupt
  549. .long DMA2_Channel4_global_interrupt
  550. .long DMA2_Channel5_global_interrupt
  551. .long Ethernet_global_interrupt
  552. .long Ethernet_Wakeup_through_EXTI_line_interrupt
  553. .long CAN2_TX_interrupts
  554. .long CAN2_RX0_interrupts
  555. .long CAN2_RX1_interrupt
  556. .long CAN2_SCE_interrupt
  557. .long USB_On_The_Go_FS_global_interrupt
  558. .weak NMI_interrupt
  559. .weak Hardfault_interrupt
  560. .weak MemManage_interrupt
  561. .weak BusFault_interrupt
  562. .weak UsageFault_interrupt
  563. .weak SWI_interrupt
  564. .weak DebugMonitor_interrupt
  565. .weak PendingSV_interrupt
  566. .weak SysTick_interrupt
  567. .weak Window_Watchdog_interrupt
  568. .weak PVD_through_EXTI_Line_detection_interrupt
  569. .weak Tamper_interrupt
  570. .weak RTC_global_interrupt
  571. .weak Flash_global_interrupt
  572. .weak RCC_global_interrupt
  573. .weak EXTI_Line0_interrupt
  574. .weak EXTI_Line1_interrupt
  575. .weak EXTI_Line2_interrupt
  576. .weak EXTI_Line3_interrupt
  577. .weak EXTI_Line4_interrupt
  578. .weak DMA1_Channel1_global_interrupt
  579. .weak DMA1_Channel2_global_interrupt
  580. .weak DMA1_Channel3_global_interrupt
  581. .weak DMA1_Channel4_global_interrupt
  582. .weak DMA1_Channel5_global_interrupt
  583. .weak DMA1_Channel6_global_interrupt
  584. .weak DMA1_Channel7_global_interrupt
  585. .weak ADC1_and_ADC2_global_interrupt
  586. .weak CAN1_TX_interrupts
  587. .weak CAN1_RX0_interrupts
  588. .weak CAN1_RX1_interrupt
  589. .weak CAN1_SCE_interrupt
  590. .weak EXTI_Line9_5_interrupts
  591. .weak TIM1_Break_interrupt
  592. .weak TIM1_Update_interrupt
  593. .weak TIM1_Trigger_and_Commutation_interrupts
  594. .weak TIM1_Capture_Compare_interrupt
  595. .weak TIM2_global_interrupt
  596. .weak TIM3_global_interrupt
  597. .weak TIM4_global_interrupt
  598. .weak I2C1_event_interrupt
  599. .weak I2C1_error_interrupt
  600. .weak I2C2_event_interrupt
  601. .weak I2C2_error_interrupt
  602. .weak SPI1_global_interrupt
  603. .weak SPI2_global_interrupt
  604. .weak USART1_global_interrupt
  605. .weak USART2_global_interrupt
  606. .weak USART3_global_interrupt
  607. .weak EXTI_Line15_10_interrupts
  608. .weak RTC_alarm_through_EXTI_line_interrupt
  609. .weak USB_OTG_FS_Wakeup_through_EXTI_line_interrupt
  610. .weak TIM5_global_interrupt
  611. .weak SPI3_global_interrupt
  612. .weak UART4_global_interrupt
  613. .weak UART5_global_interrupt
  614. .weak TIM6_global_interrupt
  615. .weak TIM7_global_interrupt
  616. .weak DMA2_Channel1_global_interrupt
  617. .weak DMA2_Channel2_global_interrupt
  618. .weak DMA2_Channel3_global_interrupt
  619. .weak DMA2_Channel4_global_interrupt
  620. .weak DMA2_Channel5_global_interrupt
  621. .weak Ethernet_global_interrupt
  622. .weak Ethernet_Wakeup_through_EXTI_line_interrupt
  623. .weak CAN2_TX_interrupts
  624. .weak CAN2_RX0_interrupts
  625. .weak CAN2_RX1_interrupt
  626. .weak CAN2_SCE_interrupt
  627. .weak USB_On_The_Go_FS_global_interrupt
  628. .set NMI_interrupt, Startup
  629. .set Hardfault_interrupt, Startup
  630. .set MemManage_interrupt, Startup
  631. .set BusFault_interrupt, Startup
  632. .set UsageFault_interrupt, Startup
  633. .set SWI_interrupt, Startup
  634. .set DebugMonitor_interrupt, Startup
  635. .set PendingSV_interrupt, Startup
  636. .set SysTick_interrupt, Startup
  637. .set Window_Watchdog_interrupt, Startup
  638. .set PVD_through_EXTI_Line_detection_interrupt, Startup
  639. .set Tamper_interrupt, Startup
  640. .set RTC_global_interrupt, Startup
  641. .set Flash_global_interrupt, Startup
  642. .set RCC_global_interrupt, Startup
  643. .set EXTI_Line0_interrupt, Startup
  644. .set EXTI_Line1_interrupt, Startup
  645. .set EXTI_Line2_interrupt, Startup
  646. .set EXTI_Line3_interrupt, Startup
  647. .set EXTI_Line4_interrupt, Startup
  648. .set DMA1_Channel1_global_interrupt, Startup
  649. .set DMA1_Channel2_global_interrupt, Startup
  650. .set DMA1_Channel3_global_interrupt, Startup
  651. .set DMA1_Channel4_global_interrupt, Startup
  652. .set DMA1_Channel5_global_interrupt, Startup
  653. .set DMA1_Channel6_global_interrupt, Startup
  654. .set DMA1_Channel7_global_interrupt, Startup
  655. .set ADC1_and_ADC2_global_interrupt, Startup
  656. .set CAN1_TX_interrupts, Startup
  657. .set CAN1_RX0_interrupts, Startup
  658. .set CAN1_RX1_interrupt, Startup
  659. .set CAN1_SCE_interrupt, Startup
  660. .set EXTI_Line9_5_interrupts, Startup
  661. .set TIM1_Break_interrupt, Startup
  662. .set TIM1_Update_interrupt, Startup
  663. .set TIM1_Trigger_and_Commutation_interrupts, Startup
  664. .set TIM1_Capture_Compare_interrupt, Startup
  665. .set TIM2_global_interrupt, Startup
  666. .set TIM3_global_interrupt, Startup
  667. .set TIM4_global_interrupt, Startup
  668. .set I2C1_event_interrupt, Startup
  669. .set I2C1_error_interrupt, Startup
  670. .set I2C2_event_interrupt, Startup
  671. .set I2C2_error_interrupt, Startup
  672. .set SPI1_global_interrupt, Startup
  673. .set SPI2_global_interrupt, Startup
  674. .set USART1_global_interrupt, Startup
  675. .set USART2_global_interrupt, Startup
  676. .set USART3_global_interrupt, Startup
  677. .set EXTI_Line15_10_interrupts, Startup
  678. .set RTC_alarm_through_EXTI_line_interrupt, Startup
  679. .set USB_OTG_FS_Wakeup_through_EXTI_line_interrupt, Startup
  680. .set TIM5_global_interrupt, Startup
  681. .set SPI3_global_interrupt, Startup
  682. .set UART4_global_interrupt, Startup
  683. .set UART5_global_interrupt, Startup
  684. .set TIM6_global_interrupt, Startup
  685. .set TIM7_global_interrupt, Startup
  686. .set DMA2_Channel1_global_interrupt, Startup
  687. .set DMA2_Channel2_global_interrupt, Startup
  688. .set DMA2_Channel3_global_interrupt, Startup
  689. .set DMA2_Channel4_global_interrupt, Startup
  690. .set DMA2_Channel5_global_interrupt, Startup
  691. .set Ethernet_global_interrupt, Startup
  692. .set Ethernet_Wakeup_through_EXTI_line_interrupt, Startup
  693. .set CAN2_TX_interrupts, Startup
  694. .set CAN2_RX0_interrupts, Startup
  695. .set CAN2_RX1_interrupt, Startup
  696. .set CAN2_SCE_interrupt, Startup
  697. .set USB_On_The_Go_FS_global_interrupt, Startup
  698. .text
  699. end;
  700. end.