µGFX  2.9
version 2.9
gos_nios.h
1 /*
2  * This file is subject to the terms of the GFX License. If a copy of
3  * the license was not distributed with this file, you can obtain one at:
4  *
5  * http://ugfx.io/license.html
6  */
7 
8 #ifndef _GOS_NIOS_H
9 #define _GOS_NIOS_H
10 
11 #if GFX_USE_OS_NIOS
12 
13 #include <sys/alt_alarm.h>
14 
15 typedef alt_u32 gTicks;
16 typedef alt_u32 gDelay;
17 
18 void gfxHalt(const char* msg);
19 void gfxExit(void);
20 gTicks gfxSystemTicks(void);
21 gTicks gfxMillisecondsToTicks(gDelay ms);
22 
23 // Use the generic thread handling and heap handling
24 #define GOS_NEED_X_THREADS GFXON
25 #define GOS_NEED_X_HEAP GFXON
26 
27 #include "gos_x_threads.h"
28 #include "gos_x_heap.h"
29 
30 #endif /* GFX_USE_OS_NIOS */
31 #endif /* _GOS_NIOS_H */
gTicks gfxSystemTicks(void)
Get the current operating system tick time.
gTicks gfxMillisecondsToTicks(gDelay ms)
Convert a given number of millseconds to a number of operating system ticks.
void gfxExit(void)
Exit the GFX application.
void gfxHalt(const char *msg)
Halt the GFX application due to an error.