sensor_lib_config.h
Go to the documentation of this file.
1 
8 #ifndef TOPOSENS_CONFIG_SENSOR_LIB_CONFIG_H /* include control, avoid multiple includes of header \
9  file */
10 #define TOPOSENS_CONFIG_SENSOR_LIB_CONFIG_H
11 
12 /*---- <system includes> --------------------------------------------------------------*/
13 #include <stdio.h>
14 /*---- "library includes" -------------------------------------------------------------*/
15 
16 /*---- "project includes" -------------------------------------------------------------*/
17 
18 /*---- public macros and constants ----------------------------------------------------*/
22 #ifdef __linux__
23 
26 #define CAN_AVAILABLE
27 
30 #define UART_AVAILABLE
31 #endif
32 
35 #define MAX_NUMBER_OF_SENSORS_ON_BUS 10
36 
40 #define MAX_NUMBER_OF_POINTS_PER_SESSION 50
41 
45 // #define REGULAR_PRINTF 1
46 
47 #ifdef EMBEDDED
48 #define MPRINTF(f_, ...) otherprintf((f_), __VA_ARGS__)
49 #elif REGULAR_PRINTF
50 #define MPRINTF(f_, ...) printf((f_), ##__VA_ARGS__)
51 #else
52 #define NOREALPRINTF 1
53 #define MPRINTF(f_, ...) \
54  do \
55  { \
56  if (0) printf((f_), ##__VA_ARGS__); \
57  } while (0) // To also allow no print output
58 #endif
59 #define DEVICE_NAME_LEN 100
60 /*---- public types -------------------------------------------------------------------*/
61 
62 /*---- public variables prototypes ----------------------------------------------------*/
63 
64 /*---- public functions prototypes ----------------------------------------------------*/
65 
66 /*---- public inline functions --------------------------------------------------------*/
67 
68 #endif // TOPOSENS_CONFIG_SENSOR_LIB_CONFIG_H


toposens_echo_driver
Author(s): Tobias Roth , Dennis Maier , Baris Yazici
autogenerated on Wed Mar 2 2022 01:12:32