Skip to content

Commit

Permalink
Merge pull request #654 from Manoplay/master
Browse files Browse the repository at this point in the history
Update timer_alarm.h for C++ support
  • Loading branch information
fjtrujy authored Aug 31, 2024
2 parents 2e2b277 + a256f6e commit d5fd54e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ee/kernel/include/timer_alarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@
#include <tamtypes.h>
#include <timer.h>

#ifdef __cplusplus
extern "C" {
#endif

extern u64 AlarmHandler(s32 alarm_id, u64 scheduled_time, u64 actual_time, void *arg, void *last_pc);
extern s32 iSetTimerAlarm(u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg);
extern s32 SetTimerAlarm(u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg);
extern s32 iReleaseTimerAlarm(s32 id);
extern s32 ReleaseTimerAlarm(s32 id);

#ifdef __cplusplus
};
#endif

#endif

0 comments on commit d5fd54e

Please sign in to comment.