main.c(13): error C267: 'DS1302_WriteByte': requires ANSI-style prototype
#include <REGX52.H>
#include"LCD1602.H"
#include"DS1302.H"
void DS1302_WriteByte();
unsigned char Second;
void main()
{
LCD_Init();
DS1302_Init();
LCD_ShowString(1,1,"RTC");
DS1302_WriteByte(0x80,0x03);
Second=DS1302_ReadByte(0x81);
LCD_ShowNum(2,1,Second,3);
while(1)
{
}
}
#include <REGX52.H>
#include"LCD1602.H"
#include"DS1302.H"
void DS1302_WriteByte();
unsigned char Second;
void main()
{
LCD_Init();
DS1302_Init();
LCD_ShowString(1,1,"RTC");
DS1302_WriteByte(0x80,0x03);
Second=DS1302_ReadByte(0x81);
LCD_ShowNum(2,1,Second,3);
while(1)
{
}
}
#include <REGX52.H>
#include"LCD1602.H"
#include"DS1302.H"
void DS1302_WriteByte();
unsigned char Second;
void main()
{
LCD_Init();
DS1302_Init();
LCD_ShowString(1,1,"RTC");
DS1302_WriteByte(0x80,0x03);
Second=DS1302_ReadByte(0x81);
LCD_ShowNum(2,1,Second,3);
while(1)
{
}
}
|