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]
/
common
/
OWSet_ATTINYX5.s
diff --git
a/common/OWSet_ATTINYX5.s
b/common/OWSet_ATTINYX5.s
index
4c4528f
..
159d151
100644
(file)
--- a/
common/OWSet_ATTINYX5.s
+++ b/
common/OWSet_ATTINYX5.s
@@
-64,18
+64,25
@@
#else
#else
-#define OWT_MIN_RESET 1
20
-#define OWT_RESET2
6
0
+#define OWT_MIN_RESET 1
40
+#define OWT_RESET2
8
0
#define OWT_RESET_PRESENT 30
#define OWT_PRESENT 130
#define OWT_RESET_PRESENT 30
#define OWT_PRESENT 130
-//#define OWT_WRITE 35
-//#define OWT_READ 12
#define OWT_WRITE 35
#define OWT_READ 12
#endif
#define OWT_WRITE 35
#define OWT_READ 12
#endif
+.macro CLEAR_TOV_FLAG
+ ldi r_temp,(1<<TOV0)
+ out _SFR_IO_ADDR(TIFR),r_temp
+.endm
+
+.macro JMP_NO_TOV
+ in r_temp, _SFR_IO_ADDR(TIFR)
+ sbrc r_temp,TOV0 ; wenn ueberlauf gleiich weiter
+.endm
.macro CLEAR_INTERRUPT_FLAG
ldi r_temp,(1<<INTF0);inerrupt flags durch 1 loeschen..... 0 macht nix
.macro CLEAR_INTERRUPT_FLAG
ldi r_temp,(1<<INTF0);inerrupt flags durch 1 loeschen..... 0 macht nix
@@
-104,6
+111,12
@@
.endm
.endm
+.macro SET_FALLING_RESET_SLEEP
+ in r_temp,_SFR_IO_ADDR(MCUCR)
+ ori r_temp,(1<<ISC01)
+ andi r_temp,~(1<<SM1)
+ out _SFR_IO_ADDR(MCUCR),r_temp
+.endm
.macro HW_INIT
.macro HW_INIT