projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
drv
/
thermo.h
diff --git
a/bertos/drv/thermo.h
b/bertos/drv/thermo.h
index 9145fa9eeb9c85bb9f26a4d623276d98772d5895..02b1ccbcad4f4ff034d4b3c1e916a28405dab5c5 100644
(file)
--- a/
bertos/drv/thermo.h
+++ b/
bertos/drv/thermo.h
@@
-42,10
+42,10
@@
* of the black box). This low-level driver also controls the units in which the temperature
* is expressed: thermo control treats it just as a number.
*
* of the black box). This low-level driver also controls the units in which the temperature
* is expressed: thermo control treats it just as a number.
*
- * \version $Id$
*
* \author Giovanni Bajo <rasky@develer.com>
* \author Francesco Sacchi <batt@develer.com>
*
* \author Giovanni Bajo <rasky@develer.com>
* \author Francesco Sacchi <batt@develer.com>
+ * \author Daniele Basile <asterix@develer.com>
*
* $WIZ$ module_name = "thermo"
* $WIZ$ module_depends = "timer", "ntc"
*
* $WIZ$ module_name = "thermo"
* $WIZ$ module_depends = "timer", "ntc"
@@
-59,8
+59,9
@@
#include "hw/thermo_map.h"
#include <drv/ntc.h>
#include "hw/thermo_map.h"
#include <drv/ntc.h>
+#include <drv/timer.h>
-
void thermo_init(void)
;
+
typedef uint8_t thermostatus_t
;
/**
/**
@@
-71,6
+72,12
@@
void thermo_init(void);
*/
void thermo_setTarget(ThermoDev dev, deg_t temperature);
*/
void thermo_setTarget(ThermoDev dev, deg_t temperature);
+/**
+ * Start thermo control for a certain device \a dev and stop it after
+ * \a on_time msec.
+ */
+void thermo_timer(ThermoDev dev, mtime_t on_time);
+
/** Start thermo control for a certain device \a dev */
void thermo_start(ThermoDev dev);
/** Start thermo control for a certain device \a dev */
void thermo_start(ThermoDev dev);
@@
-92,5
+99,7
@@
thermostatus_t thermo_status(ThermoDev dev);
*/
deg_t thermo_readTemperature(ThermoDev dev);
*/
deg_t thermo_readTemperature(ThermoDev dev);
+void thermo_init(void);
+
#endif /* DRV_THERMO_H */
#endif /* DRV_THERMO_H */