chiark / gitweb /
new pinlat_if[hl] macros
authorian <ian>
Wed, 28 Dec 2005 00:51:30 +0000 (00:51 +0000)
committerian <ian>
Wed, 28 Dec 2005 00:51:30 +0000 (00:51 +0000)
detpic/common.inc
detpic/points.asm

index a41f79178ba6d2f82cc933c514ab0acabd9e2af5..3d5cedd4481b0ed064c6af98ccd5c4033d236483 100644 (file)
@@ -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
+
 ;----------------------------------------------------------------------
index d2103fc7f1d0b9686818447479cf6b6b919b228b..0e1067612ff7a43fb73e5f98a05416ff2f866849 100644 (file)
@@ -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