User`s manual
User’s Manual Software Reference 3–3
3.2 Dynamic C Libraries
With Dynamic C running, click File > Open, and
select Lib. The following list of Dynamic C librar-
ies will be displayed.
There is no unique library that is specific to the Rab-
bitCore RCM2200. The functions in the above
libraries are described in the Dynamic C Premier
User’s Manual.
3.2.1 I/O
The RabbitCore RCM2200 was designed to inter-
face with other systems, and so there are no drivers
written specifically for the I/O. The general
Dynamic C read and write functions allow you to
customize the parallel I/O to meet your specific
needs. For example, use
WrPortI(PEDDR, &PEDDRShadow,
0x00);
to set all the port E bits as inputs, or use
WrPortI(PEDDR, &PEDDRShadow,
0xFF);
to set all the port E bits as outputs.
The sample programs in the Dynamic C SAM-
PLES/RCM2200 directory provide further exam-
ples.
3.2.2 Serial Communication Drivers
The Prototyping Board has room for an RS-232 chip
for which the Rabbit serial library,
RS232.LIB
,
provides a set of functions that send and receive
entire blocks of data without yielding to other tasks,
a set of single-user cofunctions that send and receive
data but yield to other tasks, and a set of circular
buffer functions.
The naming convention is serXfn:
ser—serial
X—the port being used: A, B,
C, or D
fn - the function being imple-
mented
For example, serBgetc() is the serial port B
function getc(), which returns a character.
The Rabbit serial functions are listed in the follow-
ing groups.
Open and Close Functions
Non-Cofunction Blocking
Input Functions
Non-Cofunction Blocking Out-
put Functions
Single-User Cofunction Input
Functions
Single-User Cofunction Output
Functions
Circular Buffer Functions