File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ extern "C" {
20
20
/**
21
21
* Register OneWire bus
22
22
* @param pin [in] IO pin number @ref gpioname_e
23
- * @return On success, returns handle to OneWire Bus object. On error returns negative value.
23
+ * @return On success, returns handle to OneWire Bus object. 0 on error (no memory)
24
24
*/
25
25
int OneWire (uint8_t pin );
26
26
@@ -154,7 +154,9 @@ uint8_t ow_crc8(const uint8_t *addr, uint8_t len);
154
154
155
155
/**
156
156
* Compute the 1-Wire CRC16 and compare it against the received CRC.
157
+ *
157
158
* Example usage (reading a DS2408):
159
+ *
158
160
* // Put everything in a buffer so we can compute the CRC easily.
159
161
* uint8_t buf[13];
160
162
* buf[0] = 0xF0; // Read PIO Registers
Original file line number Diff line number Diff line change @@ -13,11 +13,6 @@ extern "C"
13
13
{
14
14
#endif
15
15
16
- /**
17
- * Main Task ID
18
- */
19
- #define main_taskid 0
20
-
21
16
/**
22
17
* @name ev_flags
23
18
* Event flags
Original file line number Diff line number Diff line change 6
6
#ifndef INCLUDE_TIMER_H_
7
7
#define INCLUDE_TIMER_H_
8
8
9
- #include "../include/ task_timer.h"
9
+ #include "task_timer.h"
10
10
11
11
#ifdef __cplusplus
12
12
extern "C" {
You can’t perform that action at this time.
0 commit comments