From f17b15bdffe45810eebc7695c10f1d7fc34af014 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Thu, 10 Aug 2017 22:39:31 +0200 Subject: + System timer functions now moved to a separate source file, Timer.c/Timer.h. * Added some more comments on Game.c. * On GamePathToTile(), duplicate checks for existing tile have been replaced by calls to GameWaypointCheckExisting(). --- Source/System.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index b3d36de..cef7b4e 100644 --- a/Source/System.h +++ b/Source/System.h @@ -85,23 +85,6 @@ bool SystemContains_u8(uint8_t value, uint8_t* buffer, size_t sz); // Overload for uint16_t bool SystemContains_u16(uint16_t value, uint16_t* buffer, size_t sz); -// Creates a timer instance wiht a determined value and associates it to a callback -// Once time expires, callback is automatically called right after GfxDrawScene(). -// Time is expressed so that t = 100 ms e.g.: 2 seconds = 20. -TYPE_TIMER* SystemCreateTimer(uint32_t t, bool rf, void (*timer_callback)(void) ); - -// Reportedly, sets all timer data to zero. -void SystemResetTimers(void); - -// To be called every cycle (i.e.: inside GfxDrawScene() ). -void SystemUserTimersHandler(void); - -// Sets timer remaining time to initial value. -void SystemTimerRestart(TYPE_TIMER* timer); - -// Flushes a timer pointed to by timer. -void SystemTimerRemove(TYPE_TIMER* timer); - // Compares two arrays of unsigned short type. bool SystemArrayCompare(unsigned short* arr1, unsigned short* arr2, size_t sz); -- cgit v1.2.3