/*
 *
 * This file is generated automatically by the device-manager.pl program.
 *
 * Copyright (C) 2012, Molnár Károly <molnarkaroly@users.sf.net>
 *
 */

#ifndef __PIC18FREGS_H__
#define __PIC18FREGS_H__

#if defined(__SDCC_PIC18F13K22)
  #include <pic18f13k22.h>

#elif defined(__SDCC_PIC18F13K50)
  #include <pic18f13k50.h>

#elif defined(__SDCC_PIC18F14K22)
  #include <pic18f14k22.h>

#elif defined(__SDCC_PIC18F14K50)
  #include <pic18f14k50.h>

#elif defined(__SDCC_PIC18F23K20)
  #include <pic18f23k20.h>

#elif defined(__SDCC_PIC18F23K22)
  #include <pic18f23k22.h>

#elif defined(__SDCC_PIC18F24J10)
  #include <pic18f24j10.h>

#elif defined(__SDCC_PIC18F24J11)
  #include <pic18f24j11.h>

#elif defined(__SDCC_PIC18F24J50)
  #include <pic18f24j50.h>

#elif defined(__SDCC_PIC18F24K20)
  #include <pic18f24k20.h>

#elif defined(__SDCC_PIC18F24K22)
  #include <pic18f24k22.h>

#elif defined(__SDCC_PIC18F24K50)
  #include <pic18f24k50.h>

#elif defined(__SDCC_PIC18F25J10)
  #include <pic18f25j10.h>

#elif defined(__SDCC_PIC18F25J11)
  #include <pic18f25j11.h>

#elif defined(__SDCC_PIC18F25J50)
  #include <pic18f25j50.h>

#elif defined(__SDCC_PIC18F25K20)
  #include <pic18f25k20.h>

#elif defined(__SDCC_PIC18F25K22)
  #include <pic18f25k22.h>

#elif defined(__SDCC_PIC18F25K50)
  #include <pic18f25k50.h>

#elif defined(__SDCC_PIC18F25K80)
  #include <pic18f25k80.h>

#elif defined(__SDCC_PIC18F26J11)
  #include <pic18f26j11.h>

#elif defined(__SDCC_PIC18F26J13)
  #include <pic18f26j13.h>

#elif defined(__SDCC_PIC18F26J50)
  #include <pic18f26j50.h>

#elif defined(__SDCC_PIC18F26J53)
  #include <pic18f26j53.h>

#elif defined(__SDCC_PIC18F26K20)
  #include <pic18f26k20.h>

#elif defined(__SDCC_PIC18F26K22)
  #include <pic18f26k22.h>

#elif defined(__SDCC_PIC18F26K80)
  #include <pic18f26k80.h>

#elif defined(__SDCC_PIC18F27J13)
  #include <pic18f27j13.h>

#elif defined(__SDCC_PIC18F27J53)
  #include <pic18f27j53.h>

#elif defined(__SDCC_PIC18F43K20)
  #include <pic18f43k20.h>

#elif defined(__SDCC_PIC18F43K22)
  #include <pic18f43k22.h>

#elif defined(__SDCC_PIC18F44J10)
  #include <pic18f44j10.h>

#elif defined(__SDCC_PIC18F44J11)
  #include <pic18f44j11.h>

#elif defined(__SDCC_PIC18F44J50)
  #include <pic18f44j50.h>

#elif defined(__SDCC_PIC18F44K20)
  #include <pic18f44k20.h>

#elif defined(__SDCC_PIC18F44K22)
  #include <pic18f44k22.h>

#elif defined(__SDCC_PIC18F45J10)
  #include <pic18f45j10.h>

#elif defined(__SDCC_PIC18F45J11)
  #include <pic18f45j11.h>

#elif defined(__SDCC_PIC18F45J50)
  #include <pic18f45j50.h>

#elif defined(__SDCC_PIC18F45K20)
  #include <pic18f45k20.h>

#elif defined(__SDCC_PIC18F45K22)
  #include <pic18f45k22.h>

#elif defined(__SDCC_PIC18F45K50)
  #include <pic18f45k50.h>

#elif defined(__SDCC_PIC18F45K80)
  #include <pic18f45k80.h>

#elif defined(__SDCC_PIC18F46J11)
  #include <pic18f46j11.h>

#elif defined(__SDCC_PIC18F46J13)
  #include <pic18f46j13.h>

#elif defined(__SDCC_PIC18F46J50)
  #include <pic18f46j50.h>

#elif defined(__SDCC_PIC18F46J53)
  #include <pic18f46j53.h>

#elif defined(__SDCC_PIC18F46K20)
  #include <pic18f46k20.h>

