//----------------------------------------------------------------------------------
// <copyright file="pib_apps.h" company="LiquidRobotics">
//	Copyright (c) Liquid Robotics Corporation.  All rights reserved.
// </copyright>
//
// <summary>
// 	This file is the header file for PIB application specific definitions
// </summary>
//
// <owner>Jim Kirklin</owner>
//---------------------------------------------------------------------------------
#ifndef _PIB_APPS_H_
#define _PIB_APPS_H_

#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <string.h>
#include <avr/sleep.h>
#include <avr/wdt.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <avr/sfr_defs.h>
#include <stdlib.h>
#include <util/crc16.h>
#include <ctype.h>
#include <avr/power.h>
#include <util/atomic.h>


//Generic Bool type for easy reading when using variables as flags
#ifndef FALSE
typedef unsigned char BOOL;
#define TRUE 	0xFF
#define FALSE 	0x00
#define SUCCESS	0xFF
#define FAIL	0x00
#endif

#define CRC16_SIZE	2
#define OTHER_CRC_START	0x0000

void RTC_Init();
void Float_Comm_Init(void);
void FloatComms(void* pParam);
void RealTimeClock(void* pParam);


#define FLOAT_PORT		0
#define USER_PORT_1		1
#define USER_PORT_2		2
#define USER_PORT_3		3

#define AUTORUN_ON		1
#define AUTORUN_OFF		0

#define INFINITE 0

#endif	//_PIB_APPS_H_
