Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 User Manual
Product codes
SW006021-1
MPLAB
®
XC8 C COMPILER
USER’S GUIDE
2012 Microchip Technology Inc.
DS52053B-page 313
Appendix A. Library Functions
The functions and preprocessor macros within the standard compiler library are alpha-
betically listed in this chapter.
betically listed in this chapter.
The synopsis indicates the header file in which a declaration or definition for function
or macro is found. It also shows the function prototype for functions, or the equivalent
prototype for macros.
or macro is found. It also shows the function prototype for functions, or the equivalent
prototype for macros.
__CONFIG (BASELINE & MID-RANGE DEVICES)
Synopsis
#include <xc.h>
__CONFIG(data)
Description
This macro is used to program the configuration fuses that set the device’s operating
modes.
modes.
The macro assumes the argument is a16-bit value, which will be used to program the
configuration bits.
configuration bits.
16-bit masks have been defined to describe each programmable attribute available on
each device. These masks can be found in the chip-specific header files included via
<xc.h>
each device. These masks can be found in the chip-specific header files included via
<xc.h>
.
Multiple attributes can be selected by ANDing them together.
Example
#include <xc.h>
__CONFIG(RC & UNPROTECT)
void
main (void)
{
}
See also
__EEPROM_DATA()
, __IDLOC(), __IDLOC7(), CONFIG() (PIC18)