Skip to content

Commit

Permalink
I canz English?
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Mar 30, 2024
1 parent 311fca8 commit 90ce5d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
6 changes: 3 additions & 3 deletions src/scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#include <stdint.h>
#include <types.h>

typedef void(HanderFunc)(void);
typedef void(HandlerFunc)(void);

void scheduler_init(void);
void scheduler_vsync(void);
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);

0 comments on commit 90ce5d8

Please sign in to comment.