📄 hal_camera.ms
字号:
.def ent, scl 101, type 0x0, endef
CamActvPulldownEnSet:
; .frame %sp,12,$31 # vars= 0, regs= 3/0, args= 0, extra= 0
; .mask 0x80030000,-4
; .fmask 0x00000000,0
pushn %r1
ld.w %r1,%r12
ld.w %r0,%r13
.def CameraNum, val 1, scl 17, tag __T0, size 4, type 0xa, endef
.def enable, val 0, scl 17, type 0xc, endef
.loc 362
.def begin, scl 100, type 0x0, endef
.def camModeSetting, val 10, scl 4, type 0xd, endef
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 364
ld.w %r11,0x4 ; xld.w %r11,0x00000004 ; 4
ld.w %r9,%r1 ; xsll %r11,%r1
and %r9,0x1f
cmp %r9,0x8
jrle 4
sll %r11,0x8
jp.d -3
sub %r9,0x8
sll %r11,%r9
not %r11,%r11
and %r10,%r11
.loc 365
ld.ub %r0,%r0
add %r1,0x2 ; xadd %r1,%r1,2
ld.w %r9,%r1 ; xsll %r0,%r1
and %r9,0x1f
cmp %r9,0x8
jrle 4
sll %r0,0x8
jp.d -3
sub %r9,0x8
sll %r0,%r9
or %r10,%r0
.loc 366
ld.uh %r10,%r10
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ld.w %r13,%r10
ext halWriteReg16@rh ; xcall halWriteReg16
ext halWriteReg16@rm
call halWriteReg16@rl
.loc 367
.def bend, scl 110, type 0x0, endef
popn %r1
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamActvPulldownEnGet, val CamActvPulldownEnGet, scl 2, type 0x2c, endef
.global CamActvPulldownEnGet
.loc 377
.def ent, scl 101, type 0x0, endef
CamActvPulldownEnGet:
; .frame %sp,8,$31 # vars= 0, regs= 2/0, args= 0, extra= 0
; .mask 0x80010000,-4
; .fmask 0x00000000,0
pushn %r0
ld.w %r0,%r12
.def CameraNum, val 0, scl 17, tag __T0, size 4, type 0xa, endef
.loc 378
.def begin, scl 100, type 0x0, endef
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 380
ld.uh %r10,%r10
add %r0,0x2 ; xadd %r0,%r0,2
ld.w %r9,%r0 ; xsra %r10,%r0
and %r9,0x1f
cmp %r9,0x8
jrle 4
sra %r10,0x8
jp.d -3
sub %r9,0x8
sra %r10,%r9
.loc 381
and %r10,0x1 ; xand %r10,%r10,0x00000001
.loc 382
.def bend, scl 110, type 0x0, endef
popn %r0
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamModeSelSet, val CamModeSelSet, scl 2, type 0x21, endef
.global CamModeSelSet
.loc 391
.def ent, scl 101, type 0x0, endef
CamModeSelSet:
; .frame %sp,8,$31 # vars= 0, regs= 2/0, args= 0, extra= 0
; .mask 0x80010000,-4
; .fmask 0x00000000,0
pushn %r0
ld.w %r0,%r12
.def camModeSel, val 0, scl 17, tag __T3, size 4, type 0xa, endef
.loc 392
.def begin, scl 100, type 0x0, endef
.def camModeSetting, val 10, scl 4, type 0xd, endef
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 394
ext 0x3ff ; xand %r10,%r10,0x0000fff9
and %r10,0x39
.loc 395
or %r10,%r0
.loc 396
ld.uh %r10,%r10
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ld.w %r13,%r10
ext halWriteReg16@rh ; xcall halWriteReg16
ext halWriteReg16@rm
call halWriteReg16@rl
.loc 397
.def bend, scl 110, type 0x0, endef
popn %r0
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamModeSelGet, val CamModeSelGet, scl 2, tag __T3, size 4, type 0x2a, endef
.global CamModeSelGet
.loc 406
.def ent, scl 101, type 0x0, endef
CamModeSelGet:
; .frame %sp,4,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
; .mask 0x80000000,-4
; .fmask 0x00000000,0
.loc 407
.def begin, scl 100, type 0x0, endef
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 410
and %r10,0x6 ; xand %r10,%r10,0x00000006
.loc 411
.def bend, scl 110, type 0x0, endef
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamClkOutSet, val CamClkOutSet, scl 2, type 0x21, endef
.global CamClkOutSet
.loc 422
.def ent, scl 101, type 0x0, endef
CamClkOutSet:
; .frame %sp,12,$31 # vars= 0, regs= 3/0, args= 0, extra= 0
; .mask 0x80030000,-4
; .fmask 0x00000000,0
pushn %r1
ld.w %r0,%r12
ld.w %r1,%r0
.def clkOut, val 1, scl 17, type 0xc, endef
.loc 423
.def begin, scl 100, type 0x0, endef
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 426
ext 0x3ff ; xand %r10,%r10,0x0000fffe
and %r10,0x3e
.loc 427
and %r0,0x1 ; xand %r0,%r0,0x00000001
.loc 428
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ld.w %r13,%r0
or %r13,%r10
ext halWriteReg16@rh ; xcall halWriteReg16
ext halWriteReg16@rm
call halWriteReg16@rl
.loc 436
.def bend, scl 110, type 0x0, endef
popn %r1
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamClkOutGet, val CamClkOutGet, scl 2, type 0x2c, endef
.global CamClkOutGet
.loc 447
.def ent, scl 101, type 0x0, endef
CamClkOutGet:
; .frame %sp,4,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
; .mask 0x80000000,-4
; .fmask 0x00000000,0
.loc 448
.def begin, scl 100, type 0x0, endef
ext 0x4 ; xld.w %r12,0x00000110 ; 272
ld.w %r12,0x10
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 451
and %r10,0x1 ; xand %r10,%r10,0x00000001
.loc 452
.def bend, scl 110, type 0x0, endef
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamFrameSampCtlSet, val CamFrameSampCtlSet, scl 2, type 0x21, endef
.global CamFrameSampCtlSet
.loc 465
.def ent, scl 101, type 0x0, endef
CamFrameSampCtlSet:
; .frame %sp,4,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
; .mask 0x80000000,-4
; .fmask 0x00000000,0
.def frameSampCtl, val 12, scl 17, tag __T1, size 4, type 0xa, endef
.loc 466
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamFrameSampCtlGet, val CamFrameSampCtlGet, scl 2, tag __T1, size 4, type 0x2a, endef
.global CamFrameSampCtlGet
.loc 475
.def ent, scl 101, type 0x0, endef
CamFrameSampCtlGet:
; .frame %sp,4,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
; .mask 0x80000000,-4
; .fmask 0x00000000,0
.loc 476
.def begin, scl 100, type 0x0, endef
.loc 477
ld.w %r10,0x0
.loc 478
.def bend, scl 110, type 0x0, endef
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamImageCapIntCtlSet, val CamImageCapIntCtlSet, scl 2, type 0x21, endef
.global CamImageCapIntCtlSet
.loc 488
.def ent, scl 101, type 0x0, endef
CamImageCapIntCtlSet:
; .frame %sp,8,$31 # vars= 0, regs= 2/0, args= 0, extra= 0
; .mask 0x80010000,-4
; .fmask 0x00000000,0
pushn %r0
ld.w %r0,%r12
.def vSyncActv, val 0, scl 17, type 0xc, endef
.loc 489
.def begin, scl 100, type 0x0, endef
ext 0x4 ; xld.w %r12,0x00000112 ; 274
ld.w %r12,0x12
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 491
ext 0x3ff ; xand %r10,%r10,0x0000fffd
and %r10,0x3d
.loc 492
ld.ub %r0,%r0
sll %r0,0x1 ; xsll %r0,1
.loc 493
ext 0x4 ; xld.w %r12,0x00000112 ; 274
ld.w %r12,0x12
ld.w %r13,%r10
or %r13,%r0
ext halWriteReg16@rh ; xcall halWriteReg16
ext halWriteReg16@rm
call halWriteReg16@rl
.loc 494
.def bend, scl 110, type 0x0, endef
popn %r0
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamImageCapIntCtlGet, val CamImageCapIntCtlGet, scl 2, type 0x2c, endef
.global CamImageCapIntCtlGet
.loc 504
.def ent, scl 101, type 0x0, endef
CamImageCapIntCtlGet:
; .frame %sp,4,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
; .mask 0x80000000,-4
; .fmask 0x00000000,0
.loc 505
.def begin, scl 100, type 0x0, endef
ext 0x4 ; xld.w %r12,0x00000112 ; 274
ld.w %r12,0x12
ext halReadReg16@rh ; xcall halReadReg16
ext halReadReg16@rm
call halReadReg16@rl
.loc 507
ld.uh %r10,%r10
srl %r10,0x1 ; xsrl %r10,1
.loc 508
and %r10,0x1 ; xand %r10,%r10,0x00000001
.loc 509
.def bend, scl 110, type 0x0, endef
ret
.def end, scl 111, type 0x0, endef
.align 1
.def CamImageCapIntEnSet, val CamImageCapIntEnSet, scl 2, type 0x21, endef
.global CamImageCapIntEnSet
.loc 520
.def ent, scl 101, type 0x0, endef
CamImageCapIntEnSet:
; .frame %sp,8,$31 # vars= 0, regs= 2/0, args= 0, extra= 0
; .mask 0x80010000,-4
; .fmask 0x00000000,0
pushn %r0
ld.w %r0,%r12
.def enable, val 12, scl 17, type 0xc, endef
.loc 521
.def begin, scl 100, type 0x0, endef
ext 0x4 ; xld.w %r12,0x00000112 ; 274
ld.w %r12,0x12
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -