27 lines
530 B
C
27 lines
530 B
C
|
|
#ifndef BLINKY_DATETIME_EVENT_H_
|
||
|
|
#define BLINKY_DATETIME_EVENT_H_
|
||
|
|
|
||
|
|
#include <app_event_manager.h>
|
||
|
|
#include <app_event_manager_profiler_tracer.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#define DATETIME_EVENT_DATE_TEXT_LEN 16
|
||
|
|
#define DATETIME_EVENT_TIME_TEXT_LEN 16
|
||
|
|
|
||
|
|
struct datetime_event {
|
||
|
|
struct app_event_header header;
|
||
|
|
char date_text[DATETIME_EVENT_DATE_TEXT_LEN];
|
||
|
|
char time_text[DATETIME_EVENT_TIME_TEXT_LEN];
|
||
|
|
};
|
||
|
|
|
||
|
|
APP_EVENT_TYPE_DECLARE(datetime_event);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif /* BLINKY_DATETIME_EVENT_H_ */
|