diff simple_ds18b20.h @ 326:f6b5941b4c34

Untested - calculate crc in uart_putchar
author Matt Johnston <matt@ucc.asn.au>
date Tue, 22 May 2012 23:23:38 +0800
parents 31199b2941f6
children ca08442635ca
line wrap: on
line diff
--- a/simple_ds18b20.h	Tue May 22 21:32:52 2012 +0800
+++ b/simple_ds18b20.h	Tue May 22 23:23:38 2012 +0800
@@ -1,12 +1,13 @@
 #ifndef SIMPLE_DS18B20_H_
 #define SIMPLE_DS18B20_H_
 #include <stdint.h>
+#include <stdio.h>
 
 #include "ds18x20.h"
 
 uint8_t simple_ds18b20_start_meas(uint8_t id[]);
-void printhex(uint8_t *id, uint8_t n);
-void printhex_byte( const unsigned char  b );
+void printhex(uint8_t *id, uint8_t n, FILE *stream);
+void printhex_byte( const unsigned char  b, FILE *stream );
 uint8_t simple_ds18b20_read_decicelsius( uint8_t id[], int16_t *decicelsius );
 uint8_t simple_ds18b20_read_all();