4.4.1 Generic Header File
A single header file <xc.h>
must be used to declare
all compiler- and device-specific types and SFRs. You must include this file into
every module to conform with the CCI. Some CCI definitions depend on this header being
seen.
Example
The following shows this header file being included, thus allowing conformance with the CCI, as well as allowing access to SFRs.
#include <xc.h>
Differences
Some 8-bit compilers used <htc.h>
as the equivalent header. Previous
versions of the 16- and 32-bit compilers used a variety of headers to do the same job.
Migration to the CCI
Change:
#include <htc.h>
#include <p32xxxx.h>
#include <p30fxxxx.h>
#include <p33Fxxxx.h>
#include <p24Fxxxx.h>
#include "p30f6014.h"
to:
#include <xc.h>