Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Thank you for your answers.
So now my code is that:
main.c
#include <LED.h>
void main(void)
{
InitialiseLED();
LED_Off();
LED_On();
while(1){};// pause execution here
}
LED.c
#ifdef __18F452
#include <p18cxxx.h>
#elif _16F877A
#endif
#include <LED.h>
void InitialiseLED(void)
{
TRISB =...
Hello,
Can some one explain me how to sort out the fault - LED.h:3:Error: syntax error. I can't see any syntax error in LED.h file:-(
In my LED.h file is the following code:
extern void InitialiseLED(void);
extern void LED_Off(void);
extern void LED_On(void);
here is LED.c file
#include...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.