I have changed my RTCcustom.c file as shown:
Code:
// RTCcustom.c <[email protected]>
// Created: Dec 24, 2007
// Modified: Dec 24, 2007
// This contains function definitions of Real-Time Clock handling
// routines on DS1302 chip
#include "typedefs.h"
#include "RTCcustom.h"
static uchar picIO; // address of MCU pin controlling the IO pin of the RTC
static uchar picCE; // address of MCU pin controlling the CE pin of the RTC
static uchar picSCLK; // address of MCU pin controlling the SCLK pin of the RTC
void setRTCpin(uchar IOpin, uchar CEpin, uchar SCLKpin)
{
picIO = IOpin;
picCE = CEpin;
picSCLK = SCLKpin;
}
uchar MIOreturn(void)
{
return picIO;
}
uchar MCEreturn(void)
{
return picCE;
}
uchar MSCLKreturn(void)
{
return picSCLK;
}
and RTCcustom.h:
Code:
// RTCcustom.h <[email protected]>
// Created: Dec 24, 2007
// Modified: Dec 24, 2007
// This contains function declarations of Real-Time Clock handling
// routines on DS1302
#ifndef RTCCUSTOM_H
#define RTCCUSTOM_H
void setRTCpin(uchar IOpin, uchar CEpin, uchar SCLKpin); // set MCU pins controlling RTC
uchar MIOreturn(void); // MIO accessor
uchar MCEreturn(void); // MCE accessor
uchar MSCLKreturn(void); // MSCLK accessor
#endif
I've tried changing the names of the pin names. I haven't declared the same names in any of the source code and .h files that I know of, yet I'm getting the same complaint.
With respect to the equivalent of -e parameter supported by gcc, I don't see any support on that particular equivalent.