Timingmotorh Final
Timingmotorh Final
Timingmotorh Final
#define TimingMotor_H
/****************************************************************************
Module
TimingMotor.h
Description
header file to the Timing Motor module
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"
#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 { InitTM, WaitForStart, Welcoming,
Timing, Replay} TimingMotorState_t ;
// Public Function Prototypes
bool InitTimingMotor ( uint8_t Priority );
bool PostTimingMotor( ES_Event ThisEvent );
ES_Event RunTimingMotorSM( ES_Event ThisEvent );
void ChangeVibrationMotor(uint8_t change);
#endif //TimingMotor_H