📄 periph.lst
字号:
229 1 EZUSB_IRQ_CLEAR();
230 1 OUT07IRQ = bmEP1;
231 1 }
232
233 void ISR_Ep2in(void) interrupt 0
234 {
235 1 }
236
237 void ISR_Ep2out(void) interrupt 0
238 {
239 1 /*int i;
240 1
241 1 if (EPIO[IN2BUF_ID].cntrl & bmEPBUSY)
C51 COMPILER V6.10 PERIPH 11/29/2002 10:53:59 PAGE 5
242 1 {
243 1 TOGCTL = 0x08 | IN2BUF_ID;
244 1 WRITEDELAY();
245 1 if (TOGCTL & 0x80)
246 1 TOGCTL |= 0x20;
247 1 else
248 1 TOGCTL |= 0x40;
249 1 }
250 1
251 1 // Loop the data to the IN endpoint
252 1 for (i=0; i < OUT2BC; i++)
253 1 {
254 1 IN2BUF[i] = ~OUT2BUF[i];
255 1 }
256 1
257 1 // Arm the IN endpoint
258 1 IN2BC = i;
259 1
260 1 // Arm the OUT so it can receive the next packet
261 1 OUT2BC = 0;
262 1
263 1 // clear the IRQ
264 1 EZUSB_IRQ_CLEAR();
265 1 OUT07IRQ = bmEP2;*/
266 1 }
267
268 void ISR_Ep3in(void) interrupt 0
269 {
270 1 }
271
272 void ISR_Ep3out(void) interrupt 0
273 {
274 1 /* int i;
275 1
276 1 if (EPIO[IN3BUF_ID].cntrl & bmEPBUSY)
277 1 {
278 1 TOGCTL = 0x08 | IN3BUF_ID;
279 1 WRITEDELAY();
280 1 if (TOGCTL & 0x80)
281 1 TOGCTL |= 0x20;
282 1 else
283 1 TOGCTL |= 0x40;
284 1 }
285 1
286 1 // Loop the data to the IN endpoint
287 1 for (i=0; i < OUT3BC; i++)
288 1 {
289 1 IN3BUF[i] = ~OUT3BUF[i];
290 1 }
291 1
292 1 // Arm the IN endpoint
293 1 IN3BC = i;
294 1
295 1 // Arm the OUT so it can receive the next packet
296 1 OUT3BC = 0;
297 1
298 1 // clear the IRQ
299 1 EZUSB_IRQ_CLEAR();
300 1 OUT07IRQ = bmEP3;*/
301 1 }
302
303 void ISR_Ep4in(void) interrupt 0
C51 COMPILER V6.10 PERIPH 11/29/2002 10:53:59 PAGE 6
304 {
305 1 }
306
307 void ISR_Ep4out(void) interrupt 0
308 {
309 1 /* int i;
310 1
311 1 if (EPIO[IN4BUF_ID].cntrl & bmEPBUSY)
312 1 {
313 1 TOGCTL = 0x08 | IN4BUF_ID;
314 1 WRITEDELAY();
315 1 if (TOGCTL & 0x80)
316 1 TOGCTL |= 0x20;
317 1 else
318 1 TOGCTL |= 0x40;
319 1 }
320 1
321 1 // Loop the data to the IN endpoint
322 1 for (i=0; i < OUT4BC; i++)
323 1 {
324 1 IN4BUF[i] = ~OUT4BUF[i];
325 1 }
326 1
327 1 // Arm the IN endpoint
328 1 IN4BC = i;
329 1
330 1 // Arm the OUT so it can receive the next packet
331 1 OUT4BC = 0;
332 1
333 1 // clear the IRQ
334 1 EZUSB_IRQ_CLEAR();
335 1 OUT07IRQ = bmEP4;*/
336 1 }
337
338 void ISR_Ep5in(void) interrupt 0
339 {
340 1 }
341
342 void ISR_Ep5out(void) interrupt 0
343 {
344 1 /*int i;
345 1
346 1 if (EPIO[IN5BUF_ID].cntrl & bmEPBUSY)
347 1 {
348 1 TOGCTL = 0x08 | IN5BUF_ID;
349 1 WRITEDELAY();
350 1 if (TOGCTL & 0x80)
351 1 TOGCTL |= 0x20;
352 1 else
353 1 TOGCTL |= 0x40;
354 1 }
355 1
356 1 // Loop the data to the IN endpoint
357 1 for (i=0; i < OUT5BC; i++)
358 1 {
359 1 IN5BUF[i] = ~OUT5BUF[i];
360 1 }
361 1
362 1 // Arm the IN endpoint
363 1 IN5BC = i;
364 1
365 1 // Arm the OUT so it can receive the next packet
C51 COMPILER V6.10 PERIPH 11/29/2002 10:53:59 PAGE 7
366 1 OUT5BC = 0;
367 1
368 1 // clear the IRQ
369 1 EZUSB_IRQ_CLEAR();
370 1 OUT07IRQ = bmEP5;*/
371 1 }
372
373 void ISR_Ep6in(void) interrupt 0
374 {
375 1 }
376
377 void ISR_Ep6out(void) interrupt 0
378 {
379 1 /*int i;
380 1
381 1 if (EPIO[IN6BUF_ID].cntrl & bmEPBUSY)
382 1 {
383 1 TOGCTL = 0x08 | IN6BUF_ID;
384 1 WRITEDELAY();
385 1 if (TOGCTL & 0x80)
386 1 TOGCTL |= 0x20;
387 1 else
388 1 TOGCTL |= 0x40;
389 1 }
390 1
391 1 // Loop the data to the IN endpoint
392 1 for (i=0; i < OUT6BC; i++)
393 1 {
394 1 IN6BUF[i] = ~OUT6BUF[i];
395 1 }
396 1
397 1 // Arm the IN endpoint
398 1 IN6BC = i;
399 1
400 1 // Arm the OUT so it can receive the next packet
401 1 OUT6BC = 0;
402 1
403 1 // clear the IRQ
404 1 EZUSB_IRQ_CLEAR();
405 1 OUT07IRQ = bmEP6;*/
406 1 }
407
408 void ISR_Ep7in(void) interrupt 0
409 {
410 1 }
411
412 void ISR_Ep7out(void) interrupt 0
413 {
414 1 /*int i;
415 1
416 1 if (EPIO[IN7BUF_ID].cntrl & bmEPBUSY)
417 1 {
418 1 TOGCTL = 0x08 | IN7BUF_ID;
419 1 WRITEDELAY();
420 1 if (TOGCTL & 0x80)
421 1 TOGCTL |= 0x20;
422 1 else
423 1 TOGCTL |= 0x40;
424 1 }
425 1
426 1 // Loop the data to the IN endpoint
427 1 for (i=0; i < OUT7BC; i++)
C51 COMPILER V6.10 PERIPH 11/29/2002 10:53:59 PAGE 8
428 1 {
429 1 IN7BUF[i] = ~OUT7BUF[i];
430 1 }
431 1
432 1 // // BUGBUG If 63 bytes was written, inject an error
433 1 // if (OUT7BC == 63)
434 1 // {
435 1 // IN7BUF[3] = IN7BUF[4];
436 1 // }
437 1
438 1 // Arm the IN endpoint
439 1 IN7BC = i;
440 1
441 1 // Arm the OUT so it can receive the next packet
442 1 OUT7BC = 0;
443 1
444 1 // clear the IRQ
445 1 EZUSB_IRQ_CLEAR();
446 1 OUT07IRQ = bmEP7;*/
447 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 391 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 3 1
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 + -