1 #ifndef APP_INC_APP_H_ 2 #define APP_INC_APP_H_ 3 4 /********************** CPP guard ********************************************/ 5 #ifdef __cplusplus 6 extern "C" { 7 #endif 8 9 /********************** inclusions *******************************************/ 10 #include <stdbool.h> 11 12 /********************** macros ***********************************************/ 13 14 #define TEST_0 (0) 15 #define TEST_1 (1) 16 #define TEST_2 (2) 17 18 #define TEST_X (TEST_0) 19 20 /********************** typedef **********************************************/ 21 22 typedef struct { 23 bool adc_end_of_conversion; 24 uint16_t adc_value; 25 uint16_t pwm_active; 26 } shared_data_type; 27 28 /********************** external data declaration ****************************/ 29 30 31 /********************** external functions declaration ***********************/ 32 33 void app_init(void); 34 void app_update(void); 35 36 /********************** End of CPP guard *************************************/ 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /* APP_INC_APP_H_ */ 42 43 /********************** end of file ******************************************/
