summaryrefslogtreecommitdiffstats
path: root/flash/uart_boot/scalar_types.h
blob: f3ac1d86eb50413316f8b83b56f763b7d94be49f (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
// this is meant to resolve platform dependency

#ifndef _SCALAR_TYPES_H
#define _SCALAR_TYPES_H


#ifdef WIN32
#include <windows.h>
#define SLEEP Sleep
#define GET_LAST_ERR GetLastError
#endif
// ToDo: add stuff for Linux



#ifndef UINT8
#define UINT8 unsigned char
#endif

#ifndef UINT16
#define UINT16 unsigned short
#endif

#ifndef UINT32
#define UINT32 unsigned long
#endif

#ifndef bool
#define bool int
#endif

#ifndef true
#define true 1
#endif

#ifndef false
#define false 0
#endif





#endif