72 #ifndef BSP430_UTILITY_EVENT_H
73 #define BSP430_UTILITY_EVENT_H
109 #if defined(BSP430_DOXYGEN) || ! defined(BSP430_EVENT_TAG_NUM_SUPPORTED)
113 #define BSP430_EVENT_TAG_NUM_SUPPORTED 8
116 #if defined(BSP430_DOXYGEN) || ! defined(BSP430_EVENT_RECORD_NUM_SUPPORTED)
121 #define BSP430_EVENT_RECORD_NUM_SUPPORTED 16
158 struct sBSP430eventPeriodic;
167 struct sBSP430eventPeriodic * ap);
224 unsigned long setting_tck);
242 extern unsigned char nBSP430eventTagConfig_;
246 extern volatile unsigned int uiBSP430eventFlags_v_;
260 if (tag < nBSP430eventTagConfig_) {
261 return xBSP430eventTagConfig_ + tag;
307 return !uiBSP430eventFlags_v_;
333 unsigned int rv = uiBSP430eventFlags_v_;
334 uiBSP430eventFlags_v_ = 0;
362 uiBSP430eventFlags_v_ |= flags;
void(* vBSP430eventPeriodicProcess)(const sBSP430eventTagRecord *ep, struct sBSP430eventPeriodic *ap)
Definition: event.h:166
unsigned long timestamp_utt
Definition: event.h:142
int iBSP430eventPeriodicRemove_ni(hBSP430timerMuxSharedAlarm shared, hBSP430eventPeriodicConfig cfg)
unsigned int uiBSP430eventFlagAllocate()
#define BSP430_CORE_RESTORE_INTERRUPT_STATE(state_)
Definition: core.h:731
int iBSP430eventPeriodicAdd_ni(hBSP430timerMuxSharedAlarm shared, hBSP430eventPeriodicConfig cfg, unsigned long setting_tck)
static BSP430_CORE_INLINE void vBSP430eventRecordEvent(unsigned char tag, unsigned char flags, const uBSP430eventAnyType *up)
Definition: event.h:396
unsigned long interval_tck
Definition: event.h:193
struct sBSP430eventTagRecord sBSP430eventTagRecord
volatile unsigned int seqno
Definition: event.h:106
unsigned char tag
Definition: event.h:150
static BSP430_CORE_INLINE unsigned int uiBSP430eventFlagsGet()
Definition: event.h:340
const volatile sBSP430eventTagRecord * xBSP430eventRecordEvent_ni(unsigned char tag, unsigned char flags, const uBSP430eventAnyType *up)
static const unsigned char ucBSP430eventTag_LostEventRecord
Definition: event.h:128
Hardware presentation/abstraction for generic timers (Timer_A/Timer_B)
static BSP430_CORE_INLINE void vBSP430eventFlagsSet_ni(unsigned int flags)
Definition: event.h:360
unsigned char ucBSP430eventTagAllocate(const char *id)
#define BSP430_CORE_INLINE
Definition: core.h:439
#define BSP430_CORE_SAVED_INTERRUPT_STATE(var_)
Definition: core.h:719
unsigned char tag
Definition: event.h:197
static BSP430_CORE_INLINE int iBSP430eventFlagsEmpty()
Definition: event.h:312
static BSP430_CORE_INLINE unsigned int uiBSP430eventFlagsGet_ni()
Definition: event.h:331
sBSP430timerMuxAlarm alarm_
Definition: event.h:183
unsigned char flags
Definition: event.h:201
sBSP430eventPeriodicConfig * hBSP430eventPeriodicConfig
Definition: event.h:205
uBSP430eventAnyType u
Definition: event.h:138
#define BSP430_CORE_DISABLE_INTERRUPT()
Definition: core.h:762
static BSP430_CORE_INLINE const sBSP430eventTagConfig * hBSP430eventTagLookup(unsigned char tag)
Definition: event.h:258
struct sBSP430eventPeriodicConfig sBSP430eventPeriodicConfig
static const unsigned int uiBSP430eventFlag_EventRecord
Definition: event.h:132
static BSP430_CORE_INLINE void vBSP430eventFlagsSet(unsigned int flags)
Definition: event.h:367
unsigned int seqno
Definition: event.h:145
const char * id
Definition: event.h:104
int iBSP430eventTagGetRecords(sBSP430eventTagRecord *evts, int len)
static BSP430_CORE_INLINE int iBSP430eventFlagsEmpty_ni()
Definition: event.h:305
struct sBSP430eventTagConfig sBSP430eventTagConfig
union uBSP430eventAnyType uBSP430eventAnyType
unsigned char flags
Definition: event.h:154