/**
@Generated Pin Manager Header File
@Company:
Microchip Technology Inc.
@File Name:
pin_manager.h
@Summary:
This is the Pin Manager file generated using MPLAB(c) Code Configurator
@Description:
This header file provides implementations for pin APIs for all pins selected in the GUI.
Generation Information :
Product Revision : MPLAB(c) Code Configurator - 4.26
Device : PIC16F1825
Version : 1.01
The generated drivers are tested against the following:
Compiler : XC8 1.35
MPLAB : MPLAB X 3.40
Copyright (c) 2013 - 2015 released Microchip Technology Inc. All rights reserved.
Microchip licenses to you the right to use, modify, copy and distribute
Software only when embedded on a Microchip microcontroller or digital signal
controller that is integrated into your product or third party product
(pursuant to the sublicense terms in the accompanying license agreement).
You should refer to the license agreement accompanying this Software for
additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
*/
#ifndef PIN_MANAGER_H
#define PIN_MANAGER_H
#define INPUT 1
#define OUTPUT 0
#define HIGH 1
#define LOW 0
#define ANALOG 1
#define DIGITAL 0
#define PULL_UP_ENABLED 1
#define PULL_UP_DISABLED 0
// get/set led aliases
#define led_TRIS TRISCbits.TRISC2
#define led_LAT LATCbits.LATC2
#define led_PORT PORTCbits.RC2
#define led_WPU WPUCbits.WPUC2
#define led_ANS ANSELCbits.ANSC2
#define led_SetHigh() do { LATCbits.LATC2 = 1; } while(0)
#define led_SetLow() do { LATCbits.LATC2 = 0; } while(0)
#define led_Toggle() do { LATCbits.LATC2 = ~LATCbits.LATC2; } while(0)
#define led_GetValue() PORTCbits.RC2
#define led_SetDigitalInput() do { TRISCbits.TRISC2 = 1; } while(0)
#define led_SetDigitalOutput() do { TRISCbits.TRISC2 = 0; } while(0)
#define led_SetPullup() do { WPUCbits.WPUC2 = 1; } while(0)
#define led_ResetPullup() do { WPUCbits.WPUC2 = 0; } while(0)
#define led_SetAnalogMode() do { ANSELCbits.ANSC2 = 1; } while(0)
#define led_SetDigitalMode() do { ANSELCbits.ANSC2 = 0; } while(0)
/**