⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hal_camera.ps

📁 一款SmartPhone的驱动代码
💻 PS
📖 第 1 页 / 共 5 页
字号:
	.loc	427
	xand	%r0,%r0,0x00000001

	.loc	428
	xld.w	%r12,0x00000110		; 272
	ld.w	%r13,%r0
	or	%r13,%r10
	xcall	halWriteReg16

	.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
	xld.w	%r12,0x00000110		; 272
	xcall	halReadReg16

	.loc	451
	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
	xld.w	%r12,0x00000112		; 274
	xcall	halReadReg16

	.loc	491
	xand	%r10,%r10,0x0000fffd

	.loc	492
	ld.ub	%r0,%r0
	xsll	%r0,1

	.loc	493
	xld.w	%r12,0x00000112		; 274
	ld.w	%r13,%r10
	or	%r13,%r0
	xcall	halWriteReg16

	.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
	xld.w	%r12,0x00000112		; 274
	xcall	halReadReg16

	.loc	507
	ld.uh	%r10,%r10
	xsrl	%r10,1

	.loc	508
	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
	xld.w	%r12,0x00000112		; 274
	xcall	halReadReg16

	.loc	523
	xand	%r10,%r10,0x0000fffe

	.loc	524
	xand	%r0,%r0,0x00000001

	.loc	525
	xld.w	%r12,0x00000112		; 274
	ld.w	%r13,%r0
	or	%r13,%r10
	xcall	halWriteReg16

	.loc	526
	.def	bend,	scl	110,	type	0x0,	endef
	popn	%r0
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	CamImageCapIntEnGet,	val	CamImageCapIntEnGet,	scl	2,	type	0x2c,	endef
	.global	CamImageCapIntEnGet

	.loc	537
	.def	ent,	scl	101,	type	0x0,	endef
CamImageCapIntEnGet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	538
	.def	begin,	scl	100,	type	0x0,	endef
	xld.w	%r12,0x00000112		; 274
	xcall	halReadReg16

	.loc	541
	xand	%r10,%r10,0x00000001

	.loc	542
	.def	bend,	scl	110,	type	0x0,	endef
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	CamSoftReset,	val	CamSoftReset,	scl	2,	type	0x21,	endef
	.global	CamSoftReset

	.loc	551
	.def	ent,	scl	101,	type	0x0,	endef
CamSoftReset:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	552
	.def	begin,	scl	100,	type	0x0,	endef
	.def	camCtl,	val	10,	scl	4,	type	0xd,	endef
	xld.w	%r12,0x00000114		; 276
	xcall	halReadReg16

	.loc	554
	xoor	%r10,%r10,0x00000001

	.loc	555
	ld.uh	%r10,%r10
	xld.w	%r12,0x00000114		; 276
	ld.w	%r13,%r10
	xcall	halWriteReg16

	.loc	556
	.def	bend,	scl	110,	type	0x0,	endef
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroCapDelayCtlGet,	val	StroCapDelayCtlGet,	scl	2,	type	0x2c,	endef
	.global	StroCapDelayCtlGet

	.loc	566
	.def	ent,	scl	101,	type	0x0,	endef
StroCapDelayCtlGet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	567
	ld.w	%r10,0x0

	.loc	568
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroCapDelayCtlSet,	val	StroCapDelayCtlSet,	scl	2,	type	0x21,	endef
	.global	StroCapDelayCtlSet

	.loc	577
	.def	ent,	scl	101,	type	0x0,	endef
StroCapDelayCtlSet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	.def	capDelayCtl,	val	12,	scl	17,	type	0xc,	endef

	.loc	579
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroPulseHiGet,	val	StroPulseHiGet,	scl	2,	type	0x2c,	endef
	.global	StroPulseHiGet

	.loc	589
	.def	ent,	scl	101,	type	0x0,	endef
StroPulseHiGet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	590
	xld.w	%r10,0x00000001		; 1

	.loc	591
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroPulseHiSet,	val	StroPulseHiSet,	scl	2,	type	0x21,	endef
	.global	StroPulseHiSet

	.loc	601
	.def	ent,	scl	101,	type	0x0,	endef
StroPulseHiSet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	.def	stroPulseHi,	val	12,	scl	17,	type	0xc,	endef

	.loc	603
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroEnGet,	val	StroEnGet,	scl	2,	type	0x2c,	endef
	.global	StroEnGet

	.loc	613
	.def	ent,	scl	101,	type	0x0,	endef
StroEnGet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	614
	.def	begin,	scl	100,	type	0x0,	endef

	.loc	615
	ld.w	%r10,0x0

	.loc	616
	.def	bend,	scl	110,	type	0x0,	endef
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroEnSet,	val	StroEnSet,	scl	2,	type	0x21,	endef
	.global	StroEnSet

	.loc	626
	.def	ent,	scl	101,	type	0x0,	endef
StroEnSet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	.def	enable,	val	12,	scl	17,	type	0xc,	endef

	.loc	627
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroLineDelayGet,	val	StroLineDelayGet,	scl	2,	type	0x2d,	endef
	.global	StroLineDelayGet

	.loc	636
	.def	ent,	scl	101,	type	0x0,	endef
StroLineDelayGet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	637
	.def	begin,	scl	100,	type	0x0,	endef

	.loc	638
	ld.w	%r10,0x0

	.loc	639
	.def	bend,	scl	110,	type	0x0,	endef
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroLineDelaySet,	val	StroLineDelaySet,	scl	2,	type	0x21,	endef
	.global	StroLineDelaySet

	.loc	648
	.def	ent,	scl	101,	type	0x0,	endef
StroLineDelaySet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	.def	stroLineDelay,	val	12,	scl	17,	type	0xd,	endef

	.loc	650
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroPulseWidthGet,	val	StroPulseWidthGet,	scl	2,	type	0x2d,	endef
	.global	StroPulseWidthGet

	.loc	659
	.def	ent,	scl	101,	type	0x0,	endef
StroPulseWidthGet:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	660
	.def	begin,	scl	100,	type	0x0,	endef

	.loc	661
	ld.w	%r10,0x0

	.loc	662
	.def	bend,	scl	110,	type	0x0,	endef
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	StroPulseWidthSet,	val	StroPulseWidthSet,	scl	2,	type	0x21,	endef
	.global	StroPulseWidthSet

	.loc	671

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -