tm3d
/
owSlave2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Many changes from 2018
[owSlave2.git]
/
DS2450_SHT2X_MAX44009
/
DS2450_SHT2X_MAX44009.c
diff --git
a/DS2450_SHT2X_MAX44009/DS2450_SHT2X_MAX44009.c
b/DS2450_SHT2X_MAX44009/DS2450_SHT2X_MAX44009.c
index
8f5d4f9
..
b5ed22b
100644
(file)
--- a/
DS2450_SHT2X_MAX44009/DS2450_SHT2X_MAX44009.c
+++ b/
DS2450_SHT2X_MAX44009/DS2450_SHT2X_MAX44009.c
@@
-38,7
+38,7
@@
#include <avr/wdt.h>
\r
#include <avr/sleep.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/wdt.h>
\r
#include <avr/sleep.h>
\r
#include <avr/pgmspace.h>
\r
-#include "../common/I2C/
USI_
TWI_Master.h"
\r
+#include "../common/I2C/TWI_Master.h"
\r
#include "../common/I2C/SHT2x.h"
\r
#include "../common/I2C/MAX44009.h"
\r
extern void OWINIT();
\r
#include "../common/I2C/SHT2x.h"
\r
#include "../common/I2C/MAX44009.h"
\r
extern void OWINIT();
\r
@@
-165,7
+165,7
@@
int main(void){
\r
gcontrol=1;
\r
\r
\r
gcontrol=1;
\r
\r
-
USI_
TWI_Master_Initialise();
\r
+ TWI_Master_Initialise();
\r
SHT2x_SoftReset();
\r
SHT2x_ReadUserRegister(userRegister);
\r
//(userRegister & ~SHT2x_RES_MASK) | SHT2x_RES_10_13BIT;
\r
SHT2x_SoftReset();
\r
SHT2x_ReadUserRegister(userRegister);
\r
//(userRegister & ~SHT2x_RES_MASK) | SHT2x_RES_10_13BIT;
\r
@@
-309,7
+309,7
@@
int main(void){
MCUCR|=(1<<SE);
\r
MCUCR&=~(1<<SM1);
\r
}
\r
MCUCR|=(1<<SE);
\r
MCUCR&=~(1<<SM1);
\r
}
\r
-
//
asm("SLEEP");
\r
+
asm("SLEEP");
\r
}
\r
\r
\r
}
\r
\r
\r