projects
/
my-code
/
atmel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arrrrgh!
[my-code/atmel.git]
/
monolyzer
/
port.asm
diff --git
a/monolyzer/port.asm
b/monolyzer/port.asm
index
42c08fa
..
85c57e1
100644
(file)
--- a/
monolyzer/port.asm
+++ b/
monolyzer/port.asm
@@
-6,7
+6,7
@@
PORT_INIT:
cbi DDRD,2
; switch pull-up off (useless, default)
cbi DDRD,2
; switch pull-up off (useless, default)
- cbi
DDR
D,2
+ cbi
PORT
D,2
; port d pin 6 -> output
sbi DDRD,6
; port d pin 6 -> output
sbi DDRD,6
@@
-19,8
+19,7
@@
PORT_INIT:
ret
ret
-
-INT0_IR_CONF_INIT:
+INT0_IR_CONF_R:
; trigger interrupt on rising edge
in tmp1,MCUCR
; trigger interrupt on rising edge
in tmp1,MCUCR
@@
-30,7
+29,17
@@
INT0_IR_CONF_INIT:
ret
ret
-INT0_IR_CONF_RUN:
+INT0_IR_CONF_F:
+
+ ; trigger interrupt on rising edge
+ in tmp1,MCUCR
+ sbr tmp1,(1<<ISC01)
+ cbr tmp1,(1<<ISC00)
+ out MCUCR,tmp1
+
+ ret
+
+INT0_IR_CONF_FR:
; trigger interrupt on falling and rising edge
in tmp1,MCUCR
; trigger interrupt on falling and rising edge
in tmp1,MCUCR