lpc122x.pp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. unit lpc122x;
  2. {$goto on}
  3. {$define lpc122x}
  4. interface
  5. {$PACKRECORDS 2}
  6. const
  7. //------------------------- Cortex-M0 Processor Exceptions Numbers -----------------------------
  8. Reset_IRQn = -15; // 1 Reset Vector, invoked on Power up and warm reset */
  9. NonMaskableInt_IRQn = -14; // 2 Non maskable Interrupt, cannot be stopped or preempted */
  10. HardFault_IRQn = -13; // 3 Hard Fault, all classes of Fault */
  11. SVCall_IRQn = -5; // 11 System Service Call via SVC instruction */
  12. DebugMonitor_IRQn = -4; // 12 Debug Monitor */
  13. PendSV_IRQn = -2; // 14 Pendable request for system service */
  14. SysTick_IRQn = -1; // 15 System Tick Timer */
  15. //--------------------------- LPC122x Specific Interrupt Numbers -------------------------------
  16. WAKEUP0_IRQn = 0; // PIO0_0 to PIO0_11 Wakeup */
  17. WAKEUP1_IRQn = 1;
  18. WAKEUP2_IRQn = 2;
  19. WAKEUP3_IRQn = 3;
  20. WAKEUP4_IRQn = 4;
  21. WAKEUP5_IRQn = 5;
  22. WAKEUP6_IRQn = 6;
  23. WAKEUP7_IRQn = 7;
  24. WAKEUP8_IRQn = 8;
  25. WAKEUP9_IRQn = 9;
  26. WAKEUP10_IRQn = 10;
  27. WAKEUP11_IRQn = 11; // PIO0_0 to PIO0_11 Wakeup */
  28. I2C_IRQn = 12; // I2C Interrupt */
  29. TIMER_16_0_IRQn = 13; // 16-bit Timer0 Interrupt */
  30. TIMER_16_1_IRQn = 14; // 16-bit Timer1 Interrupt */
  31. TIMER_32_0_IRQn = 15; // 32-bit Timer0 Interrupt */
  32. TIMER_32_1_IRQn = 16; // 32-bit Timer1 Interrupt */
  33. SSP_IRQn = 17; // SSP Interrupt */
  34. UART0_IRQn = 18; // UART0 Interrupt */
  35. UART1_IRQn = 19; // UART1 Interrupt */
  36. CMP_IRQn = 20; // Comparator Interrupt */
  37. ADC_IRQn = 21; // A/D Converter Interrupt */
  38. WDT_IRQn = 22; // Watchdog timer Interrupt */
  39. BOD_IRQn = 23; // Brown Out Detect(BOD) Interrupt */
  40. EINT0_IRQn = 25; // External Interrupt 0 Interrupt */
  41. EINT1_IRQn = 26; // External Interrupt 1 Interrupt */
  42. EINT2_IRQn = 27; // External Interrupt 2 Interrupt */
  43. DMA_IRQn = 29; // DMA Interrupt */
  44. RTC_IRQn = 30; // RTC Interrupt */
  45. type
  46. { ------------- Inter-Integrated Circuit (I2C) ------------- }
  47. TI2C_Registers = record
  48. CONSET : longword;
  49. STAT : longword;
  50. DAT : longword;
  51. ADR0 : longword;
  52. SCLH : longword;
  53. SCLL : longword;
  54. CONCLR : longword;
  55. MMCTRL : longword;
  56. ADR1 : longword;
  57. ADR2 : longword;
  58. ADR3 : longword;
  59. DATA_BUFFER: longword;
  60. MASK0 : longword;
  61. MASK1 : longword;
  62. MASK2 : longword;
  63. MASK3 : longword;
  64. end;
  65. { ------------- Watchdog Timer (WDT) ------------- }
  66. TWDT_Registers = record
  67. _MOD : longword;
  68. TC : longword;
  69. FEED : longword;
  70. TV : longword;
  71. CLKSEL : longword;
  72. WARNINT: longword;
  73. WINDOW : longword;
  74. end;
  75. { ------------- Universal Asynchronous Receiver Transmitter 0 (UART0) ------------- }
  76. TUART0_Registers = record
  77. DLL_THR_RBR : longword;
  78. IER_DLM : longword;
  79. FCR_IIR : longword;
  80. LCR : longword;
  81. MCR : longword;
  82. LSR : longword;
  83. MSR : longword;
  84. SCR : longword;
  85. ACR : longword;
  86. RESERVED0 : longword;
  87. FDR : longword;
  88. RESERVED1 : longword;
  89. TER : longword;
  90. RESERVED2 : array [0 .. 5] of longword;
  91. RS485CTRL : longword;
  92. RS485ADRMATCH: longword;
  93. RS485DLY : longword;
  94. FIFOLVL : longword;
  95. end;
  96. { ------------- Universal Asynchronous Receiver Transmitter 1 (UART1) ------------- }
  97. TUART1_Registers = record
  98. DLL_THR_RBR: longword;
  99. IER_DLM : longword;
  100. FCR_IIR : longword;
  101. LCR : longword;
  102. RESERVED0 : longword;
  103. LSR : longword;
  104. RESERVED1 : longword;
  105. SCR : longword;
  106. ACR : longword;
  107. ICR : longword;
  108. FDR : longword;
  109. RESERVED2 : longword;
  110. TER : longword;
  111. RESERVED3 : array [0 .. 8] of longword;
  112. FIFOLVL : longword;
  113. end;
  114. { ------------- Timer (TCTxxBx) ------------- }
  115. TCTxxBx_Registers = record
  116. IR : longword;
  117. TCR : longword;
  118. TC : longword;
  119. PR : longword;
  120. PC : longword;
  121. MR0 : longword;
  122. MR1 : longword;
  123. MR2 : longword;
  124. MR3 : longword;
  125. CCR : longword;
  126. CR0 : longword;
  127. CR1 : longword;
  128. CR2 : longword;
  129. CR3 : longword;
  130. EMR : longword;
  131. RESERVED0: array [0 .. 11] of longword;
  132. CTCR : longword;
  133. PWMC : longword;
  134. end;
  135. { ------------- Analog-to-Digital Converter (ADC) ------------- }
  136. TADC_Registers = record
  137. CR : longword;
  138. GDR : longword;
  139. RESERVED0: longword;
  140. INTEN : longword;
  141. STAT : longword;
  142. TRM : longword;
  143. end;
  144. { ------------- Power Management Unit (PMU) ------------- }
  145. TPMU_Registers = record
  146. PCON : longword;
  147. GPREG0: longword;
  148. GPREG1: longword;
  149. GPREG2: longword;
  150. GPREG3: longword;
  151. SYSCFG: longword;
  152. end;
  153. { ------------- Synchronous Serial Communication (SSP) ------------- }
  154. TSSP_Registers = record
  155. CR0 : longword;
  156. CR1 : longword;
  157. DR : longword;
  158. SR : longword;
  159. CPSR : longword;
  160. IMSC : longword;
  161. RIS : longword;
  162. MIS : longword;
  163. ICR : longword;
  164. DMACR: longword;
  165. end;
  166. { ------------- Pin Connect Block (IOCON) ------------- }
  167. TIOCON_Registers = record
  168. RESERVED0 : array [0 .. 1] of longword;
  169. PIO0_19 : longword;
  170. PIO0_20 : longword;
  171. PIO0_21 : longword;
  172. PIO0_22 : longword;
  173. PIO0_23 : longword;
  174. PIO0_24 : longword;
  175. SWDIO_PIO0_25: longword;
  176. SWCLK_PIO0_26: longword;
  177. PIO0_27 : longword;
  178. PIO2_12 : longword;
  179. PIO2_13 : longword;
  180. PIO2_14 : longword;
  181. PIO2_15 : longword;
  182. PIO0_28 : longword;
  183. PIO0_29 : longword;
  184. PIO0_0 : longword;
  185. PIO0_1 : longword;
  186. PIO0_2 : longword;
  187. RESERVED1 : longword;
  188. PIO0_3 : longword;
  189. PIO0_4 : longword;
  190. PIO0_5 : longword;
  191. PIO0_6 : longword;
  192. PIO0_7 : longword;
  193. PIO0_8 : longword;
  194. PIO0_9 : longword;
  195. PIO2_0 : longword;
  196. PIO2_1 : longword;
  197. PIO2_2 : longword;
  198. PIO2_3 : longword;
  199. PIO2_4 : longword;
  200. PIO2_5 : longword;
  201. PIO2_6 : longword;
  202. PIO2_7 : longword;
  203. PIO0_10 : longword;
  204. PIO0_11 : longword;
  205. PIO0_12 : longword;
  206. RESET_PIO0_13: longword;
  207. PIO0_14 : longword;
  208. PIO0_15 : longword;
  209. PIO0_16 : longword;
  210. PIO0_17 : longword;
  211. PIO0_18 : longword;
  212. R_PIO0_30 : longword;
  213. R_PIO0_31 : longword;
  214. R_PIO1_0 : longword;
  215. R_PIO1_1 : longword;
  216. PIO1_2 : longword;
  217. PIO1_3 : longword;
  218. PIO1_4 : longword;
  219. PIO1_5 : longword;
  220. PIO1_6 : longword;
  221. RESERVED2 : array [0 .. 1] of longword;
  222. PIO2_8 : longword;
  223. PIO2_9 : longword;
  224. PIO2_10 : longword;
  225. PIO2_11 : longword;
  226. end;
  227. { ------------- System Control (SYSCON) ------------- }
  228. TSYSCON_Registers = record
  229. SYSMEMREMAP : longword;
  230. PRESETCTRL : longword;
  231. SYSPLLCTRL : longword;
  232. SYSPLLSTAT : longword;
  233. RESERVED0 : array [0 .. 3] of longword;
  234. SYSOSCCTRL : longword;
  235. WDTOSCCTRL : longword;
  236. IRCCTRL : longword;
  237. RESERVED1 : longword;
  238. SYSRESSTAT : longword;
  239. RESERVED2 : array [0 .. 2] of longword;
  240. SYSPLLCLKSEL : longword;
  241. SYSPLLCLKUEN : longword;
  242. RESERVED3 : array [0 .. 9] of longword;
  243. MAINCLKSEL : longword;
  244. MAINCLKUEN : longword;
  245. SYSAHBCLKDIV : longword;
  246. RESERVED4 : longword;
  247. SYSAHBCLKCTRL : longword;
  248. RESERVED5 : array [0 .. 3] of longword;
  249. SSPCLKDIV : longword;
  250. UART0CLKDIV : longword;
  251. UART1CLKDIV : longword;
  252. RTCCLKDIV : longword;
  253. RESERVED6 : array [0 .. 14] of longword;
  254. CLKOUTCLKSEL : longword;
  255. CLKOUTUEN : longword;
  256. CLKOUTDIV : longword;
  257. RESERVED7 : array [0 .. 4] of longword;
  258. PIOPORCAP0 : longword;
  259. PIOPORCAP1 : longword;
  260. RESERVED8 : array [0 .. 10] of longword;
  261. IOCONFIGCLKDIV6: longword;
  262. IOCONFIGCLKDIV5: longword;
  263. IOCONFIGCLKDIV4: longword;
  264. IOCONFIGCLKDIV3: longword;
  265. IOCONFIGCLKDIV2: longword;
  266. IOCONFIGCLKDIV1: longword;
  267. IOCONFIGCLKDIV0: longword;
  268. BODCTRL : longword;
  269. SYSTCKCAL : longword;
  270. AHBPRIO : longword;
  271. RESERVED9 : array [0 .. 4] of longword;
  272. IRQLATENCY : longword;
  273. INTNMI : longword;
  274. RESERVED10 : array [0 .. 33] of longword;
  275. STARTAPRP0 : longword;
  276. STARTERP0 : longword;
  277. STARTRSRP0CLR : longword;
  278. STARTSRP0 : longword;
  279. STARTAPRP1 : longword;
  280. STARTERP1 : longword;
  281. STARTRSRP1CLR : longword;
  282. STARTSRP1 : longword;
  283. RESERVED11 : array [0 .. 3] of longword;
  284. PDSLEEPCFG : longword;
  285. PDAWAKECFG : longword;
  286. PDRUNCFG : longword;
  287. RESERVED12 : array [0 .. 109] of longword;
  288. DEVICE_ID : longword;
  289. end;
  290. { ------------- Micro DMA Controller (MICRO_DMA) ------------- }
  291. TMICRODMA_Registers = record
  292. DMA_STATUS : longword;
  293. DMA_CFG : longword;
  294. CTRL_BASE_PTR : longword;
  295. ATL_CTRL_BASE_PTR : longword;
  296. DMA_WAITONREQ_STATUS: longword;
  297. CHNL_SW_REQUEST : longword;
  298. CHNL_USEBURST_SET : longword;
  299. CHNL_USEBURST_CLR : longword;
  300. CHNL_REQ_MASK_SET : longword;
  301. CHNL_REQ_MASK_CLR : longword;
  302. CHNL_ENABLE_SET : longword;
  303. CHNL_ENABLE_CLR : longword;
  304. CHNL_PRI_ALT_SET : longword;
  305. CHNL_PRI_ALT_CLR : longword;
  306. CHNL_PRIORITY_SET : longword;
  307. CHNL_PRIORITY_CLR : longword;
  308. RESERVED0 : array [0 .. 2] of longword;
  309. ERR_CLR : longword;
  310. RESERVED1 : array [0 .. 11] of longword;
  311. CHNL_IRQ_STATUS : longword;
  312. IRQ_ERR_ENABLE : longword;
  313. CHNL_IRQ_ENABLE : longword;
  314. end;
  315. { ------------- Real Time Clock (RTC) ------------- }
  316. TRTC_Registers = record
  317. DR : longword;
  318. MR : longword;
  319. LR : longword;
  320. CR : longword;
  321. ICSC: longword;
  322. RIS : longword;
  323. MIS : longword;
  324. ICR : longword;
  325. end;
  326. { ------------- Analog Comparator (ACOMP) ------------- }
  327. TACOMP_Registers = record
  328. CMP : longword;
  329. VLAD: longword;
  330. end;
  331. { ------------- General Purpose Input/Output (GPIO) ------------- }
  332. TGPIO_Registers = record
  333. MASK : longword;
  334. PIN : longword;
  335. _OUT : longword;
  336. _SET : longword;
  337. CLR : longword;
  338. _NOT : longword;
  339. RESERVED0: array [0 .. 1] of longword;
  340. DIR : longword;
  341. _IS : longword;
  342. IBE : longword;
  343. IEV : longword;
  344. IE : longword;
  345. RIS : longword;
  346. MIS : longword;
  347. IC : longword;
  348. end;
  349. TFLASHCTRL_Registers = record
  350. RESERVED0: array [0 .. 9] of longword;
  351. FLASHCFG : longword;
  352. end;
  353. { ------------- CRC Engine(CRC) ------------- }
  354. TCRC_Registers = record
  355. MODE: longword;
  356. SEED: longword;
  357. SUM : longword;
  358. end;
  359. // *****************************************************************************/
  360. // Peripheral memory map
  361. // *****************************************************************************/
  362. const
  363. /// Base addresses
  364. LPC_FLASH_BASE = ($00000000);
  365. LPC_RAM_BASE = ($10000000);
  366. LPC_APB_BASE = ($40000000);
  367. LPC_AHB_BASE = ($50000000);
  368. LPC_CM3_BASE = ($E0000000);
  369. /// APB peripherals
  370. LPC_I2C_BASE = (LPC_APB_BASE + $00000);
  371. LPC_WDT_BASE = (LPC_APB_BASE + $04000);
  372. LPC_UART0_BASE = (LPC_APB_BASE + $08000);
  373. LPC_UART1_BASE = (LPC_APB_BASE + $0C000);
  374. LPC_CT16B0_BASE = (LPC_APB_BASE + $10000);
  375. LPC_CT16B1_BASE = (LPC_APB_BASE + $14000);
  376. LPC_CT32B0_BASE = (LPC_APB_BASE + $18000);
  377. LPC_CT32B1_BASE = (LPC_APB_BASE + $1C000);
  378. LPC_ADC_BASE = (LPC_APB_BASE + $20000);
  379. LPC_PMU_BASE = (LPC_APB_BASE + $38000);
  380. LPC_SSP_BASE = (LPC_APB_BASE + $40000);
  381. LPC_IOCON_BASE = (LPC_APB_BASE + $44000);
  382. LPC_SYSCON_BASE = (LPC_APB_BASE + $48000);
  383. LPC_MICRO_DMA_BASE = (LPC_APB_BASE + $4C000);
  384. LPC_RTC_BASE = (LPC_APB_BASE + $50000);
  385. LPC_ACOMP_BASE = (LPC_APB_BASE + $54000);
  386. /// AHB peripherals
  387. LPC_GPIO0_BASE = (LPC_AHB_BASE + $00000);
  388. LPC_GPIO1_BASE = (LPC_AHB_BASE + $10000);
  389. LPC_GPIO2_BASE = (LPC_AHB_BASE + $20000);
  390. LPC_FLASHCTRL_BASE = (LPC_AHB_BASE + $60000);
  391. LPC_CRC_BASE = (LPC_AHB_BASE + $70000);
  392. // *****************************************************************************
  393. // Peripheral declaration
  394. // *****************************************************************************
  395. {$ALIGN 2}
  396. var
  397. LPC_I2C : TI2C_Registers absolute(LPC_I2C_BASE);
  398. LPC_WDT : TWDT_Registers absolute(LPC_WDT_BASE);
  399. LPC_UART0 : TUART0_Registers absolute(LPC_UART0_BASE);
  400. LPC_UART1 : TUART1_Registers absolute(LPC_UART1_BASE);
  401. LPC_CT16B0 : TCTxxBx_Registers absolute(LPC_CT16B0_BASE);
  402. LPC_CT16B1 : TCTxxBx_Registers absolute(LPC_CT16B1_BASE);
  403. LPC_CT32B0 : TCTxxBx_Registers absolute(LPC_CT32B0_BASE);
  404. LPC_CT23B1 : TCTxxBx_Registers absolute(LPC_CT32B1_BASE);
  405. LPC_ADC : TADC_Registers absolute(LPC_ADC_BASE);
  406. LPC_PMU : TPMU_Registers absolute(LPC_PMU_BASE);
  407. LPC_SSP : TSSP_Registers absolute(LPC_SSP_BASE);
  408. LPC_IOCON : TIOCON_Registers absolute(LPC_IOCON_BASE);
  409. LPC_SYSCON : TSYSCON_Registers absolute(LPC_SYSCON_BASE);
  410. LPC_MICRO_DMA: TMICRODMA_Registers absolute(LPC_MICRO_DMA_BASE);
  411. LPC_RTC : TRTC_Registers absolute(LPC_RTC_BASE);
  412. LPC_ACOMP : TACOMP_Registers absolute(LPC_ACOMP_BASE);
  413. LPC_GPIO0 : TGPIO_Registers absolute(LPC_GPIO0_BASE);
  414. LPC_GPIO1 : TGPIO_Registers absolute(LPC_GPIO1_BASE);
  415. LPC_GPIO2 : TGPIO_Registers absolute(LPC_GPIO2_BASE);
  416. LPC_FLASHCTRL: TFLASHCTRL_Registers absolute(LPC_FLASHCTRL_BASE);
  417. LPC_CRC : TCRC_Registers absolute(LPC_CRC_BASE);
  418. implementation
  419. procedure NonMaskableInt_interrupt; external name 'NonMaskableInt_interrupt';
  420. procedure Hardfault_interrupt; external name 'Hardfault_interrupt';
  421. procedure Startup_Checksum; external name 'Startup_Checksum';
  422. procedure SVCall_interrupt; external name 'SVCall_interrupt';
  423. procedure DebugMonitor_interrupt; external name 'DebugMonitor_interrupt';
  424. procedure PendSV_interrupt; external name 'PendSV_interrupt';
  425. procedure SysTick_interrupt; external name 'SysTick_interrupt';
  426. procedure WAKEUP0_Interrupt; external name 'WAKEUP0_Interrupt';
  427. procedure WAKEUP1_Interrupt; external name 'WAKEUP1_Interrupt';
  428. procedure WAKEUP2_Interrupt; external name 'WAKEUP2_Interrupt';
  429. procedure WAKEUP3_Interrupt; external name 'WAKEUP3_Interrupt';
  430. procedure WAKEUP4_Interrupt; external name 'WAKEUP4_Interrupt';
  431. procedure WAKEUP5_Interrupt; external name 'WAKEUP5_Interrupt';
  432. procedure WAKEUP6_Interrupt; external name 'WAKEUP6_Interrupt';
  433. procedure WAKEUP7_Interrupt; external name 'WAKEUP7_Interrupt';
  434. procedure WAKEUP8_Interrupt; external name 'WAKEUP8_Interrupt';
  435. procedure WAKEUP9_Interrupt; external name 'WAKEUP9_Interrupt';
  436. procedure WAKEUP10_Interrupt; external name 'WAKEUP10_Interrupt';
  437. procedure WAKEUP11_Interrupt; external name 'WAKEUP11_Interrupt';
  438. procedure I2C_Interrupt; external name 'I2C_Interrupt';
  439. procedure TIMER16_0_Interrupt; external name 'TIMER16_0_Interrupt';
  440. procedure TIMER16_1_Interrupt; external name 'TIMER16_1_Interrupt';
  441. procedure TIMER32_0_Interrupt; external name 'TIMER32_0_Interrupt';
  442. procedure TIMER32_1_Interrupt; external name 'TIMER32_1_Interrupt';
  443. procedure SSP_Interrupt; external name 'SSP_Interrupt';
  444. procedure UART0_Interrupt; external name 'UART0_Interrupt';
  445. procedure UART1_Interrupt; external name 'UART1_Interrupt';
  446. procedure CMP_Interrupt; external name 'CMP_Interrupt';
  447. procedure ADC_Interrupt; external name 'ADC_Interrupt';
  448. procedure WDT_Interrupt; external name 'WDT_Interrupt';
  449. procedure BOD_Interrupt; external name 'BOD_Interrupt';
  450. procedure EINT0_Interrupt; external name 'EINT0_Interrupt';
  451. procedure EINT1_Interrupt; external name 'EINT1_Interrupt';
  452. procedure EINT2_Interrupt; external name 'EINT2_Interrupt';
  453. procedure DMA_Interrupt; external name 'DMA_Interrupt';
  454. procedure RTC_Interrupt; external name 'RTC_Interrupt';
  455. {$I cortexm0_start.inc}
  456. procedure Vectors; assembler;
  457. nostackframe;
  458. label interrupt_vectors;
  459. asm
  460. .section ".init.interrupt_vectors"
  461. interrupt_vectors:
  462. .long _stack_top // stack top address
  463. .long Startup
  464. .long NonMaskableInt_interrupt
  465. .long Hardfault_interrupt
  466. .long 0
  467. .long 0
  468. .long 0
  469. .long Startup_Checksum
  470. .long 0
  471. .long 0
  472. .long 0
  473. .long SVCall_interrupt
  474. .long DebugMonitor_interrupt
  475. .long 0
  476. .long PendSV_interrupt
  477. .long SysTick_interrupt
  478. .long WAKEUP0_Interrupt
  479. .long WAKEUP1_Interrupt
  480. .long WAKEUP2_Interrupt
  481. .long WAKEUP3_Interrupt
  482. .long WAKEUP4_Interrupt
  483. .long WAKEUP5_Interrupt
  484. .long WAKEUP6_Interrupt
  485. .long WAKEUP7_Interrupt
  486. .long WAKEUP8_Interrupt
  487. .long WAKEUP9_Interrupt
  488. .long WAKEUP10_Interrupt
  489. .long WAKEUP11_Interrupt
  490. .long I2C_Interrupt
  491. .long TIMER16_0_Interrupt
  492. .long TIMER16_1_Interrupt
  493. .long TIMER32_0_Interrupt
  494. .long TIMER32_1_Interrupt
  495. .long SSP_Interrupt
  496. .long UART0_Interrupt
  497. .long UART1_Interrupt
  498. .long CMP_interrupt
  499. .long ADC_Interrupt
  500. .long WDT_Interrupt
  501. .long BOD_Interrupt
  502. .long 0
  503. .long EINT0_Interrupt
  504. .long EINT1_Interrupt
  505. .long EINT2_Interrupt
  506. .long 0
  507. .long DMA_Interrupt
  508. .long RTC_Interrupt
  509. .long 0
  510. .weak NonMaskableInt_interrupt
  511. .weak Hardfault_interrupt
  512. .weak Startup_Checksum
  513. .weak SVCall_interrupt
  514. .weak DebugMonitor_interrupt
  515. .weak PendSV_interrupt
  516. .weak SysTick_interrupt
  517. .weak WAKEUP0_Interrupt
  518. .weak WAKEUP1_Interrupt
  519. .weak WAKEUP2_Interrupt
  520. .weak WAKEUP3_Interrupt
  521. .weak WAKEUP4_Interrupt
  522. .weak WAKEUP5_Interrupt
  523. .weak WAKEUP6_Interrupt
  524. .weak WAKEUP7_Interrupt
  525. .weak WAKEUP8_Interrupt
  526. .weak WAKEUP9_Interrupt
  527. .weak WAKEUP10_Interrupt
  528. .weak WAKEUP11_Interrupt
  529. .weak I2C_Interrupt
  530. .weak TIMER16_0_Interrupt
  531. .weak TIMER16_1_Interrupt
  532. .weak TIMER32_0_Interrupt
  533. .weak TIMER32_1_Interrupt
  534. .weak SSP_Interrupt
  535. .weak UART0_Interrupt
  536. .weak UART1_Interrupt
  537. .weak CMP_interrupt
  538. .weak ADC_Interrupt
  539. .weak WDT_Interrupt
  540. .weak BOD_Interrupt
  541. .weak EINT0_Interrupt
  542. .weak EINT1_Interrupt
  543. .weak EINT2_Interrupt
  544. .weak DMA_Interrupt
  545. .weak RTC_Interrupt
  546. .set NonMaskableInt_interrupt, Startup
  547. .set Hardfault_interrupt , Startup
  548. .set SVCall_interrupt , Startup
  549. .set DebugMonitor_interrupt , Startup
  550. .set PendSV_interrupt , Startup
  551. .set SysTick_interrupt , Startup
  552. .set WAKEUP0_Interrupt , Startup
  553. .set WAKEUP1_Interrupt , Startup
  554. .set WAKEUP2_Interrupt , Startup
  555. .set WAKEUP3_Interrupt , Startup
  556. .set WAKEUP4_Interrupt , Startup
  557. .set WAKEUP5_Interrupt , Startup
  558. .set WAKEUP6_Interrupt , Startup
  559. .set WAKEUP7_Interrupt , Startup
  560. .set WAKEUP8_Interrupt , Startup
  561. .set WAKEUP9_Interrupt , Startup
  562. .set WAKEUP10_Interrupt , Startup
  563. .set WAKEUP11_Interrupt , Startup
  564. .set I2C_Interrupt , Startup
  565. .set TIMER16_0_Interrupt, Startup
  566. .set TIMER16_1_Interrupt, Startup
  567. .set TIMER32_0_Interrupt, Startup
  568. .set TIMER32_1_Interrupt, Startup
  569. .set SSP_Interrupt , Startup
  570. .set UART0_Interrupt , Startup
  571. .set UART1_Interrupt , Startup
  572. .set CMP_Interrupt , Startup
  573. .set ADC_Interrupt , Startup
  574. .set WDT_Interrupt , Startup
  575. .set BOD_Interrupt , Startup
  576. .set EINT0_Interrupt , Startup
  577. .set EINT1_Interrupt , Startup
  578. .set EINT2_Interrupt , Startup
  579. .set DMA_Interrupt , Startup
  580. .set RTC_Interrupt , Startup
  581. .text
  582. end;
  583. end.