#elif defined(__SDCC_PIC18F46K22)
  #include <pic18f46k22.h>

#elif defined(__SDCC_PIC18F46K80)
  #include <pic18f46k80.h>

#elif defined(__SDCC_PIC18F47J13)
  #include <pic18f47j13.h>

#elif defined(__SDCC_PIC18F47J53)
  #include <pic18f47j53.h>

#elif defined(__SDCC_PIC18F63J11)
  #include <pic18f63j11.h>

#elif defined(__SDCC_PIC18F63J90)
  #include <pic18f63j90.h>

#elif defined(__SDCC_PIC18F64J11)
  #include <pic18f64j11.h>

#elif defined(__SDCC_PIC18F64J90)
  #include <pic18f64j90.h>

#elif defined(__SDCC_PIC18F65J10)
  #include <pic18f65j10.h>

#elif defined(__SDCC_PIC18F65J11)
  #include <pic18f65j11.h>

#elif defined(__SDCC_PIC18F65J15)
  #include <pic18f65j15.h>

#elif defined(__SDCC_PIC18F65J50)
  #include <pic18f65j50.h>

#elif defined(__SDCC_PIC18F65J90)
  #include <pic18f65j90.h>

#elif defined(__SDCC_PIC18F65J94)
  #include <pic18f65j94.h>

#elif defined(__SDCC_PIC18F65K22)
  #include <pic18f65k22.h>

#elif defined(__SDCC_PIC18F65K80)
  #include <pic18f65k80.h>

#elif defined(__SDCC_PIC18F65K90)
  #include <pic18f65k90.h>

#elif defined(__SDCC_PIC18F66J10)
  #include <pic18f66j10.h>

#elif defined(__SDCC_PIC18F66J11)
  #include <pic18f66j11.h>

#elif defined(__SDCC_PIC18F66J15)
  #include <pic18f66j15.h>

#elif defined(__SDCC_PIC18F66J16)
  #include <pic18f66j16.h>

#elif defined(__SDCC_PIC18F66J50)
  #include <pic18f66j50.h>

#elif defined(__SDCC_PIC18F66J55)
  #include <pic18f66j55.h>

#elif defined(__SDCC_PIC18F66J60)
  #include <pic18f66j60.h>

#elif defined(__SDCC_PIC18F66J65)
  #include <pic18f66j65.h>

#elif defined(__SDCC_PIC18F66J90)
  #include <pic18f66j90.h>

#elif defined(__SDCC_PIC18F66J93)
  #include <pic18f66j93.h>

#elif defined(__SDCC_PIC18F66J94)
  #include <pic18f66j94.h>

#elif defined(__SDCC_PIC18F66J99)
  #include <pic18f66j99.h>

#elif defined(__SDCC_PIC18F66K22)
  #include <pic18f66k22.h>

#elif defined(__SDCC_PIC18F66K80)
  #include <pic18f66k80.h>

#elif defined(__SDCC_PIC18F66K90)
  #include <pic18f66k90.h>

#elif defined(__SDCC_PIC18F67J10)
  #include <pic18f67j10.h>

#elif defined(__SDCC_PIC18F67J11)
  #include <pic18f67j11.h>

#elif defined(__SDCC_PIC18F67J50)
  #include <pic18f67j50.h>

#elif defined(__SDCC_PIC18F67J60)
  #include <pic18f67j60.h>

#elif defined(__SDCC_PIC18F67J90)
  #include <pic18f67j90.h>

#elif defined(__SDCC_PIC18F67J93)
  #include <pic18f67j93.h>

#elif defined(__SDCC_PIC18F67J94)
  #include <pic18f67j94.h>

#elif defined(__SDCC_PIC18F67K22)
  #include <pic18f67k22.h>

#elif defined(__SDCC_PIC18F67K90)
  #include <pic18f67k90.h>

#elif defined(__SDCC_PIC18F83J11)
  #include <pic18f83j11.h>

#elif defined(__SDCC_PIC18F83J90)
  #include <pic18f83j90.h>

#elif defined(__SDCC_PIC18F84J11)
  #include <pic18f84j11.h>

#elif defined(__SDCC_PIC18F84J90)
  #include <pic18f84j90.h>

#elif defined(__SDCC_PIC18F85J10)
  #include <pic18f85j10.h>

#elif defined(__SDCC_PIC18F85J11)
  #include <pic18f85j11.h>

#elif defined(__SDCC_PIC18F85J15)
  #include <pic18f85j15.h>

#elif defined(__SDCC_PIC18F85J50)
  #include <pic18f85j50.h>

