blob: 154be3d00c7e5b63dde51d45f9f3451944b01595 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*
* 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.io/license.html
*/
#include "../../gfx.h"
#if GFX_USE_OS_NIOS
void _gosHeapInit(void);
void _gosThreadsInit(void);
/*********************************************************
* Initialise
*********************************************************/
void _gosInit(void)
{
// Set up the heap allocator
_gosHeapInit();
// Start the scheduler
_gosThreadsInit();
}
void _gosPostInit(void)
{
}
void _gosDeinit(void)
{
}
void gfxHalt(const char *msg)
{
volatile uint32_t dummy;
(void)msg;
while(1) {
dummy++;
}
}
void gfxExit(void) {
volatile uint32_t dummy;
while(1) {
dummy++;
}
}
gTicks gfxSystemTicks(void)
{
return alt_nticks();
}
gTicks gfxMillisecondsToTicks(gDelay ms)
{
return ms;
}
#endif /* GFX_USE_OS_NIOS */
|