标题: 第一排是报错,可以帮忙看一下吗error C267:requires ANSI-style prototype [打印本页]

作者: 小手办的守护神    时间: 2024-1-20 17:49
标题: 第一排是报错,可以帮忙看一下吗error C267:requires ANSI-style prototype
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)
        {

        }               
}






作者: Hephaestus    时间: 2024-1-20 21:34
void DS1302_WriteByte(void);




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1