Initial commit of files
This commit is contained in:
92
src/libPIC/lin_pinx.c
Normal file
92
src/libPIC/lin_pinx.c
Normal file
@ -0,0 +1,92 @@
|
||||
/*****************************************************************************
|
||||
* Copyright (C) 2008
|
||||
* ProbeStar Telematics, LLC
|
||||
* All Rights Reserved. Proprietary and Confidential.
|
||||
*============================================================================
|
||||
* Linux PIC Emulation
|
||||
*----------------------------------------------------------------------------
|
||||
* Details
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* includes
|
||||
*****************************************************************************/
|
||||
|
||||
#include "system.h"
|
||||
#include "inter.h"
|
||||
|
||||
/*****************************************************************************
|
||||
* defines
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* macros
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* structs & typedefs
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* global constants
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* global variables
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* static constants
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* static variables
|
||||
*****************************************************************************/
|
||||
|
||||
volatile bit int1Flag = 0;
|
||||
volatile WORD int1Counter = 0L;
|
||||
|
||||
volatile bit int2Flag = 0;
|
||||
volatile WORD int2Counter = 0L;
|
||||
|
||||
/*****************************************************************************
|
||||
* static prototypes
|
||||
*****************************************************************************/
|
||||
|
||||
/*****************************************************************************
|
||||
* C functions
|
||||
*****************************************************************************/
|
||||
|
||||
void init_pins( BYTE byPins )
|
||||
{
|
||||
if ( byPins & 1 )
|
||||
{
|
||||
int1Flag = 0;
|
||||
int1Counter = 0L;
|
||||
}
|
||||
|
||||
if ( byPins & 2 )
|
||||
{
|
||||
int2Flag = 0;
|
||||
int2Counter = 0L;
|
||||
}
|
||||
}
|
||||
|
||||
void int_pins_edge( BYTE byEdge )
|
||||
{
|
||||
}
|
||||
|
||||
void intx_pin_handler( void )
|
||||
{
|
||||
// if ( INT1IF )
|
||||
// {
|
||||
// int1Flag = 1;
|
||||
// int1Counter++;
|
||||
// }
|
||||
|
||||
// if ( INT2IF )
|
||||
// {
|
||||
// int2Flag = 1;
|
||||
// int2Counter++;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user