USB-BDI
M:/USB-BDI/USB-BDI/Firmware/MPC555-USB-BDI/include/usbpdi_common.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2006 Free Software Foundation, Inc.
00003  * 
00004  * This file is part of the NTB MPC55 USB BDI Firmware
00005  * 
00006  * USB PDI is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2, or (at your option)
00009  * any later version.
00010  * 
00011  * USB PDI is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with USB PDI; see the file COPYING.  If not, write to
00018  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019  * Boston, MA 02111-1307, USA.
00020  */
00021 
00059 /*
00060  * common defines and prototypes for USB PDI
00061  *
00062  * In comments below "TRM" refers to the EZ-USB FX2 Technical Reference Manual
00063  */
00064 
00065 #ifndef _USBPDI_COMMON_H_
00066 #define _USBPDI_COMMON_H_
00067 
00068 #include "usbpdi_regs.h"
00069 #include "syncdelay.h"
00070 
00074 #define TRUE            1
00075 
00078 #define FALSE           0
00079 
00083 #define MSB(x)  (((unsigned short) x) >> 8)
00084 
00087 #define LSB(x)  (((unsigned short) x) & 0xff)
00088 
00089 void initCPU(void);
00090 void initEndpoint0(void);
00091 void initIOPorts(void);
00092 
00093 #endif /* _USBPDI_COMMON_H_ */
 All Files Functions Variables Defines