X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Flpc-p2378%2Fhw%2Fthermo_map.h;fp=boards%2Flpc-p2378%2Fhw%2Fthermo_map.h;h=5973612b16d31e8e08a27510cf7c9b9ebf9a4013;hb=c15b00a9a85e2aa3fdc681e63d7e92851035b63a;hp=0000000000000000000000000000000000000000;hpb=fd8bd1af65d3eaea3040d74df3d76b51577a67a6;p=bertos.git diff --git a/boards/lpc-p2378/hw/thermo_map.h b/boards/lpc-p2378/hw/thermo_map.h new file mode 100644 index 00000000..5973612b --- /dev/null +++ b/boards/lpc-p2378/hw/thermo_map.h @@ -0,0 +1,70 @@ +/** + * \file + * + * + * \brief Thermo regulation control map definitions. + * + * \version $Id: thermo_map.h 1312 2008-05-20 16:54:52Z asterix $ + * + * \author Francesco Sacchi + */ + +#ifndef THERMO_MAP_H +#define THERMO_MAP_H + +#include +#include + +#warning TODO:This is an example implentation, you must implement it! + +typedef uint8_t thermostatus_t; + +#define THERMO_OFF 0 +#define THERMO_HEATING BV(0) +#define THERMO_FREEZING BV(1) +#define THERMO_TGT_REACH BV(2) +#define THERMOERRF_NTCSHORT BV(3) +#define THERMOERRF_NTCOPEN BV(4) +#define THERMOERRF_TIMEOUT BV(5) +#define THERMO_ACTIVE BV(6) + +#define THERMO_ERRMASK (THERMOERRF_NTCSHORT | THERMOERRF_NTCOPEN | THERMOERRF_TIMEOUT) + +typedef enum ThermoDev +{ + THERMO_TEST, + + /* Put here your thermo device */ + + THERMO_CNT, +} ThermoDev; + +#endif /* THERMO_MAP_H */