EE445M RTOS
Taken at the University of Texas Spring 2015
notify.h
Go to the documentation of this file.
1 /* -*- mode: c; c-basic-offset: 4; -*- */
2 #ifndef __LIBNOTIFY__
3 #define __LIBNOTIFY__
4 
5 #include "libstd/nexus.h"
6 
10 typedef enum {
16 
22 typedef union {
23  int _int;
24  double _double;
25  char _char;
26  char _string[16];
27 } notification;
28 
31 typedef struct {
37 
39 #define notification_init_(_name, _type, _value) \
40  notification _name; \
41  _name._##_type = _value
42 
45 #define notification_init(_type, _value) \
46  notification_init_(note, _type, _value)
47 
48 #endif
NOTIFICATION_TYPE type
Definition: notify.h:34
int _int
Definition: notify.h:23
NOTIFICATION_TYPE
Definition: notify.h:10
memory_address_t pin
Definition: notify.h:33
memory_address_t base
Definition: notify.h:32
double _double
Definition: notify.h:24
notification ** data
Definition: notify.h:35
int32_t memory_address_t
Definition: nexus.h:48
char _char
Definition: notify.h:25