Created
January 29, 2017 22:35
-
-
Save ayufan/aa3206bdceaae7e5c0410d5e8b337d78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int i2cB_clock( void ) | |
{ | |
int sample = 0; | |
sunxi_lcd_delay_us(5); | |
IIC_SCLB_HIGH(); | |
sunxi_lcd_delay_us(5); | |
IIC_SCLB_LOW(); | |
return (sample); | |
} | |
inline void IIC_SCLB_HIGH(void) | |
{ | |
sunxi_lcd_gpio_set_direction(0, LCD_GPIO_SCLB, 0); | |
} | |
inline void IIC_SDAB_LOW(void) | |
{ | |
sunxi_lcd_gpio_set_direction(0, LCD_GPIO_SDAB, 1); | |
sunxi_lcd_gpio_set_value(0, LCD_GPIO_SDAB, 0); | |
} | |
000000000001dc48 <i2cB_clock>: | |
1dc48: a9be7bfd stp x29, x30, [sp,#-32]! | |
1dc4c: 910003fd mov x29, sp | |
1dc50: f9000bf3 str x19, [sp,#16] | |
1dc54: aa1e03e0 mov x0, x30 | |
1dc58: 90000013 adrp x19, 0 <disp_sys_store> | |
1dc5c: 94000000 bl 0 <_mcount> | |
1dc60: 528000a0 mov w0, #0x5 // #5 | |
1dc64: 94000000 bl 17e08 <sunxi_lcd_delay_us> | |
1dc68: f9400260 ldr x0, [x19] | |
1dc6c: 91001000 add x0, x0, #0x4 | |
1dc70: b9400000 ldr w0, [x0] | |
1dc74: d5033d9f dsb ld | |
1dc78: d5033e9f dsb st | |
1dc7c: f9400261 ldr x1, [x19] | |
1dc80: 121d7000 and w0, w0, #0xfffffff8 | |
1dc84: 91001021 add x1, x1, #0x4 | |
1dc88: b9000020 str w0, [x1] | |
1dc8c: 528000a0 mov w0, #0x5 // #5 | |
1dc90: 94000000 bl 17e08 <sunxi_lcd_delay_us> | |
1dc94: f9400260 ldr x0, [x19] | |
1dc98: 91001000 add x0, x0, #0x4 | |
1dc9c: b9400000 ldr w0, [x0] | |
1dca0: d5033d9f dsb ld | |
1dca4: 121d7000 and w0, w0, #0xfffffff8 | |
1dca8: d5033e9f dsb st | |
1dcac: f9400261 ldr x1, [x19] | |
1dcb0: 32000000 orr w0, w0, #0x1 | |
1dcb4: 91001022 add x2, x1, #0x4 | |
1dcb8: b9000040 str w0, [x2] | |
1dcbc: 91004021 add x1, x1, #0x10 | |
1dcc0: b9400021 ldr w1, [x1] | |
1dcc4: d5033d9f dsb ld | |
1dcc8: d5033e9f dsb st | |
1dccc: f9400260 ldr x0, [x19] | |
1dcd0: 12177821 and w1, w1, #0xfffffeff | |
1dcd4: 91004000 add x0, x0, #0x10 | |
1dcd8: b9000001 str w1, [x0] | |
1dcdc: 52800000 mov w0, #0x0 // #0 | |
1dce0: f9400bf3 ldr x19, [sp,#16] | |
1dce4: a8c27bfd ldp x29, x30, [sp],#32 | |
1dce8: d65f03c0 ret | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment