📄 periph.lst
字号:
235 2 SYNCDELAY;
236 2 EP6AUTOINLENH = 0x00; //ep6 auto commit length 512
237 2 SYNCDELAY;
238 2 EP6AUTOINLENL = 0x40;
239 2 SYNCDELAY;
240 2 }
241 1 return(TRUE); // Handled by user code
C51 COMPILER V8.02 PERIPH 04/02/2008 15:31:31 PAGE 5
242 1 }
243
244 BOOL DR_GetConfiguration(void) // Called when a Get Configuration command is received
245 {
246 1 EP0BUF[0] = Configuration;
247 1 EP0BCH = 0;
248 1 EP0BCL = 1;
249 1 return(TRUE); // Handled by user code
250 1 }
251
252 BOOL DR_SetInterface(void) // Called when a Set Interface command is received
253 {
254 1 AlternateSetting = SETUPDAT[2];
255 1 return(TRUE); // Handled by user code
256 1 }
257
258 BOOL DR_GetInterface(void) // Called when a Set Interface command is received
259 {
260 1 EP0BUF[0] = AlternateSetting;
261 1 EP0BCH = 0;
262 1 EP0BCL = 1;
263 1 return(TRUE); // Handled by user code
264 1 }
265
266 BOOL DR_GetStatus(void)
267 {
268 1 return(TRUE);
269 1 }
270
271 BOOL DR_ClearFeature(void)
272 {
273 1 return(TRUE);
274 1 }
275
276 BOOL DR_SetFeature(void)
277 {
278 1 return(TRUE);
279 1 }
280
281 BOOL DR_VendorCmnd(void)
282 {
283 1 return(TRUE);
284 1 }
285
286 //-----------------------------------------------------------------------------
287 // USB Interrupt Handlers
288 // The following functions are called by the USB interrupt jump table.
289 //-----------------------------------------------------------------------------
290
291 // Setup Data Available Interrupt Handler
292 void ISR_Sudav(void) interrupt 0
293 {
294 1 GotSUD = TRUE; // Set flag
295 1 EZUSB_IRQ_CLEAR();
296 1 USBIRQ = bmSUDAV; // Clear SUDAV IRQ
297 1 }
298
299 // Setup Token Interrupt Handler
300 void ISR_Sutok(void) interrupt 0
301 {
302 1 EZUSB_IRQ_CLEAR();
303 1 USBIRQ = bmSUTOK; // Clear SUTOK IRQ
C51 COMPILER V8.02 PERIPH 04/02/2008 15:31:31 PAGE 6
304 1 }
305
306 void ISR_Sof(void) interrupt 0
307 {
308 1 EZUSB_IRQ_CLEAR();
309 1 USBIRQ = bmSOF; // Clear SOF IRQ
310 1 }
311
312 void ISR_Ures(void) interrupt 0
313 {
314 1 // whenever we get a USB reset, we should revert to full speed mode
315 1 pConfigDscr = pFullSpeedConfigDscr;
316 1 ((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
317 1 pOtherConfigDscr = pHighSpeedConfigDscr;
318 1 ((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
319 1 High_Full_Flag = 0;
320 1
321 1 EZUSB_IRQ_CLEAR();
322 1 USBIRQ = bmURES; // Clear URES IRQ
323 1 }
324
325 void ISR_Susp(void) interrupt 0
326 {
327 1 Sleep = TRUE;
328 1 EZUSB_IRQ_CLEAR();
329 1 USBIRQ = bmSUSP;
330 1 }
331
332 void ISR_Highspeed(void) interrupt 0
333 {
334 1 if (EZUSB_HIGHSPEED())
335 1 {
336 2 pConfigDscr = pHighSpeedConfigDscr;
337 2 ((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
338 2 pOtherConfigDscr = pFullSpeedConfigDscr;
339 2 ((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
340 2 High_Full_Flag = 1;
341 2 }
342 1
343 1 EZUSB_IRQ_CLEAR();
344 1 USBIRQ = bmHSGRANT;
345 1 }
346
347 void ISR_Ep0ack(void) interrupt 0
348 {
349 1 }
350 void ISR_Stub(void) interrupt 0
351 {
352 1 }
353 void ISR_Ep0in(void) interrupt 0
354 {
355 1 }
356 void ISR_Ep0out(void) interrupt 0
357 {
358 1 }
359 void ISR_Ep1in(void) interrupt 0
360 {
361 1 }
362 void ISR_Ep1out(void) interrupt 0
363 {
364 1 }
365 void ISR_Ep2inout(void) interrupt 0
C51 COMPILER V8.02 PERIPH 04/02/2008 15:31:31 PAGE 7
366 {
367 1 }
368 void ISR_Ep4inout(void) interrupt 0
369 {
370 1 }
371 void ISR_Ep6inout(void) interrupt 0
372 {
373 1 }
374 void ISR_Ep8inout(void) interrupt 0
375 {
376 1 }
377 void ISR_Ibn(void) interrupt 0
378 {
379 1 }
380 void ISR_Ep0pingnak(void) interrupt 0
381 {
382 1 }
383 void ISR_Ep1pingnak(void) interrupt 0
384 {
385 1 }
386 void ISR_Ep2pingnak(void) interrupt 0
387 {
388 1 }
389 void ISR_Ep4pingnak(void) interrupt 0
390 {
391 1 }
392 void ISR_Ep6pingnak(void) interrupt 0
393 {
394 1 }
395 void ISR_Ep8pingnak(void) interrupt 0
396 {
397 1 }
398 void ISR_Errorlimit(void) interrupt 0
399 {
400 1 }
401 void ISR_Ep2piderror(void) interrupt 0
402 {
403 1 }
404 void ISR_Ep4piderror(void) interrupt 0
405 {
406 1 }
407 void ISR_Ep6piderror(void) interrupt 0
408 {
409 1 }
410 void ISR_Ep8piderror(void) interrupt 0
411 {
412 1 }
413 void ISR_Ep2pflag(void) interrupt 0
414 {
415 1 }
416 void ISR_Ep4pflag(void) interrupt 0
417 {
418 1 }
419 void ISR_Ep6pflag(void) interrupt 0
420 {
421 1 }
422 void ISR_Ep8pflag(void) interrupt 0
423 {
424 1 }
425 void ISR_Ep2eflag(void) interrupt 0
426 {
427 1 }
C51 COMPILER V8.02 PERIPH 04/02/2008 15:31:31 PAGE 8
428 void ISR_Ep4eflag(void) interrupt 0
429 {
430 1 }
431 void ISR_Ep6eflag(void) interrupt 0
432 {
433 1 }
434 void ISR_Ep8eflag(void) interrupt 0
435 {
436 1 }
437 void ISR_Ep2fflag(void) interrupt 0
438 {
439 1 }
440 void ISR_Ep4fflag(void) interrupt 0
441 {
442 1 }
443 void ISR_Ep6fflag(void) interrupt 0
444 {
445 1 }
446 void ISR_Ep8fflag(void) interrupt 0
447 {
448 1 }
449 void ISR_GpifComplete(void) interrupt 0
450 {
451 1 // GpifFinishFlag = 1;
452 1 EXIF &= ~0x40;
453 1 INT4CLR = 0xFF; // automatically enabled at POR
454 1 }
455 void ISR_GpifWaveform(void) interrupt 0
456 {
457 1
458 1 EXIF &= ~0x40;
459 1 INT4CLR = 0xFF; // automatically enabled at POR
460 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 650 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 3 ----
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 + -