forked from muxedup/dive-computer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.h
More file actions
30 lines (25 loc) · 738 Bytes
/
common.h
File metadata and controls
30 lines (25 loc) · 738 Bytes
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
/** \file common.h
*
* @brief common defines
*
*/
#ifndef _COMMON_H
#define _COMMON_H
#define COUNT_OF(x) (sizeof(x)/sizeof(x[0]))
// system assert macros
#define SYS_ASSERT(exp) \
if(!(exp)) \
{ \
bsp_halt(__FILE__, __LINE__); \
}
#define SYS_FAIL(void) bsp_halt(__FILE__, __LINE__)
#define LCD_CHARS_PER_LINE 20
#define LCD_LINE0 0
#define LCD_LINE1 1
#define LCD_LINE2 2
#define LCD_LINE3 3
#define LCD_LINE4 4
#define LCD_LINE5 5
#define LCD_LINE6 6
#define LCD_LINE7 7
#endif /* _COMMON_H */