summaryrefslogtreecommitdiff
path: root/Source/System.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-07-24 22:39:16 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-07-24 22:39:16 +0200
commitf071adf8f590bb2d2ceee7d93bea120c9d754788 (patch)
treee5cd62882fed370bc2d0f75ca6f10fe4b65d5940 /Source/System.h
parent41d8caba3b3e7611d657c0ee4cecd1cdbdf0c814 (diff)
* Some improvements made to improve peformance and stability.
- Removed Pad module (useless). * Some functions removed from System and Gfx.
Diffstat (limited to 'Source/System.h')
-rw-r--r--Source/System.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/Source/System.h b/Source/System.h
index 89f6be4..2994366 100644
--- a/Source/System.h
+++ b/Source/System.h
@@ -52,9 +52,6 @@ bool SystemIsRandSeedSet(void);
// Stops program flow during X cycles
void SystemWaitCycles(uint32_t cycles);
-// To be called from GfxDrawScene after each cycle
-void SystemRunTimers(void);
-
// 1 cycle-length flag with a frequency of 1 Hz
bool System1SecondTick(void);
@@ -88,26 +85,12 @@ 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);
-
// Looks for string "str" inside a string array pointed to by "array".
// Returns index inside string array on success, -1 if not found.
int32_t SystemIndexOfStringArray(char* str, char** array);