Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

alt_alarm_start()

int alt_alarm_start (alt_alarm* alarm,

alt_u32 nticks,

alt_u32 (*callback) (void* context),

void* context);

according to the handbook, program would transfer alt_u32 (*callback)(void* context) after nticks, void* context is the input parameter of the function,

does the two void* contexts are the same? and how to receive the return value of the (*callback) function?

16 Replies