Skip to content

Commit

Permalink
Merge pull request #212 from MikroElektronika/improvement/xc8-rework
Browse files Browse the repository at this point in the history
Updated header files for XC8 toolchain.
  • Loading branch information
StrahinjaJacimovic authored Dec 10, 2024
2 parents c3278d5 + f9ee8fa commit 087992f
Show file tree
Hide file tree
Showing 806 changed files with 14,337 additions and 14,337 deletions.
18 changes: 9 additions & 9 deletions PIC/XC8/def/PIC10F320/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ typedef union {
unsigned nWPUEN :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x00E);
Expand Down Expand Up @@ -652,10 +652,10 @@ asm("TMR2 equ 011h");
#endif

// Register: PR2
#define PR2 PR2
extern volatile unsigned char PR2 __at(0x012);
#define _PR2 _PR2 // Note: Changed by MikroE
extern volatile unsigned char _PR2 __at(0x012); // Note: Changed by MikroE
#ifndef _LIB_BUILD
asm("PR2 equ 012h");
asm("_PR2 equ 012h"); // Note: Changed by MikroE
#endif

// Register: T2CON
Expand Down Expand Up @@ -3928,13 +3928,13 @@ extern volatile __bit PMADR8 __at(0x108); // @ (0
extern volatile __bit POL __at(0x1A7); // @ (0x34 * 8 + 7)
#define POL_bit _BIT_ACCESS(CLC1POL,7)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x70); // @ (0xE * 8 + 0)
extern volatile __bit _PS0 __at(0x70); // @ (0xE * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x71); // @ (0xE * 8 + 1)
extern volatile __bit _PS1 __at(0x71); // @ (0xE * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x72); // @ (0xE * 8 + 2)
extern volatile __bit _PS2 __at(0x72); // @ (0xE * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x73); // @ (0xE * 8 + 3)
Expand Down
18 changes: 9 additions & 9 deletions PIC/XC8/def/PIC10F322/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ typedef union {
unsigned nWPUEN :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x00E);
Expand Down Expand Up @@ -652,10 +652,10 @@ asm("TMR2 equ 011h");
#endif

// Register: PR2
#define PR2 PR2
extern volatile unsigned char PR2 __at(0x012);
#define _PR2 _PR2 // Note: Changed by MikroE
extern volatile unsigned char _PR2 __at(0x012); // Note: Changed by MikroE
#ifndef _LIB_BUILD
asm("PR2 equ 012h");
asm("_PR2 equ 012h"); // Note: Changed by MikroE
#endif

// Register: T2CON
Expand Down Expand Up @@ -3928,13 +3928,13 @@ extern volatile __bit PMADR8 __at(0x108); // @ (0
extern volatile __bit POL __at(0x1A7); // @ (0x34 * 8 + 7)
#define POL_bit _BIT_ACCESS(CLC1POL,7)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x70); // @ (0xE * 8 + 0)
extern volatile __bit _PS0 __at(0x70); // @ (0xE * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x71); // @ (0xE * 8 + 1)
extern volatile __bit _PS1 __at(0x71); // @ (0xE * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x72); // @ (0xE * 8 + 2)
extern volatile __bit _PS2 __at(0x72); // @ (0xE * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x73); // @ (0xE * 8 + 3)
Expand Down
18 changes: 9 additions & 9 deletions PIC/XC8/def/PIC10LF320/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ typedef union {
unsigned nWPUEN :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x00E);
Expand Down Expand Up @@ -652,10 +652,10 @@ asm("TMR2 equ 011h");
#endif

// Register: PR2
#define PR2 PR2
extern volatile unsigned char PR2 __at(0x012);
#define _PR2 _PR2 // Note: Changed by MikroE
extern volatile unsigned char _PR2 __at(0x012); // Note: Changed by MikroE
#ifndef _LIB_BUILD
asm("PR2 equ 012h");
asm("_PR2 equ 012h"); // Note: Changed by MikroE
#endif

