USB-BDI
|
headerfile for usbpdi_common.c More...
Go to the source code of this file.
Defines | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | MSB(x) (((unsigned short) x) >> 8) |
#define | LSB(x) (((unsigned short) x) & 0xff) |
Functions | |
void | initCPU (void) |
This method sets the CPU's and the FIFO's clock frequency. | |
void | initEndpoint0 (void) |
This method initialize endpoint 0. | |
void | initIOPorts (void) |
This method configures all IO ports. |
headerfile for usbpdi_common.c
From TRM page 15-105:
Under certain conditions, some read and write access to the FX2 registers must be separated by a "synchronization delay". The delay is necessary only under the following conditions:
Registers which require a synchronization delay:
FIFORESET FIFOPINPOLAR INPKTEND EPxBCH:L EPxFIFOPFH:L EPxAUTOINLENH:L EPxFIFOCFG EPxGPIFFLGSEL PINFLAGSAB PINFLAGSCD EPxFIFOIE EPxFIFOIRQ GPIFIE GPIFIRQ UDMACRCH:L GPIFADRH:L GPIFTRIG EPxGPIFTRIG OUTPKTEND REVCTL GPIFTCB3 GPIFTCB2 GPIFTCB1 GPIFTCB0
Definition in file usbpdi_common.h.
#define FALSE 0 |
Used for simulating booleans
Definition at line 78 of file usbpdi_common.h.
#define LSB | ( | x | ) | (((unsigned short) x) & 0xff) |
Used to get the lower byte of a short value
Definition at line 87 of file usbpdi_common.h.
#define MSB | ( | x | ) | (((unsigned short) x) >> 8) |
Used to get the upper byte of a short value
Definition at line 83 of file usbpdi_common.h.
#define TRUE 1 |
Used for simulating booleans
Definition at line 74 of file usbpdi_common.h.