/* * hal.h * * Created on: Aug 3, 2016 * Author: sebastian */ #ifndef HAL_H_ #define HAL_H_ #define RELAIS_HEAT 29 #define RELAIS_PUMP 25 #define RELAIS_POWER 28 #define HAL_INT0 0 // buttom button #define HAL_INT1 2 // top button #define HAL_FLOW 3 // flow sensor #define FLOW_ML_PULSE (1000.0/990) // Flow sensor: volume (ml) per pulse void halInit(void); void halRelaisOn(int relais); void halRelaisOff(int relais); void halRelaisSet(int relais, int state); void halInt0(void); void halInt1(void); void halIntFlow(void); float halGetFlow(void); #endif /* HAL_H_ */