Continue to Site

Welcome to EDAboard.com

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.

Recent content by avov

  1. A

    syntax error in header file

    Thank you everyone for help. It is sorted now. Regards, Avov.
  2. A

    syntax error in header file

    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 =...
  3. A

    syntax error in header file

    Thanks for yours answers. If I use #indef --endif: #ifdef __18F452 #include <p18cxxx.h> #endif void InitialiseLED(void) { TRISB = 0xF0; // In binary 0b1111000 four higher bits - input; four lower bits - output } void LED_Off(void) { PORTB&=(~0x01); //Turn LED0 off; first bitwise NOT...
  4. A

    syntax error in header file

    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...

Part and Inventory Search

Back
Top