1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * 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 PRESSURE_CTRL 24
- #define PROXIMITY_SENSOR 6
- #define HAL_INT0 0 // bottom button
- #define HAL_INT1 2 // top button
- #define HAL_FLOW 3 // flow sensor
- #define HAL_PROX_COVERED 1 //proximity 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);
- int halGetPressureCtrl(void);
- int halGetProximitySensor(void);
- #endif /* HAL_H_ */
|