From: ian Date: Sat, 17 May 2008 13:58:06 +0000 (+0000) Subject: extend comment re pin[lat]_... macros X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=617a2b6d36e9287de728d0ff8dff023d1b189cb8;p=trains.git extend comment re pin[lat]_... macros --- diff --git a/detpic/common.inc b/detpic/common.inc index c92abfa..bcae285 100644 --- a/detpic/common.inc +++ b/detpic/common.inc @@ -343,15 +343,20 @@ p0_booster_pwm equ 1c ; PORT* may be read, see below ; everything else untouched ; -; LAT* TRIS* PORT* -; pin_z untouched set untouched -; pin_h set cleared untouched -; pin_l cleared cleared untouched -; pin_nz untouched cleared untouched -; pin_vh set untouched untouched -; pin_vl cleared untouched untouched -; pin_ifh untouched untouched read -; pin_ifl untouched untouched read +; LAT* TRIS* PORT* W +; pin_z - set - - +; pin_h set cleared - - +; pin_l cleared cleared - - +; pin_nz - cleared - - +; pin_vh set - - - +; pin_vl cleared - - - +; pin_vhl toggled - - - +; pin_ifh - - read - +; pin_ifl - - read - +; pinlat_ifh read - - - +; pinlat_ifl read - - - +; pin_inw_ifh - - - read +; pin_inw_ifl - - - read pin_z macro pinspec bs_f TRISA + (TRISB-TRISA)*((pinspec-0xa) & 15), pinspec >> 4 @@ -399,7 +404,7 @@ pinlat_ifh macro pinspec bt_f_if1 LATA + (LATB-LATA)*((pinspec-0xa) & 15), pinspec >> 4 endm -pinlat_ifl macro pinspec +pinlat_ifl macro pinspec bt_f_if0 LATA + (LATB-LATA)*((pinspec-0xa) & 15), pinspec >> 4 endm @@ -407,7 +412,7 @@ pin_inw_ifh macro pinspec bt_w_if1 pinspec >> 4 endm -pin_inw_ifl macro pinspec +pin_inw_ifl macro pinspec bt_w_if0 pinspec >> 4 endm