10-56
BajaPPC-750: Monitor
struct Fifo {
unsigned char *Top;
unsigned char *Bottom;
int Length;
unsigned char *Front;
unsigned char *Rear;
int Count;
} Fifo;
The function
InitFifo
initializes the FIFO control structure specified by
FPtr
to use the unsigned character buffer starting at
StartAddr
that is of size
Length
.
The function
ToFifo
writes the byte
c
to the specified FIFO. This function
returns TRUE if there is room in the FIFO (before adding
c
to the FIFO), or
FALSE if the FIFO is full.
The function
FromFifo
reads a byte from the specified FIFO. If a character is
available, it is written to the address specified by the pointer
Ptr
and the func-
tion returns TRUE. If no character is available, the function returns FALSE.
10.15.10 Initialize Ethernet Address
SYNOPSIS
void ConfigEthernet(int serialnum)
DESCRIPTION
The function
ConfigEthernet
sets the Ethernet address of the board. It com-
bines the decimal serial number with the company code and product ID to
form the 6-byte address. When prompted, select the appropriate product
name to configure the corresponding ID in the ethernet address. The
Ether-
netAddr
command displays the current address.
10.15.11 Interrupts
SYNOPSIS
void maskints(void)
void unmaskints(void)
DESCRIPTION
The functions
unmaskints
and
maskints
are used to enable and disable
external interrupts at the processor.
Summary of Contents for BajaPPC-750
Page 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 7: ......
Page 19: ...xii BajaPPC 750 Contents...
Page 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Page 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Page 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Page 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Page 207: ...10 68 BajaPPC 750 Monitor May 2002...