comparison 1wire.h @ 24:2b0ed085b95b

- Change to 38400 baud. - Change to ATMega32 - Use interrupt driven serial comms (for rx anyway) - Reformat.
author darius
date Mon, 12 Dec 2005 23:37:16 +1030
parents 4b141cc7cbd4
children b0cb873c0206
comparison
equal deleted inserted replaced
23:845934a4e7fe 24:2b0ed085b95b
38 uint8_t OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only); 38 uint8_t OWFirst(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
39 uint8_t OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only); 39 uint8_t OWNext(uint8_t *ROM, uint8_t do_reset, uint8_t alarm_only);
40 void OWCRC(uint8_t x, uint8_t *crc); 40 void OWCRC(uint8_t x, uint8_t *crc);
41 void OWSendCmd(uint8_t *ROM, uint8_t cmd); 41 void OWSendCmd(uint8_t *ROM, uint8_t cmd);
42 42
43 #define OWIREOUTPORT PORTC 43 #define OWIREOUTPORT PORTD
44 #define OWIREOUTPIN 0 44 #define OWIREOUTPIN 2
45 45
46 #define OWIREINPORT PINC 46 #define OWIREINPORT PIND
47 #define OWIREDDR DDRC 47 #define OWIREDDR DDRD
48 #define OWIREINPIN OWIREOUTPIN 48 #define OWIREINPIN OWIREOUTPIN
49 49
50 /* Return codes for OWFirst()/OWNext() */ 50 /* Return codes for OWFirst()/OWNext() */
51 #define OW_BADWIRE -3 51 #define OW_BADWIRE -3
52 #define OW_BADCRC -2 52 #define OW_BADCRC -2