aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_nios.h
blob: 3ef7756f627549793253898df7d83567dddeb19c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * This file is subject to the terms of the GFX License. If a copy of
 * the license was not distributed with this file, you can obtain one at:
 *
 *              http://ugfx.org/license.html
 */

#ifndef _GOS_NIOS_H
#define _GOS_NIOS_H

#if GFX_USE_OS_NIOS

#include <sys/alt_alarm.h>

typedef alt_u32 systemticks_t;
typedef alt_u32 delaytime_t;

void gfxHalt(const char* msg);
void gfxExit(void);
systemticks_t gfxSystemTicks(void);
systemticks_t gfxMillisecondsToTicks(delaytime_t ms);

// Use the generic thread handling and heap handling
#define GOS_NEED_X_THREADS	GFXON
#define GOS_NEED_X_HEAP		GFXON

#include "gos_x_threads.h"
#include "gos_x_heap.h"

#endif /* GFX_USE_OS_NIOS */
#endif /* _GOS_NIOS_H */