diff --git a/src/scheduler.c b/src/scheduler.c index e1f6f57..6d6e9b2 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -11,8 +11,8 @@ #define MAX_TICK_HANDLERS 3 #define MAX_FRAME_HANDLERS 6 -static HanderFunc* tickHandlers[MAX_TICK_HANDLERS]; -static HanderFunc* frameHandlers[MAX_FRAME_HANDLERS]; +static HandlerFunc* tickHandlers[MAX_TICK_HANDLERS]; +static HandlerFunc* frameHandlers[MAX_FRAME_HANDLERS]; static u16 previousFrame; static volatile u16 frame; @@ -70,12 +70,12 @@ void scheduler_run(void) } } -void scheduler_addTickHandler(HanderFunc* onTick) +void scheduler_addTickHandler(HandlerFunc* onTick) { tickHandlers[tickHandlersLength++] = onTick; } -void scheduler_addFrameHandler(HanderFunc* onFrame) +void scheduler_addFrameHandler(HandlerFunc* onFrame) { frameHandlers[frameHandlersLength++] = onFrame; } diff --git a/src/scheduler.h b/src/scheduler.h index c445322..e8baea2 100644 --- a/src/scheduler.h +++ b/src/scheduler.h @@ -2,7 +2,7 @@ #include #include -typedef void(HanderFunc)(void); +typedef void(HandlerFunc)(void); void scheduler_init(void); void scheduler_vsync(void); @@ -10,5 +10,5 @@ void scheduler_tick(void); void scheduler_run(void); u16 scheduler_ticks(void); -void scheduler_addTickHandler(HanderFunc* onTick); -void scheduler_addFrameHandler(HanderFunc* onFrame); +void scheduler_addTickHandler(HandlerFunc* onTick); +void scheduler_addFrameHandler(HandlerFunc* onFrame);