代码搜索结果
找到约 10,000 项符合
USB 的代码
usb.lst
C51 COMPILER V7.07 USB 03/24/2008 13:20:22 PAGE 1
C51 COMPILER V7.07, COMPILATION OF MODULE USB
OBJECT MODULE PLACED IN usb
usb.c
/*
* ApOS (Another Project software for s3c2410)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* pu
usb.h
/*
* ApOS (Another Project software for s3c2410)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* pu
usb.h
#ifndef _usb_h_
#define _usb_h_
#define UCHAR unsigned char
#define USHORT unsigned short
#define SWAP1(x) ((x&0xf0)4)&0x0f) //高低4位互换
#define SWAP(x) ((x&0xff)8)&0xf
usb.c
#include "sys.h"
#include "usb.h"
#include "dma.h"
#include "isr.h"
#define DMA_CHECK_ATTR 1
u_int UsbDevReq;
struct _DMACHANNEL
{
u_short used;
u_short DevID;
DMA *pDMA;
}DMAChannel[M
usb.h
/****************************************************************
NAME: usb.h
DESC: definitions(USB data structure) for USB setup operation.
Because It's h/w independent file, it may be us
usb.h
// Public Constants
#define URB_LENGTH 32
#define BUFFER_LENGTH 1024
#define SETUP_REQUEST_LENGTH 8
// ******bmRequestType of USB Command**********
// Data Transfer D