From 3056e083d78b6edec6bab1ebac3fa9e3708644d7 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 20 Aug 2015 22:37:23 +0200 Subject: Initial commit --- firmware/src/app.h | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 firmware/src/app.h (limited to 'firmware/src/app.h') diff --git a/firmware/src/app.h b/firmware/src/app.h new file mode 100644 index 0000000..50db318 --- /dev/null +++ b/firmware/src/app.h @@ -0,0 +1,115 @@ +/******************************************************************************* + MPLAB Harmony Application Header File + + File Name: + app.h + + Summary: + This header file provides prototypes and definitions for the application. + + Description: + This header file provides function prototypes and data type definitions for + the application. Some of these are required by the system (such as the + "APP_Initialize" and "APP_Tasks" prototypes) and some of them are only used + internally by the application (such as the "APP_STATES" definition). Both + are defined here for convenience. +*******************************************************************************/ + +#ifndef _APP_H +#define _APP_H + +#include +#include +#include +#include +#include "system_config.h" +#include "system_definitions.h" + +#ifdef __cplusplus // Provide C++ Compatibility + +extern "C" { + +#endif + +typedef enum +{ + APP_STATE_MAIN=0, + +} APP_STATES; + + +typedef struct +{ + APP_STATES state; +} APP_DATA; + +/******************************************************************************* + Function: + void APP_Initialize ( void ) + + Summary: + MPLAB Harmony application initialization routine. + + Description: + This function initializes the Harmony application. It places the + application in its initial state and prepares it to run so that its + APP_Tasks function can be called. + + Precondition: + All other system initialization routines should be called before calling + this routine (in "SYS_Initialize"). + + Parameters: + None. + + Returns: + None. + + Example: + + APP_Initialize(); + + + Remarks: + This routine must be called from the SYS_Initialize function. +*/ + +void APP_Initialize ( void ); + +/******************************************************************************* + Function: + void APP_Tasks ( void ) + + Summary: + MPLAB Harmony Demo application tasks function + + Description: + This routine is the Harmony Demo application's tasks function. It + defines the application's state machine and core logic. + + Precondition: + The system and application initialization ("SYS_Initialize") should be + called before calling this. + + Parameters: + None. + + Returns: + None. + + Example: + + APP_Tasks(); + + + Remarks: + This routine must be called from SYS_Tasks() routine. + */ + +void APP_Tasks( void ); + +#endif /* _APP_H */ + +#ifdef __cplusplus +} +#endif -- cgit v1.2.3