Si4010-DK
Rev. 0.1
15
/*
*------------------------------------------------------------------------------
*/
Assembly version of the same function, assuming that the file name is ledon.a51 for
Keil toolchain.
;------------------------------------------------------------------------------
;
; INCLUDES:
;
$NOLIST
$INCLUDE (si4010.inc)
$LIST
;---------------------------------------------------------------------------
;
; SEGMENTS:
;
; Assumes file name to be ledon.a51 .. capitalized LEDON is the file name
NAME LEDON
?PR?vLedOn?LEDON SEGMENT CODE
;---------------------------------------------------------------------------
;
; EXTERNALS AND PUBLIC:
;
PUBLIC vLedOn
;---------------------------------------------------------------------------
;
; CODE:
;
RSEG ?PR?vLedOn?LEDON
vLedOn:
setb GPIO_LED
mov A, RBIT_DATA
jnb ACC.B_GPIO_LED_DRIVE, NoC2Disable
orl PROT0_CTRL, #M_C2_OFF
NoC2Disable:
Downloaded from
Elcodis.com
electronic components distributor