what id difrnce btwn #include "htc.h" and #include<pic.h>

Discussion in 'Embedded Systems and Microcontrollers' started by abeychandran, Feb 28, 2012.

  1. abeychandran

    Thread Starter New Member

    Feb 7, 2012
    17
    0
    please explain the difference between
    #include "htc.h" and #include<pic.h>
     
  2. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    "htc.h" includes from the directory where your c files are, <pic.h> includes from standard library
     
    abeychandran likes this.
  3. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    Aren't both those files in the standard library.

    Difference between "" and <> is:

    "" - files in project folder
    <> - files in standard library


    I might be wrong and confused here...
     
    abeychandran likes this.
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,388
    1,605
    Code ( (Unknown Language)):
    1.  
    2.    #include "filename"
    3.  
    4. or
    5.  
    6.    #include <filename>
    7.  
    An "implementation-defined rule" means you need to RTFM for your specific compiler. :)
     
  5. be80be

    Senior Member

    Jul 5, 2008
    431
    57
    Your all wrong some what #include "htc.h" calls pic.h

    pic.h tells the compiler how to handle chip setup osc for delay timing.

    You only need #include "htc.h" in your main.c file. But if you use pic.h it will call htc.h

    htc.h checks what compiler your using if you have pro or lite pic 12f to pic 32 your chips .inc files
     
    Last edited: Feb 29, 2012
Loading...