101 305 Inconsistent type *.c

Fully featured AVR compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
ali genidy
Posts: 54
Joined: 03 Apr 2017 09:17

101 305 Inconsistent type *.c

#1 Post by ali genidy » 19 Sep 2022 07:46

can any body help me with this error
305 Inconsistent type *.c
i am using Mikroc for AVR ver.7.0.1

sgssn
Posts: 35
Joined: 13 Sep 2021 16:24

Re: 101 305 Inconsistent type *.c

#2 Post by sgssn » 19 Sep 2022 12:34

Hi
can you open the file, using a standard editor?

Gerhard

ali genidy
Posts: 54
Joined: 03 Apr 2017 09:17

Re: 101 305 Inconsistent type *.c

#3 Post by ali genidy » 19 Sep 2022 23:06

yes i opened it as standard editor but the same issue

ali genidy
Posts: 54
Joined: 03 Apr 2017 09:17

Re: 101 305 Inconsistent type *.c

#4 Post by ali genidy » 19 Sep 2022 23:47

this is my project you can try it and pleas tell me what can i do
Attachments
AVR mainboard.rar
(47.46 KiB) Downloaded 147 times

sgssn
Posts: 35
Joined: 13 Sep 2021 16:24

Re: 101 305 Inconsistent type *.c

#5 Post by sgssn » 20 Sep 2022 10:24

Hi
in your file EDMainboard.c there seems to be a bug:
>
//variables
unsigned short Freq ,DutyC ,Val1, Val2 ;
char Pon , Poff , Ch ,Mspeed ;
int <----
void MCU_init()
<

What should be that "int" without a variable? delete that "int" before your function "void MCU_init()" and try again.

regards
Gerhard

Post Reply

Return to “AVR AI Compilers”