tm3d
/
owSlave2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename Files of different Devices
[owSlave2.git]
/
DS2438_DHT22
/
DS2438_DHT22.c
diff --git
a/DS2438_DHT22/DS2438_DHT22.c
b/DS2438_DHT22/DS2438_DHT22.c
index
ed96a55
..
c5981c0
100644
(file)
--- a/
DS2438_DHT22/DS2438_DHT22.c
+++ b/
DS2438_DHT22/DS2438_DHT22.c
@@
-32,7
+32,7
@@
#define F_CPU 8000000UL
#define F_CPU 8000000UL
-#define FP_CALC
+
//
#define FP_CALC
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
@@
-43,6
+43,7
@@
extern void OWINIT();
uint8_t owid[8]={0x26, 0xA2, 0xD9, 0x84, 0x00, 0x00, 0x05, 0x16};/**/
uint8_t owid[8]={0x26, 0xA2, 0xD9, 0x84, 0x00, 0x00, 0x05, 0x16};/**/
+uint8_t config_info[16]={0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
extern uint8_t mode;
extern uint8_t mode;
@@
-347,9
+348,9
@@
int main(void){
#define SENSOFF PORTA&=~(1<<PINA1);
// Set up Watch Dog Timer for Inactivity
#define SENSOFF PORTA&=~(1<<PINA1);
// Set up Watch Dog Timer for Inactivity
-
WDTCSR |= (1<<WDCE) ; // Enable the WD Change Bit
-
WDTCSR = (1<<WDIE) | // Enable WDT Interrupt
-
(1<<WDP2) | (1<<WDP1); // Set Timeout to ~2 seconds
+
//
WDTCSR |= (1<<WDCE) ; // Enable the WD Change Bit
+
//
WDTCSR = (1<<WDIE) | // Enable WDT Interrupt
+
//
(1<<WDP2) | (1<<WDP1); // Set Timeout to ~2 seconds
#endif
#endif