embedded system library for e-puck  1.0.1
A redesigned API library for the e-puck robot platform
 All Data Structures Files Functions Variables Enumerations Enumerator Modules Pages
el_common.h
Go to the documentation of this file.
1 /*
2 
3 embedded system library for e-puck
4 
5 --------------------------------------------------------------------------------
6 
7 code distribution:
8 https://github.com/jianingchen/epucklib
9 
10 online documentation:
11 http://jianingchen.github.io/epucklib/html/
12 
13 --------------------------------------------------------------------------------
14 
15 This file is released under the terms of the MIT license (see "el.h").
16 
17 */
18 
30 #ifndef EL_COMMON_H
31 #define EL_COMMON_H
32 
33 #include <stdlib.h>
34 #include <stdint.h>
35 
36 #define FALSE 0
37 #define TRUE 1
38 #define false 0
39 #define true 1
40 typedef unsigned char bool;
41 typedef char el_int8;
42 typedef int el_int16;
43 typedef long el_int32;
44 typedef unsigned char el_uint8;
45 typedef unsigned int el_uint16;
46 typedef unsigned long el_uint32;
47 typedef void* el_handle;
48 typedef int el_index;
49 typedef bool el_bool;
50 typedef unsigned int el_flags;
51 typedef unsigned int el_enum;
52 
53 #define BIT(b) (1<<(b))
54 #define el_nop() {__asm__ volatile ("nop");}
55 
56 #define NEVER_RETURN void __attribute__ ((noreturn))
57 
58 #endif /* EL_COMMON_H */
59