Vous êtes sur la page 1sur 1

#ifndef TreeSM_H

#define TreeSM_H
/****************************************************************************
Module
TreeSM.h
Description
header file to the Tree State Machine
Notes
History
When
Who
What/Why
-------------- ---------11/12/16
mwm
created for ME218A project
*****************************************************************************/
#include <stdint.h>
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h"
/* gets bool type for returns */
#include
#include
#include
#include
#include
#include
#include

"inc/hw_memmap.h"
"inc/hw_types.h"
"inc/hw_gpio.h"
"inc/hw_sysctl.h"
"driverlib/sysctl.h"
"driverlib/pin_map.h"
"driverlib/gpio.h"

// Define PART_TM4C123GH6PM in project

#include "BITDEFS.H"
#include "DEFINITIONS.h"
#ifndef ALL_BITS
#define ALL_BITS (0xff<<2)
#endif
// typedefs for the states
// State definitions for use with the query function
typedef enum { InitTSM, WaitingForArtist, Spring,
SpringGrowing, Summer, SummerGrowing,
Fall, FallGrowing, Winter,
WinterGrowing,
ReplayTree } TreeState_t ;
// Public Function Prototypes
bool InitTreeSM ( uint8_t Priority );
bool PostTreeSM ( ES_Event ThisEvent );
ES_Event RunTreeSM( ES_Event ThisEvent );
// Handlers:
void HandleWeather(uint8_t Season);
void HandleProx(ES_Event ThisEvent);
void HandleAnalog(ES_Event ThisEvent);
void ChangeSeasonTo(uint8_t Season);
void HandleGrow(void);
#endif //TreeSM_H

Vous aimerez peut-être aussi