📄 bulkloop.lst
字号:
208 {
209 1 return(TRUE);
210 1 }
211
212 BOOL DR_SetFeature(void)
213 {
214 1 return(TRUE);
215 1 }
216
217 BOOL DR_VendorCmnd(void)
218 {
219 1 BYTE tmp;
220 1
221 1 switch (SETUPDAT[1])
222 1 {
223 2 case VR_NAKALL_ON:
224 2 tmp = FIFORESET;
225 2 tmp |= bmNAKALL;
226 2 SYNCDELAY;
227 2 FIFORESET = tmp;
228 2 break;
229 2 case VR_NAKALL_OFF:
230 2 tmp = FIFORESET;
231 2 tmp &= ~bmNAKALL;
232 2 SYNCDELAY;
233 2 FIFORESET = tmp;
234 2 break;
235 2 default:
236 2 return(TRUE);
237 2 }
238 1
239 1 return(FALSE);
240 1 }
241
C51 COMPILER V7.07 BULKLOOP 06/08/2007 15:20:10 PAGE 5
242 //-----------------------------------------------------------------------------
243 // USB Interrupt Handlers
244 // The following functions are called by the USB interrupt jump table.
245 //-----------------------------------------------------------------------------
246
247 // Setup Data Available Interrupt Handler
248 void ISR_Sudav(void) interrupt 0
249 {
250 1 GotSUD = TRUE; // Set flag
251 1 EZUSB_IRQ_CLEAR();
252 1 USBIRQ = bmSUDAV; // Clear SUDAV IRQ
253 1 }
254
255 // Setup Token Interrupt Handler
256 void ISR_Sutok(void) interrupt 0
257 {
258 1 EZUSB_IRQ_CLEAR();
259 1 USBIRQ = bmSUTOK; // Clear SUTOK IRQ
260 1 }
261
262 void ISR_Sof(void) interrupt 0
263 {
264 1 EZUSB_IRQ_CLEAR();
265 1 USBIRQ = bmSOF; // Clear SOF IRQ
266 1 }
267
268 void ISR_Ures(void) interrupt 0
269 {
270 1 // whenever we get a USB reset, we should revert to full speed mode
271 1 pConfigDscr = pFullSpeedConfigDscr;
272 1 ((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
273 1 pOtherConfigDscr = pHighSpeedConfigDscr;
274 1 ((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
275 1
276 1 EZUSB_IRQ_CLEAR();
277 1 USBIRQ = bmURES; // Clear URES IRQ
278 1 }
279
280 void ISR_Susp(void) interrupt 0
281 {
282 1 Sleep = TRUE;
283 1 EZUSB_IRQ_CLEAR();
284 1 USBIRQ = bmSUSP;
285 1 }
286
287 void ISR_Highspeed(void) interrupt 0
288 {
289 1 if (EZUSB_HIGHSPEED())
290 1 {
291 2 pConfigDscr = pHighSpeedConfigDscr;
292 2 ((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
293 2 pOtherConfigDscr = pFullSpeedConfigDscr;
294 2 ((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
295 2 }
296 1
297 1 EZUSB_IRQ_CLEAR();
298 1 USBIRQ = bmHSGRANT;
299 1 }
300 void ISR_Ep0ack(void) interrupt 0
301 {
302 1 }
303 void ISR_Stub(void) interrupt 0
C51 COMPILER V7.07 BULKLOOP 06/08/2007 15:20:10 PAGE 6
304 {
305 1 }
306 void ISR_Ep0in(void) interrupt 0
307 {
308 1 }
309 void ISR_Ep0out(void) interrupt 0
310 {
311 1 }
312 void ISR_Ep1in(void) interrupt 0
313 {
314 1 }
315 void ISR_Ep1out(void) interrupt 0
316 {
317 1 }
318 void ISR_Ep2inout(void) interrupt 0
319 {
320 1 }
321 void ISR_Ep4inout(void) interrupt 0
322 {
323 1 }
324 void ISR_Ep6inout(void) interrupt 0
325 {
326 1 }
327 void ISR_Ep8inout(void) interrupt 0
328 {
329 1 }
330 void ISR_Ibn(void) interrupt 0
331 {
332 1 }
333 void ISR_Ep0pingnak(void) interrupt 0
334 {
335 1 }
336 void ISR_Ep1pingnak(void) interrupt 0
337 {
338 1 }
339 void ISR_Ep2pingnak(void) interrupt 0
340 {
341 1 }
342 void ISR_Ep4pingnak(void) interrupt 0
343 {
344 1 }
345 void ISR_Ep6pingnak(void) interrupt 0
346 {
347 1 }
348 void ISR_Ep8pingnak(void) interrupt 0
349 {
350 1 }
351 void ISR_Errorlimit(void) interrupt 0
352 {
353 1 }
354 void ISR_Ep2piderror(void) interrupt 0
355 {
356 1 }
357 void ISR_Ep4piderror(void) interrupt 0
358 {
359 1 }
360 void ISR_Ep6piderror(void) interrupt 0
361 {
362 1 }
363 void ISR_Ep8piderror(void) interrupt 0
364 {
365 1 }
C51 COMPILER V7.07 BULKLOOP 06/08/2007 15:20:10 PAGE 7
366 void ISR_Ep2pflag(void) interrupt 0
367 {
368 1 }
369 void ISR_Ep4pflag(void) interrupt 0
370 {
371 1 }
372 void ISR_Ep6pflag(void) interrupt 0
373 {
374 1 }
375 void ISR_Ep8pflag(void) interrupt 0
376 {
377 1 }
378 void ISR_Ep2eflag(void) interrupt 0
379 {
380 1 }
381 void ISR_Ep4eflag(void) interrupt 0
382 {
383 1 }
384 void ISR_Ep6eflag(void) interrupt 0
385 {
386 1 }
387 void ISR_Ep8eflag(void) interrupt 0
388 {
389 1 }
390 void ISR_Ep2fflag(void) interrupt 0
391 {
392 1 }
393 void ISR_Ep4fflag(void) interrupt 0
394 {
395 1 }
396 void ISR_Ep6fflag(void) interrupt 0
397 {
398 1 }
399 void ISR_Ep8fflag(void) interrupt 0
400 {
401 1 }
402 void ISR_GpifComplete(void) interrupt 0
403 {
404 1 }
405 void ISR_GpifWaveform(void) interrupt 0
406 {
407 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 652 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 2 4
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 + -