#elif defined(__SDCC_PIC18F85J90)
  #include <pic18f85j90.h>

#elif defined(__SDCC_PIC18F85J94)
  #include <pic18f85j94.h>

#elif defined(__SDCC_PIC18F85K22)
  #include <pic18f85k22.h>

#elif defined(__SDCC_PIC18F85K90)
  #include <pic18f85k90.h>

#elif defined(__SDCC_PIC18F86J10)
  #include <pic18f86j10.h>

#elif defined(__SDCC_PIC18F86J11)
  #include <pic18f86j11.h>

#elif defined(__SDCC_PIC18F86J15)
  #include <pic18f86j15.h>

#elif defined(__SDCC_PIC18F86J16)
  #include <pic18f86j16.h>

#elif defined(__SDCC_PIC18F86J50)
  #include <pic18f86j50.h>

#elif defined(__SDCC_PIC18F86J55)
  #include <pic18f86j55.h>

#elif defined(__SDCC_PIC18F86J60)
  #include <pic18f86j60.h>

#elif defined(__SDCC_PIC18F86J65)
  #include <pic18f86j65.h>

#elif defined(__SDCC_PIC18F86J72)
  #include <pic18f86j72.h>

#elif defined(__SDCC_PIC18F86J90)
  #include <pic18f86j90.h>

#elif defined(__SDCC_PIC18F86J93)
  #include <pic18f86j93.h>

#elif defined(__SDCC_PIC18F86J94)
  #include <pic18f86j94.h>

#elif defined(__SDCC_PIC18F86J99)
  #include <pic18f86j99.h>

#elif defined(__SDCC_PIC18F86K22)
  #include <pic18f86k22.h>

#elif defined(__SDCC_PIC18F86K90)
  #include <pic18f86k90.h>

#elif defined(__SDCC_PIC18F87J10)
  #include <pic18f87j10.h>

#elif defined(__SDCC_PIC18F87J11)
  #include <pic18f87j11.h>

#elif defined(__SDCC_PIC18F87J50)
  #include <pic18f87j50.h>

#elif defined(__SDCC_PIC18F87J60)
  #include <pic18f87j60.h>

#elif defined(__SDCC_PIC18F87J72)
  #include <pic18f87j72.h>

#elif defined(__SDCC_PIC18F87J90)
  #include <pic18f87j90.h>

#elif defined(__SDCC_PIC18F87J93)
  #include <pic18f87j93.h>

#elif defined(__SDCC_PIC18F87J94)
  #include <pic18f87j94.h>

#elif defined(__SDCC_PIC18F87K22)
  #include <pic18f87k22.h>

#elif defined(__SDCC_PIC18F87K90)
  #include <pic18f87k90.h>

#elif defined(__SDCC_PIC18F95J94)
  #include <pic18f95j94.h>

#elif defined(__SDCC_PIC18F96J60)
  #include <pic18f96j60.h>

#elif defined(__SDCC_PIC18F96J65)
  #include <pic18f96j65.h>

#elif defined(__SDCC_PIC18F96J94)
  #include <pic18f96j94.h>

#elif defined(__SDCC_PIC18F96J99)
  #include <pic18f96j99.h>

#elif defined(__SDCC_PIC18F97J60)
  #include <pic18f97j60.h>

#elif defined(__SDCC_PIC18F97J94)
  #include <pic18f97j94.h>

#elif defined(__SDCC_PIC18F242)
  #include <pic18f242.h>

#elif defined(__SDCC_PIC18F248)
  #include <pic18f248.h>

#elif defined(__SDCC_PIC18F252)
  #include <pic18f252.h>

#elif defined(__SDCC_PIC18F258)
  #include <pic18f258.h>

#elif defined(__SDCC_PIC18F442)
  #include <pic18f442.h>

#elif defined(__SDCC_PIC18F448)
  #include <pic18f448.h>

#elif defined(__SDCC_PIC18F452)
  #include <pic18f452.h>

#elif defined(__SDCC_PIC18F458)
  #include <pic18f458.h>

#elif defined(__SDCC_PIC18F1220)
  #include <pic18f1220.h>

#elif defined(__SDCC_PIC18F1230)
  #include <pic18f1230.h>

#elif defined(__SDCC_PIC18F1320)
  #include <pic18f1320.h>

#elif defined(__SDCC_PIC18F1330)
  #include <pic18f1330.h>

#elif defined(__SDCC_PIC18F2220)
  #include <pic18f2220.h>

#elif defined(__SDCC_PIC18F2221)
  #include <pic18f2221.h>

#elif defined(__SDCC_PIC18F2320)
  #include <pic18f2320.h>

