Subversion Repositories freemyipod

Rev

Rev 170 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 170 Rev 187
Line 821... Line 821...
821
	mov	r4, #0
821
	mov	r4, #0
822
	str	r4, [r12,#0x08]
822
	str	r4, [r12,#0x08]
823
	str	r0, [r12,#0x0c]
823
	str	r0, [r12,#0x0c]
824
	mov	r4, #0xf0
824
	mov	r4, #0xf0
825
	str	r4, [r12,#0x04]
825
	str	r4, [r12,#0x04]
826
	mov	r4, #0xf3
826
	mov	r4, #0xb7
827
	str	r4, [r12]
827
	str	r4, [r12]
828
	bl	i2cwait
828
	bl	i2cwait
829
	str	r1, [r12,#0x0c]
829
	str	r1, [r12,#0x0c]
830
	str	r4, [r12]
830
	str	r4, [r12]
831
	bl	i2cwait
831
	bl	i2cwait
Line 859... Line 859...
859
	mov	r4, #0
859
	mov	r4, #0
860
	str	r4, [r12,#0x08]
860
	str	r4, [r12,#0x08]
861
	str	r0, [r12,#0x0c]
861
	str	r0, [r12,#0x0c]
862
	mov	r4, #0xf0
862
	mov	r4, #0xf0
863
	str	r4, [r12,#0x04]
863
	str	r4, [r12,#0x04]
864
	mov	r4, #0xf3
864
	mov	r4, #0xb7
865
	str	r4, [r12]
865
	str	r4, [r12]
866
	bl	i2cwait
866
	bl	i2cwait
867
	str	r1, [r12,#0x0c]
867
	str	r1, [r12,#0x0c]
868
	str	r4, [r12]
868
	str	r4, [r12]
869
	bl	i2cwait
869
	bl	i2cwait
Line 874... Line 874...
874
	str	r0, [r12,#0x04]
874
	str	r0, [r12,#0x04]
875
	str	r4, [r12]
875
	str	r4, [r12]
876
	bl	i2cwait
876
	bl	i2cwait
877
i2crecv_read:
877
i2crecv_read:
878
	subs	r3, r3, #1
878
	subs	r3, r3, #1
879
	moveq	r4, #0x73
879
	moveq	r4, #0x37
880
	str	r4, [r12]
880
	str	r4, [r12]
881
	bl	i2cwait
881
	bl	i2cwait
882
	ldr	r0, [r12,#0x0c]
882
	ldr	r0, [r12,#0x0c]
883
	movs	r2, r2
883
	movs	r2, r2
884
	strne	r0, [r2], #1
884
	strne	r0, [r2], #1
885
	movs	r3, r3
885
	movs	r3, r3
886
	bne	i2crecv_read
886
	bne	i2crecv_read
887
	mov	r1, #0x90
887
	mov	r1, #0x90
888
	str	r1, [r12,#0x04]
888
	str	r1, [r12,#0x04]
889
	mov	r1, #0xf3
889
	mov	r1, #0xb7
890
	str	r1, [r12]
890
	str	r1, [r12]
891
i2crecv_wait:
891
i2crecv_wait:
892
	ldr	r1, [r12,#0x04]
892
	ldr	r1, [r12,#0x04]
893
	tst	r1, #0x20
893
	tst	r1, #0x20
894
	bne	i2crecv_wait
894
	bne	i2crecv_wait