// Register: T2CON
Expand Down Expand Up @@ -3928,13 +3928,13 @@ extern volatile __bit PMADR8 __at(0x108); // @ (0
extern volatile __bit POL __at(0x1A7); // @ (0x34 * 8 + 7)
#define POL_bit _BIT_ACCESS(CLC1POL,7)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x70); // @ (0xE * 8 + 0)
extern volatile __bit _PS0 __at(0x70); // @ (0xE * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x71); // @ (0xE * 8 + 1)
extern volatile __bit _PS1 __at(0x71); // @ (0xE * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x72); // @ (0xE * 8 + 2)
extern volatile __bit _PS2 __at(0x72); // @ (0xE * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x73); // @ (0xE * 8 + 3)
Expand Down
18 changes: 9 additions & 9 deletions PIC/XC8/def/PIC10LF322/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ typedef union {
unsigned nWPUEN :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x00E);
Expand Down Expand Up @@ -652,10 +652,10 @@ asm("TMR2 equ 011h");
#endif

// Register: PR2
#define PR2 PR2
extern volatile unsigned char PR2 __at(0x012);
#define _PR2 _PR2 // Note: Changed by MikroE
extern volatile unsigned char _PR2 __at(0x012); // Note: Changed by MikroE
#ifndef _LIB_BUILD
asm("PR2 equ 012h");
asm("_PR2 equ 012h"); // Note: Changed by MikroE
#endif

