?? periph.lst
字號:
197 {
198 1 return(TRUE);
199 1 }
200
201 BOOL DR_SetFeature(void)
202 {
203 1 return(TRUE);
204 1 }
205
206 BOOL DR_VendorCmnd(void)
207 {
208 1 return(TRUE);
209 1 }
210
211 //-----------------------------------------------------------------------------
212 // USB Interrupt Handlers
213 // The following functions are called by the USB interrupt jump table.
214 //-----------------------------------------------------------------------------
215
216 // Setup Data Available Interrupt Handler
217 void ISR_Sudav(void) interrupt 0
218 {
219 1 GotSUD = TRUE; // Set flag
220 1 EZUSB_IRQ_CLEAR();
221 1 USBIRQ = bmSUDAV; // Clear SUDAV IRQ
222 1 }
223
224 // Setup Token Interrupt Handler
225 void ISR_Sutok(void) interrupt 0
226 {
227 1 EZUSB_IRQ_CLEAR();
228 1 USBIRQ = bmSUTOK; // Clear SUTOK IRQ
229 1 }
230
231 void ISR_Sof(void) interrupt 0
232 {
233 1 EZUSB_IRQ_CLEAR();
234 1 USBIRQ = bmSOF; // Clear SOF IRQ
235 1 }
236
237 void ISR_Ures(void) interrupt 0
238 {
239 1 // whenever we get a USB reset, we should revert to full speed mode
240 1 pConfigDscr = pFullSpeedConfigDscr;
241 1 ((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
C51 COMPILER V8.05a PERIPH 02/09/2009 15:21:59 PAGE 5
242 1 pOtherConfigDscr = pHighSpeedConfigDscr;
243 1 ((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
244 1 High_Full_Flag = 0;
245 1
246 1 EZUSB_IRQ_CLEAR();
247 1 USBIRQ = bmURES; // Clear URES IRQ
248 1 }
249
250 void ISR_Susp(void) interrupt 0
251 {
252 1 Sleep = TRUE;
253 1 EZUSB_IRQ_CLEAR();
254 1 USBIRQ = bmSUSP;
255 1 }
256
257 void ISR_Highspeed(void) interrupt 0
258 {
259 1 if (EZUSB_HIGHSPEED())
260 1 {
261 2 pConfigDscr = pHighSpeedConfigDscr;
262 2 ((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
263 2 pOtherConfigDscr = pFullSpeedConfigDscr;
264 2 ((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
265 2 High_Full_Flag = 1;
266 2 }
267 1
268 1 EZUSB_IRQ_CLEAR();
269 1 USBIRQ = bmHSGRANT;
270 1 }
271 void ISR_Ep0ack(void) interrupt 0
272 {
273 1 }
274 void ISR_Stub(void) interrupt 0
275 {
276 1 }
277 void ISR_Ep0in(void) interrupt 0
278 {
279 1 }
280 void ISR_Ep0out(void) interrupt 0
281 {
282 1 }
283 void ISR_Ep1in(void) interrupt 0
284 {
285 1 }
286 void ISR_Ep1out(void) interrupt 0
287 {
288 1 }
289 void ISR_Ep2inout(void) interrupt 0
290 {
291 1 }
292 void ISR_Ep4inout(void) interrupt 0
293 {
294 1 }
295 void ISR_Ep6inout(void) interrupt 0
296 {
297 1 }
298 void ISR_Ep8inout(void) interrupt 0
299 {
300 1 }
301 void ISR_Ibn(void) interrupt 0
302 {
303 1 }
C51 COMPILER V8.05a PERIPH 02/09/2009 15:21:59 PAGE 6
304 void ISR_Ep0pingnak(void) interrupt 0
305 {
306 1 }
307 void ISR_Ep1pingnak(void) interrupt 0
308 {
309 1 }
310 void ISR_Ep2pingnak(void) interrupt 0
311 {
312 1 }
313 void ISR_Ep4pingnak(void) interrupt 0
314 {
315 1 }
316 void ISR_Ep6pingnak(void) interrupt 0
317 {
318 1 }
319 void ISR_Ep8pingnak(void) interrupt 0
320 {
321 1 }
322 void ISR_Errorlimit(void) interrupt 0
323 {
324 1 }
325 void ISR_Ep2piderror(void) interrupt 0
326 {
327 1 }
328 void ISR_Ep4piderror(void) interrupt 0
329 {
330 1 }
331 void ISR_Ep6piderror(void) interrupt 0
332 {
333 1 }
334 void ISR_Ep8piderror(void) interrupt 0
335 {
336 1 }
337 void ISR_Ep2pflag(void) interrupt 0
338 {
339 1 }
340 void ISR_Ep4pflag(void) interrupt 0
341 {
342 1 }
343 void ISR_Ep6pflag(void) interrupt 0
344 {
345 1 }
346 void ISR_Ep8pflag(void) interrupt 0
347 {
348 1 }
349 void ISR_Ep2eflag(void) interrupt 0
350 {
351 1 }
352 void ISR_Ep4eflag(void) interrupt 0
353 {
354 1 }
355 void ISR_Ep6eflag(void) interrupt 0
356 {
357 1 }
358 void ISR_Ep8eflag(void) interrupt 0
359 {
360 1 }
361 void ISR_Ep2fflag(void) interrupt 0
362 {
363 1 }
364 void ISR_Ep4fflag(void) interrupt 0
365 {
C51 COMPILER V8.05a PERIPH 02/09/2009 15:21:59 PAGE 7
366 1 }
367 void ISR_Ep6fflag(void) interrupt 0
368 {
369 1 }
370 void ISR_Ep8fflag(void) interrupt 0
371 {
372 1 }
373 void ISR_GpifComplete(void) interrupt 0
374 {
375 1 GpifFinishFlag = 1;
376 1
377 1 // Serial_SendString((BYTE xdata *)"done\r",5,0);
378 1 EXIF &= ~0x40;
379 1 INT4CLR = 0xFF; // automatically enabled at POR
380 1 }
381 void ISR_GpifWaveform(void) interrupt 0
382 {
383 1 EXIF &= ~0x40;
384 1 INT4CLR = 0xFF; // automatically enabled at POR
385 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 656 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 6 ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -