コード例 #1
0
ファイル: ch7025.c プロジェクト: AndrewDB/rk3066-kernel
static void ch7205_disable(void)
{
	DBG("%s start", __FUNCTION__);
	if(ch7025.io_rst_pin != INVALID_GPIO) {
		gpio_direction_output(ch7025.io_rst_pin, GPIO_LOW);
		msleep(1);
		gpio_direction_output(ch7025.io_rst_pin, GPIO_HIGH);
	}
	else
		ch7025_write_reg( 0x04, v_PD_DAC(7) | v_PD_PWR(1) );
}
コード例 #2
0
ファイル: ch7026.c プロジェクト: alessandroste/testBSP
static void ch7206_enable(void)
{
	DBG("%s start", __FUNCTION__);
	ch7026_write_reg( 0x04, v_PD_DAC(0) | v_PD_PWR(0) );
}