|
AM64x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
62 #ifdef CB_EVENT_NON_POSIX_H
66 #include CB_EVENT_NON_POSIX_H
74 #define CB_USLEEP(x) usleep(x)
79 #define CB_SLEEP(x) sleep(x)
84 #define CB_MKTIME(x) mktime(x)
91 struct timespec ts, rts;
94 res=nanosleep(&ts, &rts);
95 if(rts64!=NULL) {*rts64=(int64_t)(
UB_TS2NSEC(rts));}
98 #endif // CB_EVENT_NON_POSIX_H
143 uint32_t value_ms, uint32_t interval_ms);
int cb_timer_stop(cb_timer_object_t *mtmo)
timer stop.
int cb_timer_start_interval(cb_timer_object_t *mtmo, uint32_t value_ms, uint32_t interval_ms)
start timer interval.
uint8_t clear
Definition: tisci_rm_udmap.h:5
cb_timer_clear_t
enumeration used for timer to clear, decrement or no clear. This enumeration has following members:
Definition: cb_tmevent.h:115
@ CB_TIMER_NO_CLEAR
Definition: cb_tmevent.h:116
void cb_timer_close(cb_timer_object_t *mtmo)
close the timer
static int cb_nanosleep64(int64_t ts64, int64_t *rts64)
nano second unit sleep
Definition: cb_tmevent.h:89
cb_timer_object_t * cb_timer_create(char *tname)
creates timer.
struct cb_timer_object cb_timer_object_t
handler for cb_timer_object
Definition: cb_tmevent.h:106
@ CB_TIMER_DECREMENT
Definition: cb_tmevent.h:117
bool cb_timer_expired(cb_timer_object_t *mtmo, cb_timer_clear_t clear)
timer expired
#define UB_NSEC2TS(ns, ts)
convert nanosec value to 'struct timespec' vaule
Definition: unibase_macros.h:236
#define UB_TS2NSEC(ts)
convert 'struct timespec' vaule to nanosecond integer
Definition: unibase_macros.h:218
@ CB_TIMER_ALL_CLEAR
Definition: cb_tmevent.h:118