#elif defined(__SDCC_PIC18F2321)
  #include <pic18f2321.h>

#elif defined(__SDCC_PIC18F2331)
  #include <pic18f2331.h>

#elif defined(__SDCC_PIC18F2410)
  #include <pic18f2410.h>

#elif defined(__SDCC_PIC18F2420)
  #include <pic18f2420.h>

#elif defined(__SDCC_PIC18F2423)
  #include <pic18f2423.h>

#elif defined(__SDCC_PIC18F2431)
  #include <pic18f2431.h>

#elif defined(__SDCC_PIC18F2439)
  #include <pic18f2439.h>

#elif defined(__SDCC_PIC18F2450)
  #include <pic18f2450.h>

#elif defined(__SDCC_PIC18F2455)
  #include <pic18f2455.h>

#elif defined(__SDCC_PIC18F2458)
  #include <pic18f2458.h>

#elif defined(__SDCC_PIC18F2480)
  #include <pic18f2480.h>

#elif defined(__SDCC_PIC18F2510)
  #include <pic18f2510.h>

#elif defined(__SDCC_PIC18F2515)
  #include <pic18f2515.h>

#elif defined(__SDCC_PIC18F2520)
  #include <pic18f2520.h>

#elif defined(__SDCC_PIC18F2523)
  #include <pic18f2523.h>

#elif defined(__SDCC_PIC18F2525)
  #include <pic18f2525.h>

#elif defined(__SDCC_PIC18F2539)
  #include <pic18f2539.h>

#elif defined(__SDCC_PIC18F2550)
  #include <pic18f2550.h>

#elif defined(__SDCC_PIC18F2553)
  #include <pic18f2553.h>

#elif defined(__SDCC_PIC18F2580)
  #include <pic18f2580.h>

#elif defined(__SDCC_PIC18F2585)
  #include <pic18f2585.h>

#elif defined(__SDCC_PIC18F2610)
  #include <pic18f2610.h>

#elif defined(__SDCC_PIC18F2620)
  #include <pic18f2620.h>

#elif defined(__SDCC_PIC18F2680)
  #include <pic18f2680.h>

#elif defined(__SDCC_PIC18F2682)
  #include <pic18f2682.h>

#elif defined(__SDCC_PIC18F2685)
  #include <pic18f2685.h>

#elif defined(__SDCC_PIC18F4220)
  #include <pic18f4220.h>

#elif defined(__SDCC_PIC18F4221)
  #include <pic18f4221.h>

#elif defined(__SDCC_PIC18F4320)
  #include <pic18f4320.h>

#elif defined(__SDCC_PIC18F4321)
  #include <pic18f4321.h>

#elif defined(__SDCC_PIC18F4331)
  #include <pic18f4331.h>

#elif defined(__SDCC_PIC18F4410)
  #include <pic18f4410.h>

#elif defined(__SDCC_PIC18F4420)
  #include <pic18f4420.h>

#elif defined(__SDCC_PIC18F4423)
  #include <pic18f4423.h>

#elif defined(__SDCC_PIC18F4431)
  #include <pic18f4431.h>

#elif defined(__SDCC_PIC18F4439)
  #include <pic18f4439.h>

#elif defined(__SDCC_PIC18F4450)
  #include <pic18f4450.h>

#elif defined(__SDCC_PIC18F4455)
  #include <pic18f4455.h>

#elif defined(__SDCC_PIC18F4458)
  #include <pic18f4458.h>

#elif defined(__SDCC_PIC18F4480)
  #include <pic18f4480.h>

#elif defined(__SDCC_PIC18F4510)
  #include <pic18f4510.h>

#elif defined(__SDCC_PIC18F4515)
  #include <pic18f4515.h>

#elif defined(__SDCC_PIC18F4520)
  #include <pic18f4520.h>

#elif defined(__SDCC_PIC18F4523)
  #include <pic18f4523.h>

#elif defined(__SDCC_PIC18F4525)
  #include <pic18f4525.h>

#elif defined(__SDCC_PIC18F4539)
  #include <pic18f4539.h>

#elif defined(__SDCC_PIC18F4550)
  #include <pic18f4550.h>

#elif defined(__SDCC_PIC18F4553)
  #include <pic18f4553.h>

#elif defined(__SDCC_PIC18F4580)
  #include <pic18f4580.h>

#elif defined(__SDCC_PIC18F4585)
  #include <pic18f4585.h>

#elif defined(__SDCC_PIC18F4610)
  #include <pic18f4610.h>

#elif defined(__SDCC_PIC18F4620)
  #include <pic18f4620.h>

