USB-BDI
M:/USB-BDI/USB-BDI/Firmware/MPC555-USB-BDI/include/usb_common.h
Go to the documentation of this file.
00001 /*      USB-BDI Used for programming and debugging a MPC555 over USB
00002  * 
00003  *  Copyright 2005 NTB Interstate University of Applied Sciences of Technology Buchs
00004  *
00005  *  This program is free software: you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation, either version 3 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  */
00015 
00024 #include "fx2regs.h"
00025 
00026 #ifndef _USB_COMMON_H_
00027 #define _USB_COMMON_H_
00028 
00029 extern volatile __bit _usb_got_SUDAV;
00030 
00032 #define bRequestType    SETUPDAT[0]
00033 
00034 #define bRequest        SETUPDAT[1]
00035 
00036 #define wValueL         SETUPDAT[2]
00037 
00038 #define wValueH         SETUPDAT[3]
00039 
00040 #define wIndexL         SETUPDAT[4]
00041 
00042 #define wIndexH         SETUPDAT[5]
00043 
00044 #define wLengthL        SETUPDAT[6]
00045 
00046 #define wLengthH        SETUPDAT[7]
00047 
00048 extern volatile __bit _usb_highspeed_granted;
00049 
00050 void handelSetupPackages(void);
00051 void usb_install_handlers (void);
00052 
00054 #define usb_setup_packet_avail()        _usb_got_SUDAV
00055 
00056 #endif /* _USB_COMMON_H_ */
 All Files Functions Variables Defines