work1

Dependencies:   mbed MAX44009 mbed-os Si7021

Committer:
danaeb
Date:
Wed May 27 11:37:29 2020 +0000
Revision:
0:d3e390d62607
create

Who changed what in which revision?

UserRevisionLine numberNew contents of line
danaeb 0:d3e390d62607 1 #include "board/SensorBoardId.h"
danaeb 0:d3e390d62607 2 #include "types.h"
danaeb 0:d3e390d62607 3
danaeb 0:d3e390d62607 4 #define COMMAND_PARSER_COUNT 2
danaeb 0:d3e390d62607 5 //#define SENSOR_DATA_TYPE u16
danaeb 0:d3e390d62607 6 #define SENSOR_DATA_SIZE 2
danaeb 0:d3e390d62607 7
danaeb 0:d3e390d62607 8 #if SENSOR_DATA_SIZE == 1
danaeb 0:d3e390d62607 9 #define SENSOR_DATA_TYPE u8
danaeb 0:d3e390d62607 10 #elif SENSOR_DATA_SIZE == 2
danaeb 0:d3e390d62607 11 #define SENSOR_DATA_TYPE u16
danaeb 0:d3e390d62607 12 #elif SENSOR_DATA_SIZE == 4
danaeb 0:d3e390d62607 13 #define SENSOR_DATA_TYPE u32
danaeb 0:d3e390d62607 14 #else
danaeb 0:d3e390d62607 15 #error Invalid sensor data size
danaeb 0:d3e390d62607 16 #endif
danaeb 0:d3e390d62607 17
danaeb 0:d3e390d62607 18 #define CONFIG_SENSOR_COUNT SENSOR_ID_BOARD_COUNT
danaeb 0:d3e390d62607 19
danaeb 0:d3e390d62607 20 #define SENSOR_DATA_SET_COUNT 8
danaeb 0:d3e390d62607 21
danaeb 0:d3e390d62607 22 #define SENSOR_DATA_SENSOR_COUNT CONFIG_SENSOR_COUNT
danaeb 0:d3e390d62607 23 #define STRUCTURE_DATA_SET_MAX_VALUE CONFIG_SENSOR_COUNT
danaeb 0:d3e390d62607 24 #define COMMAND_SAMPLE_SELECTOR_SENSOR_COUNT CONFIG_SENSOR_COUNT
danaeb 0:d3e390d62607 25
danaeb 0:d3e390d62607 26