Alarm Sensor Module  0.1
⇒ back to Project Page
compat_definitions.h
Go to the documentation of this file.
1 
29 #ifndef COMPAT_DEFINITIONS_H_INCLUDED
30 #define COMPAT_DEFINITIONS_H_INCLUDED
31 
32 #if defined(AVR)
33 #define flash __flash
34 #include <avr/pgmspace.h>
35 #elif defined(STM32)
36 #define PROGMEM
37 #define pgm_read_byte(a) (*(a))
38 #define flash
39 #endif
40 
41 //locical values
42 #ifndef TRUE
43 #define TRUE 1
44 #endif
45 #ifndef FALSE
46 #define FALSE 0
47 #endif
48 
49 #ifndef NULL
50 #define NULL 0u
51 #endif
52 
53 #ifndef UNUSED
54 #define UNUSED(x) (void)x
55 #endif
56 
57 #endif