hal.h 591 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * hal.h
  3. *
  4. * Created on: Aug 3, 2016
  5. * Author: sebastian
  6. */
  7. #ifndef HAL_H_
  8. #define HAL_H_
  9. #define RELAIS_HEAT 29
  10. #define RELAIS_PUMP 25
  11. #define RELAIS_POWER 28
  12. #define HAL_INT0 0 // buttom button
  13. #define HAL_INT1 2 // top button
  14. #define HAL_FLOW 3 // flow sensor
  15. #define FLOW_ML_PULSE (1000.0/990) // Flow sensor: volume (ml) per pulse
  16. void halInit(void);
  17. void halRelaisOn(int relais);
  18. void halRelaisOff(int relais);
  19. void halRelaisSet(int relais, int state);
  20. void halInt0(void);
  21. void halInt1(void);
  22. void halIntFlow(void);
  23. float halGetFlow(void);
  24. #endif /* HAL_H_ */