-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZ-OS.h
70 lines (58 loc) · 1.33 KB
/
Z-OS.h
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
66
67
68
69
70
/////////////////////////////////////////////////////
// Z-OS Header
// Including this file includes all public Z-OS APIs.
/////////////////////////////////////////////////////
// See the individual files and the documentation for more
// information on the API functions and their usage.
#ifndef _Z_OS_MAIN_HEADER
#define _Z_OS_MAIN_HEADER
// First, some useful functions
__inline static int Max(int x, int y)
{
if ( x > y) return x;
return y;
}
__inline static int Min(int x, int y)
{
if ( x < y) return x;
return y;
}
__inline static int Abs(int x)
{
if ( x > 0) return x;
return -x;
}
__inline static int Sgn(int x)
{
if ( x < 0) return -1;
if (x == 0) return 0;
return 1;
}
// The PIC24H header
#include "p24Hxxxx.h"
// The Standard C Libraries
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// Z-OS Config
#include "Config.h"
// Z-OS APIs
#include "Types.h"
#include "Errors.h"
#include "Init.h"
#include "MemoryManager.h"
#include "Lists.h"
#include "ObjectManager.h"
#include "ThreadManager.h"
#include "Sync.h"
#include "Timer.h"
#include "Queue.h"
#include "Delegate.h"
#include "IO.h"
#include "Devices\Partition.h"
#include "Devices\File.h"
#include "Devices\VirtualFile.h"
#include "Devices\DMA.h"
#include "CacheManager.h"
#endif