User manual

Table Of Contents
288
mikoC PRO for PIC32
MikroElektronika
External dependencies of Compact Flash Library
The following variables must
be dened in all projects
using Compact Flash Library:
Description: Example:
extern sfr unsigned int
CF_Data_Port;
Compact Flash Data Port.
char CF_Data_Port at PORTF;
extern sfr sbit CF_RDY;
Ready signal line.
sbit CF_RDY at RD7_bit;
extern sfr sbit CF_WE;
Write Enable signal line.
sbit CF_WE at RD6_bit;
extern sfr sbit CF_OE;
Output Enable signal line.
sbit CF_OE at RD5_bit;
extern sfr sbit CF_CD1;
Chip Detect signal line.
sbit CF_CD1 at RD4_bit;
extern sfr sbit CF_CE1;
Chip Enable signal line.
sbit CF_CE1 at RD3_bit;
extern sfr sbit CF_A2;
Address pin 2.
sbit CF_A2 at RD2_bit;
extern sfr sbit CF_A1;
Address pin 1.
sbit CF_A1 at RD1_bit;
extern sfr sbit CF_A0;
Address pin 0.
sbit CF_A0 at RD0_bit;
extern sfr sbit CF_RDY_
direction;
Direction of the Ready pin.
sbit CF_RDY_direction at TRISD7_bit;
extern sfr sbit CF_WE_
direction;
Direction of the Write Enable pin.
sbit CF_WE_direction at TRISDB6_bit;
extern sfr sbit CF_OE_
direction;
Direction of the Output Enable pin.
sbit CF_OE_direction at TRISD5_bit;
extern sfr sbit CF_CD1_
direction;
Direction of the Chip Detect pin.
sbit CF_CD1_direction at TRISD4_bit;
extern sfr sbit CF_CE1_
direction;
Direction of the Chip Enable pin.
sbit CF_CE1_direction at TRISD3_bit;
extern sfr sbit CF_A2_
direction;
Direction of the Address 2 pin.
sbit CF_A2_direction at TRISD2_bit;
extern sfr sbit CF_A1_
direction;
Direction of the Address 1 pin.
sbit CF_A1_direction at TRISD1_bit;
extern sfr sbit CF_A0_
direction;
Direction of the Address 0 pin.
sbit CF_A0_direction at TRISD0_bit;