upgrade to gint 2.4
This commit is contained in:
parent
22569a2241
commit
1ed7169f45
|
@ -24,7 +24,7 @@ include(GenerateG1A)
|
|||
include(GenerateG3A)
|
||||
include(Fxconv)
|
||||
include_directories(include)
|
||||
find_package(Gint 2.1 REQUIRED)
|
||||
find_package(Gint 2.4.0 REQUIRED)
|
||||
|
||||
set(SOURCES
|
||||
src/main.c
|
||||
|
|
|
@ -15,10 +15,9 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
int
|
||||
callback(volatile void *arg)
|
||||
callback(volatile int *arg)
|
||||
{
|
||||
volatile bool *has_ticked = arg;
|
||||
*has_ticked = true;
|
||||
*arg = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -39,9 +38,9 @@ main(void)
|
|||
i16 y_offset = DRAW_OFFSET_Y_DEFAULT;
|
||||
|
||||
/* UPS control. */
|
||||
volatile bool has_ticked = true;
|
||||
volatile int has_ticked = true;
|
||||
int timer =
|
||||
timer_setup(TIMER_ANY, 1000000 / TARGET_UPS, callback, &has_ticked);
|
||||
timer_configure(TIMER_ANY, 1000000 / TARGET_UPS, GINT_CALL(callback, &has_ticked));
|
||||
timer_start(timer);
|
||||
|
||||
/* Core loop. */
|
||||
|
|
Loading…
Reference in New Issue