You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
725 B
C
24 lines
725 B
C
/*****************************************************************************
|
|
* TimeBomb class for SMC; implementation for EK-TM4C123GXL
|
|
*****************************************************************************/
|
|
#ifndef TIMEBOMB_H
|
|
#define TIMEBOMB_H
|
|
|
|
#include "timebomb_sm.h"
|
|
|
|
/* The TimeBomb AO =======================================================*/
|
|
typedef struct TimeBomb {
|
|
Active super; /* inherit Active base class */
|
|
|
|
struct timebombContext _fsm; /* FSM context for SMC */
|
|
|
|
/* attributes needed in TimeBomb */
|
|
TimeEvent te;
|
|
uint32_t blink_ctr;
|
|
} TimeBomb;
|
|
|
|
void TimeBomb_ctor(TimeBomb * const me);
|
|
void TimeBomb_dispatch(TimeBomb * const me, Event const * const e);
|
|
|
|
#endif /* TIMEBOMB_H */
|