#elif defined(__SDCC_PIC18F4680)
  #include <pic18f4680.h>

#elif defined(__SDCC_PIC18F4682)
  #include <pic18f4682.h>

#elif defined(__SDCC_PIC18F4685)
  #include <pic18f4685.h>

#elif defined(__SDCC_PIC18F6310)
  #include <pic18f6310.h>

#elif defined(__SDCC_PIC18F6390)
  #include <pic18f6390.h>

#elif defined(__SDCC_PIC18F6393)
  #include <pic18f6393.h>

#elif defined(__SDCC_PIC18F6410)
  #include <pic18f6410.h>

#elif defined(__SDCC_PIC18F6490)
  #include <pic18f6490.h>

#elif defined(__SDCC_PIC18F6493)
  #include <pic18f6493.h>

#elif defined(__SDCC_PIC18F6520)
  #include <pic18f6520.h>

#elif defined(__SDCC_PIC18F6525)
  #include <pic18f6525.h>

#elif defined(__SDCC_PIC18F6527)
  #include <pic18f6527.h>

#elif defined(__SDCC_PIC18F6585)
  #include <pic18f6585.h>

#elif defined(__SDCC_PIC18F6620)
  #include <pic18f6620.h>

#elif defined(__SDCC_PIC18F6621)
  #include <pic18f6621.h>

#elif defined(__SDCC_PIC18F6622)
  #include <pic18f6622.h>

#elif defined(__SDCC_PIC18F6627)
  #include <pic18f6627.h>

#elif defined(__SDCC_PIC18F6628)
  #include <pic18f6628.h>

#elif defined(__SDCC_PIC18F6680)
  #include <pic18f6680.h>

#elif defined(__SDCC_PIC18F6720)
  #include <pic18f6720.h>

#elif defined(__SDCC_PIC18F6722)
  #include <pic18f6722.h>

#elif defined(__SDCC_PIC18F6723)
  #include <pic18f6723.h>

#elif defined(__SDCC_PIC18F8310)
  #include <pic18f8310.h>

#elif defined(__SDCC_PIC18F8390)
  #include <pic18f8390.h>

#elif defined(__SDCC_PIC18F8393)
  #include <pic18f8393.h>

#elif defined(__SDCC_PIC18F8410)
  #include <pic18f8410.h>

#elif defined(__SDCC_PIC18F8490)
  #include <pic18f8490.h>

#elif defined(__SDCC_PIC18F8493)
  #include <pic18f8493.h>

#elif defined(__SDCC_PIC18F8520)
  #include <pic18f8520.h>

#elif defined(__SDCC_PIC18F8525)
  #include <pic18f8525.h>

#elif defined(__SDCC_PIC18F8527)
  #include <pic18f8527.h>

#elif defined(__SDCC_PIC18F8585)
  #include <pic18f8585.h>

#elif defined(__SDCC_PIC18F8620)
  #include <pic18f8620.h>

#elif defined(__SDCC_PIC18F8621)
  #include <pic18f8621.h>

#elif defined(__SDCC_PIC18F8622)
  #include <pic18f8622.h>

#elif defined(__SDCC_PIC18F8627)
  #include <pic18f8627.h>

#elif defined(__SDCC_PIC18F8628)
  #include <pic18f8628.h>

#elif defined(__SDCC_PIC18F8680)
  #include <pic18f8680.h>

#elif defined(__SDCC_PIC18F8720)
  #include <pic18f8720.h>

#elif defined(__SDCC_PIC18F8722)
  #include <pic18f8722.h>

#elif defined(__SDCC_PIC18F8723)
  #include <pic18f8723.h>

#else
  #error The sdcc is not supported by this processor!
#endif

#ifndef __CONCAT2
  #define __CONCAT2(a, b)       a##b
#endif

#ifndef __CONCAT
  #define __CONCAT(a, b)        __CONCAT2(a, b)
#endif

#define __CONFIG(address, value) \
    static const __code unsigned char __at(address) __CONCAT(_conf, __LINE__) = (value)

#define Nop()                   __asm nop __endasm
#define ClrWdt()                __asm clrwdt __endasm
#define Sleep()                 __asm sleep __endasm
#define Reset()                 __asm reset __endasm

    // To pointer manipulations. (From the sdcc/src/pic16/gen.h file.)
#define GPTR_TAG_MASK           0xC0    // Generated by the device-manager.pl program.
#define GPTR_TAG_DATA           0x80
#define GPTR_TAG_EEPROM         0x40
#define GPTR_TAG_CODE           0x00

#endif // #ifndef __PIC18FREGS_H__
