aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorStephane D'Alu <sdalu@sdalu.com>2016-02-07 19:26:02 +0100
committerStephane D'Alu <sdalu@sdalu.com>2016-02-07 19:26:02 +0100
commitde87b64728ef28264b622b3583442038a231c90f (patch)
treeb4145a624c62da57f6208df647cae031f8667e64 /os/various
parentbd884d47577f398dfef251011ec82c81de9a84d7 (diff)
downloadChibiOS-Contrib-de87b64728ef28264b622b3583442038a231c90f.tar.gz
ChibiOS-Contrib-de87b64728ef28264b622b3583442038a231c90f.tar.bz2
ChibiOS-Contrib-de87b64728ef28264b622b3583442038a231c90f.zip
small fix
Diffstat (limited to 'os/various')
-rw-r--r--os/various/devices_lib/sensors/mcp9808/mcp9808.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/os/various/devices_lib/sensors/mcp9808/mcp9808.h b/os/various/devices_lib/sensors/mcp9808/mcp9808.h
index 74540b4..6a8725d 100644
--- a/os/various/devices_lib/sensors/mcp9808/mcp9808.h
+++ b/os/various/devices_lib/sensors/mcp9808/mcp9808.h
@@ -44,7 +44,6 @@ typedef enum __attribute__ ((__packed__)) {
MCP9808_ERROR = 6, /**< Error. */
} MCP9808_state_t;
-
/**
* @brief MCP9808 configuration structure.
*/
@@ -56,6 +55,13 @@ typedef struct {
} MCP9808_drv;
/**
+ * @brief MCP9808 measure reading
+ */
+typedef struct {
+ float temperature;
+} MCP9808_measure;
+
+/**
* @brief Initialize the sensor driver
*/
void
@@ -102,7 +108,7 @@ MCP9808_setResolution(MCP9808_drv *drv,
static inline unsigned int
MCP9808_getBootupTime(MCP9808_drv *drv) {
(void)drv;
- return 15;
+ return 0; /* no info found */
};
/**
@@ -114,7 +120,7 @@ MCP9808_getBootupTime(MCP9808_drv *drv) {
static inline unsigned int
MCP9808_getStartupTime(MCP9808_drv *drv) {
(void)drv;
- return 0;
+ return 0; /* no info found */
};
/**
@@ -131,6 +137,7 @@ MCP9808_getAcquisitionTime(MCP9808_drv *drv);
*/
static inline msg_t
MCP9808_startMeasure(MCP9808_drv *drv) {
+ return MSG_OK;
}
/**