chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40dec3e
)
new pinlat_if[hl] macros
author
ian
<ian>
Wed, 28 Dec 2005 00:51:30 +0000
(
00:51
+0000)
committer
ian
<ian>
Wed, 28 Dec 2005 00:51:30 +0000
(
00:51
+0000)
detpic/common.inc
patch
|
blob
|
history
detpic/points.asm
patch
|
blob
|
history
diff --git
a/detpic/common.inc
b/detpic/common.inc
index a41f79178ba6d2f82cc933c514ab0acabd9e2af5..3d5cedd4481b0ed064c6af98ccd5c4033d236483 100644
(file)
--- a/
detpic/common.inc
+++ b/
detpic/common.inc
@@
-301,4
+301,12
@@
pin_ifl macro pinspec
bt_f_if0 PORTA + (PORTB-PORTA)*((pinspec-0xa) & 15), pinspec >> 4
endm
+pinlat_ifh macro pinspec
+ bt_f_if1 LATA + (LATB-LATA)*((pinspec-0xa) & 15), pinspec >> 4
+ endm
+
+pinlat_ifl macro pinspec
+ bt_f_if0 LATA + (LATB-LATA)*((pinspec-0xa) & 15), pinspec >> 4
+ endm
+
;----------------------------------------------------------------------
diff --git
a/detpic/points.asm
b/detpic/points.asm
index d2103fc7f1d0b9686818447479cf6b6b919b228b..0e1067612ff7a43fb73e5f98a05416ff2f866849 100644
(file)
--- a/
detpic/points.asm
+++ b/
detpic/points.asm
@@
-370,7
+370,7
@@
cdu_on
;--------------------
cdu_tickdiv
- bt_f_if0 LATB, p0_cdu_enable >> 4
+ pinlat_ifl p0_cdu_enable
return
tst_f_ifnz cducharging