// Register: T2CON
Expand Down Expand Up @@ -3928,13 +3928,13 @@ extern volatile __bit PMADR8 __at(0x108); // @ (0
extern volatile __bit POL __at(0x1A7); // @ (0x34 * 8 + 7)
#define POL_bit _BIT_ACCESS(CLC1POL,7)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x70); // @ (0xE * 8 + 0)
extern volatile __bit _PS0 __at(0x70); // @ (0xE * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x71); // @ (0xE * 8 + 1)
extern volatile __bit _PS1 __at(0x71); // @ (0xE * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x72); // @ (0xE * 8 + 2)
extern volatile __bit _PS2 __at(0x72); // @ (0xE * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x73); // @ (0xE * 8 + 3)
Expand Down
12 changes: 6 additions & 6 deletions PIC/XC8/def/PIC12C671/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ typedef union {
unsigned nGPPU :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x081);
Expand Down Expand Up @@ -905,13 +905,13 @@ extern volatile __bit PCFG2 __at(0x4FA); // @ (0
extern volatile __bit PEIE __at(0x5E); // @ (0xB * 8 + 6)
#define PEIE_bit _BIT_ACCESS(INTCON,6)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x408); // @ (0x81 * 8 + 0)
extern volatile __bit _PS0 __at(0x408); // @ (0x81 * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x409); // @ (0x81 * 8 + 1)
extern volatile __bit _PS1 __at(0x409); // @ (0x81 * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x40A); // @ (0x81 * 8 + 2)
extern volatile __bit _PS2 __at(0x40A); // @ (0x81 * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x40B); // @ (0x81 * 8 + 3)
Expand Down
12 changes: 6 additions & 6 deletions PIC/XC8/def/PIC12C672/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ typedef union {
unsigned nGPPU :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x081);
Expand Down Expand Up @@ -905,13 +905,13 @@ extern volatile __bit PCFG2 __at(0x4FA); // @ (0
extern volatile __bit PEIE __at(0x5E); // @ (0xB * 8 + 6)
#define PEIE_bit _BIT_ACCESS(INTCON,6)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x408); // @ (0x81 * 8 + 0)
extern volatile __bit _PS0 __at(0x408); // @ (0x81 * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x409); // @ (0x81 * 8 + 1)
extern volatile __bit _PS1 __at(0x409); // @ (0x81 * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x40A); // @ (0x81 * 8 + 2)
extern volatile __bit _PS2 __at(0x40A); // @ (0x81 * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x40B); // @ (0x81 * 8 + 3)
Expand Down
12 changes: 6 additions & 6 deletions PIC/XC8/def/PIC12CE673/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ typedef union {
unsigned nGPPU :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x081);
Expand Down Expand Up @@ -917,13 +917,13 @@ extern volatile __bit PCFG2 __at(0x4FA); // @ (0
extern volatile __bit PEIE __at(0x5E); // @ (0xB * 8 + 6)
#define PEIE_bit _BIT_ACCESS(INTCON,6)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x408); // @ (0x81 * 8 + 0)
extern volatile __bit _PS0 __at(0x408); // @ (0x81 * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x409); // @ (0x81 * 8 + 1)
extern volatile __bit _PS1 __at(0x409); // @ (0x81 * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x40A); // @ (0x81 * 8 + 2)
extern volatile __bit _PS2 __at(0x40A); // @ (0x81 * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x40B); // @ (0x81 * 8 + 3)
Expand Down
12 changes: 6 additions & 6 deletions PIC/XC8/def/PIC12CE674/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ typedef union {
unsigned nGPPU :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __at(0x081);
Expand Down Expand Up @@ -917,13 +917,13 @@ extern volatile __bit PCFG2 __at(0x4FA); // @ (0
extern volatile __bit PEIE __at(0x5E); // @ (0xB * 8 + 6)
#define PEIE_bit _BIT_ACCESS(INTCON,6)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x408); // @ (0x81 * 8 + 0)
extern volatile __bit _PS0 __at(0x408); // @ (0x81 * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x409); // @ (0x81 * 8 + 1)
extern volatile __bit _PS1 __at(0x409); // @ (0x81 * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x40A); // @ (0x81 * 8 + 2)
extern volatile __bit _PS2 __at(0x40A); // @ (0x81 * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x40B); // @ (0x81 * 8 + 3)
Expand Down
20 changes: 10 additions & 10 deletions PIC/XC8/def/PIC12F1501/mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -792,15 +792,15 @@ extern volatile TMR2bits_t TMR2bits __at(0x01A);
#define _TMR2_TMR2_MASK 0xFF

// Register: PR2
#define PR2 PR2
extern volatile unsigned char PR2 __at(0x01B);
#define _PR2 _PR2 // Note: Changed by MikroE
extern volatile unsigned char _PR2 __at(0x01B); // Note: Changed by MikroE
#ifndef _LIB_BUILD
asm("PR2 equ 01Bh");
asm("_PR2 equ 01Bh"); // Note: Changed by MikroE
#endif
// bitfield definitions
typedef union {
struct {
unsigned PR2 :8;
unsigned _PR2 :8; // Note: Changed by MikroE
};
} PR2bits_t;
extern volatile PR2bits_t PR2bits __at(0x01B);
Expand Down Expand Up @@ -1042,9 +1042,9 @@ typedef union {
unsigned nWPUEN :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned _PS0 :1; // Note: Changed by MikroE
unsigned _PS1 :1; // Note: Changed by MikroE
unsigned _PS2 :1; // Note: Changed by MikroE
unsigned :1;
unsigned T0SE :1;
unsigned T0CS :1;
Expand Down Expand Up @@ -6809,13 +6809,13 @@ extern volatile __bit NCO1SEL __at(0x8E8); // @ (0
extern volatile __bit PEIE __at(0x5E); // @ (0xB * 8 + 6)
#define PEIE_bit _BIT_ACCESS(INTCON,6)
// OPTION_REG<PS0>
extern volatile __bit PS0 __at(0x4A8); // @ (0x95 * 8 + 0)
extern volatile __bit _PS0 __at(0x4A8); // @ (0x95 * 8 + 0) // Note: Changed by MikroE
#define PS0_bit _BIT_ACCESS(OPTION_REG,0)
// OPTION_REG<PS1>
extern volatile __bit PS1 __at(0x4A9); // @ (0x95 * 8 + 1)
extern volatile __bit _PS1 __at(0x4A9); // @ (0x95 * 8 + 1) // Note: Changed by MikroE
#define PS1_bit _BIT_ACCESS(OPTION_REG,1)
// OPTION_REG<PS2>
extern volatile __bit PS2 __at(0x4AA); // @ (0x95 * 8 + 2)
extern volatile __bit _PS2 __at(0x4AA); // @ (0x95 * 8 + 2) // Note: Changed by MikroE
#define PS2_bit _BIT_ACCESS(OPTION_REG,2)
// OPTION_REG<PSA>
extern volatile __bit PSA __at(0x4AB); // @ (0x95 * 8 + 3)
Expand Down
Loading

0 comments on commit 087992f

Please sign in to comment.