📄 vectors_8c-source.html
字号:
00117 ICR13 = 7; <span class="comment">/* IRQ37</span>00118 <span class="comment"> IRQ38 */</span>00119 ICR14 = 3; <span class="comment">/* IRQ39 UART RX</span>00120 <span class="comment"> IRQ40 */</span>00121 ICR15 = 7; <span class="comment">/* IRQ41</span>00122 <span class="comment"> IRQ42 */</span>00123 }00124 <span class="comment">/*------------------------------------------------------------------------</span>00125 <span class="comment"> Prototypes</span>00126 <span class="comment"> </span>00127 <span class="comment"> Add your own prototypes here. Each vector definition needs is proto-</span>00128 <span class="comment"> type. Either do it here or include a header file containing them.</span>00129 <span class="comment"></span>00130 <span class="comment">*/</span>00131 __interrupt <span class="keywordtype">void</span> DefaultIRQHandler(<span class="keywordtype">void</span>);00132 __interrupt <span class="keywordtype">void</span> RLDTMR1IRQHandler(<span class="keywordtype">void</span>);00133 __interrupt <span class="keywordtype">void</span> <a class="code" href="vectors_8c.html#a3">SYSTMRIRQHandler</a>(<span class="keywordtype">void</span>);00134 00135 <span class="comment">/*------------------------------------------------------------------------</span>00136 <span class="comment"> Vector definiton</span>00137 <span class="comment"></span>00138 <span class="comment"> Use following statements to define vectors. All resource related</span>00139 <span class="comment"> vectors are predefined. Remaining software interrupts can be added here</span>00140 <span class="comment"> as well.</span>00141 <span class="comment"> NOTE: If software interrupts 0 to 7 are defined here, this might </span>00142 <span class="comment"> conflict with the reset vector in the start-up file.</span>00143 <span class="comment">*/</span>00144 00145 <span class="preprocessor">#pragma intvect DefaultIRQHandler 9 </span><span class="comment">/* software interrupt 9 */</span>00146 <span class="preprocessor">#pragma intvect DefaultIRQHandler 10 </span><span class="comment">/* exeception handler */</span>00147 <span class="preprocessor">#pragma intvect DefaultIRQHandler 11 </span><span class="comment">/* A/D converter */</span>00148 <span class="preprocessor">#pragma intvect SYSTMRIRQHandler 12 </span><span class="comment">/* timebase timer */</span>00149 <span class="preprocessor">#pragma intvect DefaultIRQHandler 13 </span><span class="comment">/* DTP #0 */</span>00150 <span class="preprocessor">#pragma intvect DefaultIRQHandler 14 </span><span class="comment">/* DTP #4/5 */</span>00151 <span class="preprocessor">#pragma intvect DefaultIRQHandler 15 </span><span class="comment">/* DTP #1 */</span>00152 <span class="preprocessor">#pragma intvect DefaultIRQHandler 16 </span><span class="comment">/* 8/16-bit PPG #0 (borrow) */</span>00153 <span class="preprocessor">#pragma intvect DefaultIRQHandler 17 </span><span class="comment">/* DTP #2 */</span>00154 <span class="preprocessor">#pragma intvect DefaultIRQHandler 18 </span><span class="comment">/* 8/16-bit PPG #1 (borrow) */</span>00155 <span class="preprocessor">#pragma intvect DefaultIRQHandler 19 </span><span class="comment">/* DTP #3 */</span>00156 <span class="preprocessor">#pragma intvect DefaultIRQHandler 20 </span><span class="comment">/* 8/16-bit PPG #2 (borrow) */</span>00157 <span class="preprocessor">#pragma intvect DefaultIRQHandler 21 </span><span class="comment">/* extended I/O serial #0 */</span>00158 <span class="preprocessor">#pragma intvect DefaultIRQHandler 22 </span><span class="comment">/* 8/16-bit PPG #3 (borrow) */</span>00159 <span class="preprocessor">#pragma intvect DefaultIRQHandler 23 </span><span class="comment">/* extended I/O serial #1 */</span>00160 <span class="preprocessor">#pragma intvect DefaultIRQHandler 24 </span><span class="comment">/* 16-bit free-run timer(overfl)*/</span>00161 <span class="preprocessor">#pragma intvect DefaultIRQHandler 25 </span><span class="comment">/* 16-bit reload timer #0 */</span>00162 <span class="preprocessor">#pragma intvect DefaultIRQHandler 26 </span><span class="comment">/* DTP #6/7 */</span>00163 <span class="preprocessor">#pragma intvect RLDTMR1IRQHandler 27 </span><span class="comment">/* 16-bit reload timer #1 */</span>00164 <span class="preprocessor">#pragma intvect DefaultIRQHandler 28 </span><span class="comment">/* 8/16-bit PPG #4/5 (borrow) */</span>00165 <span class="preprocessor">#pragma intvect DefaultIRQHandler 29 </span><span class="comment">/* input capture CH.0 */</span>00166 <span class="preprocessor">#pragma intvect DefaultIRQHandler 30 </span><span class="comment">/* input capture CH.1 */</span>00167 <span class="preprocessor">#pragma intvect DefaultIRQHandler 31 </span><span class="comment">/* input capture CH.2 */</span>00168 <span class="preprocessor">#pragma intvect DefaultIRQHandler 32 </span><span class="comment">/* input capture CH.3 */</span>00169 <span class="preprocessor">#pragma intvect DefaultIRQHandler 33 </span><span class="comment">/* output compare CH.0 */</span>00170 <span class="preprocessor">#pragma intvect DefaultIRQHandler 34 </span><span class="comment">/* output compare CH.1 */</span>00171 <span class="preprocessor">#pragma intvect DefaultIRQHandler 35 </span><span class="comment">/* output compare CH.2 */</span>00172 <span class="preprocessor">#pragma intvect DefaultIRQHandler 36 </span><span class="comment">/* output compare CH.3 */</span>00173 <span class="preprocessor">#pragma intvect DefaultIRQHandler 37 </span><span class="comment">/* UART (transmission complete) */</span>00174 <span class="preprocessor">#pragma intvect DefaultIRQHandler 38 </span><span class="comment">/* IIC #0 */</span>00175 <span class="preprocessor">#pragma intvect DefaultIRQHandler 39 </span><span class="comment">/* UART (receive complete) */</span>00176 <span class="preprocessor">#pragma intvect DefaultIRQHandler 40 </span><span class="comment">/* IIC #1 */</span>00177 <span class="preprocessor">#pragma intvect DefaultIRQHandler 41 </span><span class="comment">/* IRQ41-handler */</span>00178 <span class="preprocessor">#pragma intvect DefaultIRQHandler 42 </span><span class="comment">/* delayed interrupt */</span>00179 00180 <span class="comment">/*------------------------------------------------------------------------</span>00181 <span class="comment"> DefaultIRQHandler()</span>00182 <span class="comment"></span>00183 <span class="comment"> This function is a placeholder for all vector definitions. Either use</span>00184 <span class="comment"> your own placeholder or add necessary code here. </span>00185 <span class="comment">*/</span>00186 __interrupt 00187 <span class="keywordtype">void</span> DefaultIRQHandler (<span class="keywordtype">void</span>)00188 {00189 __DI(); <span class="comment">/* disable interrupts */</span>00190 <span class="keywordflow">while</span>(1)00191 __wait_nop(); <span class="comment">/* halt system */</span>00192 }00193 00194 00195 00196 <span class="comment">/* 16-bit reload timer #1 */</span>00197 <span class="comment">/* inline decrement timers function */</span>00198 <span class="preprocessor">#pragma inline decrement_timers</span>00199 <span class="preprocessor"></span>00200 __interrupt00201 <span class="keywordtype">void</span> RLDTMR1IRQHandler (<span class="keywordtype">void</span>)00202 {00203 <span class="comment">/* This function is called when 16 bit reload-timer */</span>00204 <span class="comment">/* overflows. Period can be changet by modifying */</span>00205 <span class="comment">/* the value of reload register TMRLR0 */</span>00206 <a class="code" href="timers_8c.html#a7">decrement_timers</a>();00207 TMCSR1_UF = 0; <span class="comment">/* Clear Interrupt request */</span>00208 } 00209 00210 00213 __interrupt<a name="l00214"></a><a class="code" href="vectors_8c.html#a3">00214</a> <span class="keywordtype">void</span> <a class="code" href="vectors_8c.html#a3">SYSTMRIRQHandler</a> (<span class="keywordtype">void</span>)00215 {00216 base_timer++;00217 00218 TBTC_TBOF = 0; <span class="comment">/* Clear interrupt request */</span>00219 }</pre></div><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:32:59 2003 for OpenTCP by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -