本文整理汇总了C++中PK_DBG函数的典型用法代码示例。如果您正苦于以下问题:C++ PK_DBG函数的具体用法?C++ PK_DBG怎么用?C++ PK_DBG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PK_DBG函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: FL_disable
int FL_disable(void)
{
PK_DBG("FL_disable\n");
// upmu_set_flash_en(0);
//upmu_set_rg_bst_drv_1m_ck_pdn(1);
// flash_led_close_flag = 0;
mt_set_gpio_out(GPIO_TORCH_EN_PIN, GPIO_OUT_ZERO);
mt_set_gpio_out(GPIO_FLASH_EN_PIN, GPIO_OUT_ZERO);
if(flash_led_close_flag==1)
{
flash_led_close_flag = 0;
cancel_work_sync(&workTimeOut_600ms);
hrtimer_cancel(&g_timeOutTimer_600ms);
}
return 0;
}
开发者ID:retuaz,项目名称:bqAquaris5,代码行数:16,代码来源:leds_strobe.c
示例2: FL_dim_duty
int FL_dim_duty(kal_uint32 duty)
{
PK_DBG("FL_dim_duty %d, thres %d", duty, LEDS_CUSTOM_MODE_THRES);
if(duty < LEDS_CUSTOM_MODE_THRES)
mt_set_gpio_out(GPIO_CAMERA_FLASH_MODE_PIN, LEDS_TORCH_MODE);
else
mt_set_gpio_out(GPIO_CAMERA_FLASH_MODE_PIN, LEDS_FLASH_MODE);
if((g_timeOutTimeMs == 0) && (duty > LEDS_CUSTOM_MODE_THRES))
{
PK_ERR("FL_dim_duty %d > thres %d, FLASH mode but timeout %d", duty, LEDS_CUSTOM_MODE_THRES, g_timeOutTimeMs);
mt_set_gpio_out(GPIO_CAMERA_FLASH_MODE_PIN, LEDS_TORCH_MODE);
}
// upmu_set_flash_dim_duty(duty);
return 0;
}
开发者ID:4Fwolf,项目名称:mt6572_x201,代码行数:17,代码来源:leds_strobe.c
示例3: FL_init
int FL_init(void)
{
if(mt_set_gpio_mode(FLASH_PIN,GPIO_MODE_00)){PK_DBG("[CAMERA flash] set gpio ENF mode failed!! \n");}
if(mt_set_gpio_dir(FLASH_PIN,GPIO_DIR_OUT)){PK_DBG("[CAMERA flash] set gpio ENF dir failed!! \n");}
if(mt_set_gpio_out(FLASH_PIN,GPIO_OUT_ZERO)){PK_DBG("[CAMERA flash] set gpio ENF failed!! \n");}
if(mt_set_gpio_mode(TORCH_PIN,GPIO_MODE_00)){PK_DBG("[CAMERA flash] set gpio ENT mode failed!! \n");}
if(mt_set_gpio_dir(TORCH_PIN,GPIO_DIR_OUT)){PK_DBG("[CAMERA flash] set gpio ENT dir failed!! \n");}
if(mt_set_gpio_out(TORCH_PIN,GPIO_OUT_ZERO)){PK_DBG("[CAMERA flash] set gpio ENT failed!! \n");}
FL_disable();
INIT_WORK(&workTimeOut, work_timeOutFunc);
return 0;
}
开发者ID:luckasfb,项目名称:bindu-kernel-mediatek,代码行数:13,代码来源:leds_strobe.c
示例4: FL_init
int FL_init(void)
{
PK_DBG("FL_init\n");
// upmu_set_flash_dim_duty(0);
// upmu_set_flash_sel(0);
mt_set_gpio_mode(GPIO_TORCH_EN_PIN, GPIO_TORCH_EN_PIN_M_GPIO);
mt_set_gpio_dir(GPIO_TORCH_EN_PIN, GPIO_DIR_OUT);
mt_set_gpio_out(GPIO_TORCH_EN_PIN, GPIO_OUT_ZERO);
mt_set_gpio_mode(GPIO_FLASH_EN_PIN, GPIO_FLASH_EN_PIN_M_GPIO);
mt_set_gpio_dir(GPIO_FLASH_EN_PIN, GPIO_DIR_OUT);
mt_set_gpio_out(GPIO_FLASH_EN_PIN, GPIO_OUT_ZERO);
// FL_disable();
INIT_WORK(&workTimeOut, work_timeOutFunc);
//fenggy add
INIT_WORK(&workTimeOut_600ms, work_timeOutFunc_600ms);
//fenggy add end
return 0;
}
开发者ID:retuaz,项目名称:bqAquaris5,代码行数:19,代码来源:leds_strobe.c
示例5: FL_enable
int FL_enable(void)
{
PK_DBG("FL_enable g_step=%d\n",g_duty);
// upmu_set_rg_bst_drv_1m_ck_pdn(0);
// upmu_set_flash_en(1);
if(g_duty >2 )
{
if(flash_led_close_flag == 0)
{
flash_led_cnt =0;
flash_led_close_flag = 1;
timerStart_600ms();
mt_set_gpio_out(GPIO_TORCH_EN_PIN, GPIO_OUT_ZERO);
mt_set_gpio_out(GPIO_FLASH_EN_PIN, GPIO_OUT_ONE);
}
}
else
{
mt_set_gpio_out(GPIO_FLASH_EN_PIN, GPIO_OUT_ZERO);
mt_set_gpio_out(GPIO_TORCH_EN_PIN, GPIO_OUT_ONE);
}
return 0;
}
开发者ID:retuaz,项目名称:bqAquaris5,代码行数:24,代码来源:leds_strobe.c
示例6: kdCISModulePowerOn
int kdCISModulePowerOn(CAMERA_DUAL_CAMERA_SENSOR_ENUM SensorIdx, char *currSensorName, BOOL On, char* mode_name)
{
u32 pinSetIdx = 0;//default main sensor
#define IDX_PS_CMRST 0
#define IDX_PS_CMPDN 4
#define IDX_PS_MODE 1
#define IDX_PS_ON 2
#define IDX_PS_OFF 3
u32 swich = 0;
u32 pinSet[3][8] = {
//for main sensor
{GPIO_CAMERA_CMRST_PIN,
GPIO_CAMERA_CMRST_PIN_M_GPIO, /* mode */
GPIO_OUT_ONE, /* ON state */
GPIO_OUT_ZERO, /* OFF state */
GPIO_CAMERA_CMPDN_PIN,
GPIO_CAMERA_CMPDN_PIN_M_GPIO,
GPIO_OUT_ONE, /* ON state */
GPIO_OUT_ZERO, /* OFF state */
},
//for sub sensor
{GPIO_CAMERA_CMRST1_PIN,
GPIO_CAMERA_CMRST1_PIN_M_GPIO,
GPIO_OUT_ONE,
GPIO_OUT_ZERO,
GPIO_CAMERA_CMPDN1_PIN,
GPIO_CAMERA_CMPDN1_PIN_M_GPIO,
GPIO_OUT_ZERO,
GPIO_OUT_ONE,
},
//for main_2 sensor
{GPIO_CAMERA_2_CMRST_PIN,
GPIO_CAMERA_2_CMRST_PIN_M_GPIO, /* mode */
GPIO_OUT_ONE, /* ON state */
GPIO_OUT_ZERO, /* OFF state */
GPIO_CAMERA_2_CMPDN_PIN,
GPIO_CAMERA_2_CMPDN_PIN_M_GPIO,
GPIO_OUT_ZERO,
GPIO_OUT_ONE,
}
};
if (DUAL_CAMERA_MAIN_SENSOR == SensorIdx){
pinSetIdx = 0;
}
else if (DUAL_CAMERA_SUB_SENSOR == SensorIdx) {
pinSetIdx = 1;
}
else if (DUAL_CAMERA_MAIN_SECOND_SENSOR == SensorIdx) {
pinSetIdx = 2;
}
if (currSensorName && (0 == strcmp(SENSOR_DRVNAME_OV5647MIPI_RAW,currSensorName)))
{
swich=1;
}
//power ON
if (On) {
//in case
#if 0 //TODO: depends on HW layout. Should be notified by SA.
printk("Set CAMERA_POWER_PULL_PIN for power \n");
if (mt_set_gpio_pull_enable(GPIO_CAMERA_LDO_EN_PIN, GPIO_PULL_DISABLE)) {PK_DBG("[[CAMERA SENSOR] Set CAMERA_POWER_PULL_PIN DISABLE ! \n"); }
if(mt_set_gpio_mode(GPIO_CAMERA_LDO_EN_PIN, GPIO_CAMERA_LDO_EN_PIN_M_GPIO)){PK_DBG("[[CAMERA SENSOR] set CAMERA_POWER_PULL_PIN mode failed!! \n");}
if(mt_set_gpio_dir(GPIO_CAMERA_LDO_EN_PIN,GPIO_DIR_OUT)){PK_DBG("[[CAMERA SENSOR] set CAMERA_POWER_PULL_PIN dir failed!! \n");}
if(mt_set_gpio_out(GPIO_CAMERA_LDO_EN_PIN,GPIO_OUT_ONE)){PK_DBG("[[CAMERA SENSOR] set CAMERA_POWER_PULL_PIN failed!! \n");}
#endif
if(pinSetIdx == 0) {
if(mt_set_gpio_mode(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_MODE])){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(pinSet[pinSetIdx][IDX_PS_CMPDN],GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(swich){if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_ON])){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}}
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_OFF])){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D2, VOL_1800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
mdelay(1);
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_A, VOL_2800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable analog power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D, VOL_1500,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
//return -EIO;
//.........这里部分代码省略.........
开发者ID:benoitm974,项目名称:cink-peax,代码行数:101,代码来源:kd_camera_hw.c
示例7: kdCISModulePowerOn
int kdCISModulePowerOn(CAMERA_DUAL_CAMERA_SENSOR_ENUM SensorIdx, char *currSensorName, BOOL On, char* mode_name)
{
u32 pinSetIdx = 0;//default main sensor
u32 pinSetIdxTmp = 0;
#define IDX_PS_CMRST 0
#define IDX_PS_CMPDN 4
#define IDX_PS_MODE 1
#define IDX_PS_ON 2
#define IDX_PS_OFF 3
u32 pinSet[2][8] = {
//for main sensor
{GPIO_CAMERA_CMRST_PIN,
GPIO_CAMERA_CMRST_PIN_M_GPIO, /* mode */
GPIO_OUT_ONE, /* ON state */
GPIO_OUT_ZERO, /* OFF state */
GPIO_CAMERA_CMPDN_PIN,
GPIO_CAMERA_CMPDN_PIN_M_GPIO,
GPIO_OUT_ZERO,
GPIO_OUT_ONE,
},
//for sub sensor
{GPIO_CAMERA_CMRST1_PIN,
GPIO_CAMERA_CMRST1_PIN_M_GPIO,
GPIO_OUT_ONE,
GPIO_OUT_ZERO,
GPIO_CAMERA_CMPDN1_PIN,
GPIO_CAMERA_CMPDN1_PIN_M_GPIO,
GPIO_OUT_ZERO,
GPIO_OUT_ONE,
}
};
PK_DBG("kdCISModulePowerOn: 4EC 8AA\n");
if (DUAL_CAMERA_MAIN_SENSOR == SensorIdx){
pinSetIdx = 0;
}
else if (DUAL_CAMERA_SUB_SENSOR == SensorIdx) {
pinSetIdx = 1;
}
//power ON
if (On) {
PK_DBG("kdCISModulePowerOn -on:currSensorName=%s;\n",currSensorName);
//MainCameraDigtalPowerCtrl(1);
if (currSensorName && ((0 == strcmp(SENSOR_DRVNAME_HI253_YUV,currSensorName))||(0 == strcmp(SENSOR_DRVNAME_HI257_YUV,currSensorName))))
{
PK_DBG("[CAMERA SENSOR] kdCISModulePowerOn get in---HI253_YUV or HI257_YUV sensorIdx:%d; pinSetIdx=%d\n",SensorIdx, pinSetIdx);
if (GPIO_CAMERA_INVALID != pinSet[pinSetIdx][IDX_PS_CMRST])
{
if(mt_set_gpio_mode(pinSet[pinSetIdx][IDX_PS_CMRST],pinSet[pinSetIdx][IDX_PS_CMRST+IDX_PS_MODE])){PK_DBG("[CAMERA SENSOR] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(pinSet[pinSetIdx][IDX_PS_CMRST],GPIO_DIR_OUT)){PK_DBG("[CAMERA SENSOR] set gpio dir failed!! \n");}
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMRST],pinSet[pinSetIdx][IDX_PS_CMRST+IDX_PS_OFF])){PK_DBG("[CAMERA SENSOR] set gpio failed!! \n");}
if(mt_set_gpio_mode(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_MODE])){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(pinSet[pinSetIdx][IDX_PS_CMPDN],GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_OFF])){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D2, VOL_1800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");//2.8 ->1.8
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_A, VOL_2800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable analog power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D, VOL_1500,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
msleep(5);
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_OFF])){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMRST],pinSet[pinSetIdx][IDX_PS_CMRST+IDX_PS_OFF])){PK_DBG("[CAMERA SENSOR] set gpio failed!! \n");}
if (GPIO_CAMERA_INVALID != pinSet[pinSetIdx][IDX_PS_CMRST])
{
//PDN pin
if(mt_set_gpio_mode(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_MODE])){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(pinSet[pinSetIdx][IDX_PS_CMPDN],GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_ON])){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
msleep(3);
//RST pin
if(mt_set_gpio_mode(pinSet[pinSetIdx][IDX_PS_CMRST],pinSet[pinSetIdx][IDX_PS_CMRST+IDX_PS_MODE])){PK_DBG("[CAMERA SENSOR] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(pinSet[pinSetIdx][IDX_PS_CMRST],GPIO_DIR_OUT)){PK_DBG("[CAMERA SENSOR] set gpio dir failed!! \n");}
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMRST],pinSet[pinSetIdx][IDX_PS_CMRST+IDX_PS_ON])){PK_DBG("[CAMERA SENSOR] set gpio failed!! \n");}
//.........这里部分代码省略.........
开发者ID:Lenovo-A369i,项目名称:android_kernel_lenovo_a369i,代码行数:101,代码来源:kd_camera_hw.c
示例8: WM8971_WRREG
static inline void WM8971_WRREG(uint16_t reg, uint16_t value)
{
wm8971_current[reg] = value;
PK_DBG("R%d=0x%x\n", reg, value);
spi_write_register(reg, value);
}
开发者ID:kzlin129,项目名称:tt-gpl,代码行数:6,代码来源:wm8971.c
示例9: sub_strobe_release
static int sub_strobe_release(void *pArg)
{
PK_DBG("sub dummy release");
return 0;
}
开发者ID:Niisp,项目名称:MT6795.kernel,代码行数:6,代码来源:strobe_sub_sid2_part1.c
示例10: hw_resume
static int hw_resume(struct device *dev, u32 level)
{
PK_DBG("dev = %p, level = %u\n", dev, level);
return 0;
}
开发者ID:kzlin129,项目名称:tt-gpl,代码行数:5,代码来源:hwdrv.c
示例11: FL_uninit
int FL_uninit(void)
{
PK_DBG("FL_uninit\n");
FL_disable();
return 0;
}
开发者ID:luckasfb,项目名称:bindu-kernel-mediatek,代码行数:6,代码来源:leds_strobe.c
示例12: FL_step
int FL_step(kal_uint32 step)
{
PK_DBG("FL_step\n");
//upmu_set_flash_sel(step);
return 0;
}
开发者ID:luckasfb,项目名称:bindu-kernel-mediatek,代码行数:6,代码来源:leds_strobe.c
示例13: work_timeOutFunc
static void work_timeOutFunc(struct work_struct *data)
{
FL_disable();
PK_DBG("ledTimeOut_callback\n");
//printk(KERN_ALERT "work handler function./n");
}
开发者ID:luckasfb,项目名称:bindu-kernel-mediatek,代码行数:6,代码来源:leds_strobe.c
示例14: hwpowerdown
BOOL hwpowerdown(PowerInformation pwInfo, char* mode_name)
{
if(pwInfo.PowerType == AVDD)
{
if(PowerCustList.PowerCustInfo[0].Gpio_Pin == GPIO_UNSUPPORTED)
{
if(TRUE != hwPowerDown(pwInfo.PowerType,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
return FALSE;
}
}
else{
if(mt_set_gpio_mode(PowerCustList.PowerCustInfo[0].Gpio_Pin,PowerCustList.PowerCustInfo[0].Gpio_Mode)){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(PowerCustList.PowerCustInfo[0].Gpio_Pin,GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(mt_set_gpio_out(PowerCustList.PowerCustInfo[0].Gpio_Pin,PowerCustList.PowerCustInfo[0].Voltage)){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
}
}
else if(pwInfo.PowerType == DVDD)
{
if(PowerCustList.PowerCustInfo[1].Gpio_Pin == GPIO_UNSUPPORTED)
{
if(pinSetIdx==1)
{
if(TRUE != hwPowerDown(PMIC_APP_SUB_CAMERA_POWER_D,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
return FALSE;
}
}
else if(TRUE != hwPowerDown(pwInfo.PowerType,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
return FALSE;
}
else{}
}
else{
if(mt_set_gpio_mode(PowerCustList.PowerCustInfo[1].Gpio_Pin,PowerCustList.PowerCustInfo[1].Gpio_Mode)){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(PowerCustList.PowerCustInfo[1].Gpio_Pin,GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(mt_set_gpio_out(PowerCustList.PowerCustInfo[1].Gpio_Pin,PowerCustList.PowerCustInfo[1].Voltage)){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
}
}
else if(pwInfo.PowerType == DOVDD)
{
if(PowerCustList.PowerCustInfo[2].Gpio_Pin == GPIO_UNSUPPORTED)
{
if(TRUE != hwPowerDown(pwInfo.PowerType,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
return FALSE;
}
}
else{
if(mt_set_gpio_mode(PowerCustList.PowerCustInfo[2].Gpio_Pin,PowerCustList.PowerCustInfo[2].Gpio_Mode)){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(PowerCustList.PowerCustInfo[2].Gpio_Pin,GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(mt_set_gpio_out(PowerCustList.PowerCustInfo[2].Gpio_Pin,PowerCustList.PowerCustInfo[2].Voltage)){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
}
}
else if(pwInfo.PowerType == AFVDD)
{
if(PowerCustList.PowerCustInfo[3].Gpio_Pin == GPIO_UNSUPPORTED)
{
if(TRUE != hwPowerDown(pwInfo.PowerType,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
return FALSE;
}
}
else{
if(mt_set_gpio_mode(PowerCustList.PowerCustInfo[3].Gpio_Pin,PowerCustList.PowerCustInfo[3].Gpio_Mode)){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(PowerCustList.PowerCustInfo[3].Gpio_Pin,GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(mt_set_gpio_out(PowerCustList.PowerCustInfo[3].Gpio_Pin,PowerCustList.PowerCustInfo[3].Voltage)){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
if(PowerCustList.PowerCustInfo[4].Gpio_Pin != GPIO_UNSUPPORTED)
{
mdelay(5);
if(mt_set_gpio_mode(PowerCustList.PowerCustInfo[3].Gpio_Pin,PowerCustList.PowerCustInfo[3].Gpio_Mode)){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(PowerCustList.PowerCustInfo[3].Gpio_Pin,GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(mt_set_gpio_out(PowerCustList.PowerCustInfo[3].Gpio_Pin,PowerCustList.PowerCustInfo[3].Voltage)){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
}
}
}
else if(pwInfo.PowerType==PDN)
{
PK_DBG("PDN\n");
if(mt_set_gpio_mode(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_MODE])){PK_DBG("[CAMERA LENS] set gpio mode failed!! \n");}
if(mt_set_gpio_dir(pinSet[pinSetIdx][IDX_PS_CMPDN],GPIO_DIR_OUT)){PK_DBG("[CAMERA LENS] set gpio dir failed!! \n");}
if(pwInfo.Voltage == Vol_High)
{
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_ON])){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
msleep(1);
}
else
{
if(mt_set_gpio_out(pinSet[pinSetIdx][IDX_PS_CMPDN],pinSet[pinSetIdx][IDX_PS_CMPDN+IDX_PS_OFF])){PK_DBG("[CAMERA LENS] set gpio failed!! \n");}
msleep(1);
}
}
//.........这里部分代码省略.........
开发者ID:djun,项目名称:m463,代码行数:101,代码来源:kd_camera_hw.c
示例15: strobe_ioctl
static int strobe_ioctl(MUINT32 cmd, MUINT32 arg)
{
PK_DBG("sub dummy ioctl");
return 0;
}
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:5,代码来源:main_strobe_2ndPart_2.c
示例16: flashchip_exit
static void __exit flashchip_exit(void)
{
PK_DBG("[flashchip_exit] start\n");
platform_driver_unregister(&flashchip_platform_driver);
PK_DBG("[flashchip_exit] done!\n");
}
开发者ID:luckasfb,项目名称:bindu-kernel-mediatek,代码行数:6,代码来源:leds_strobe.c
示例17: FL_dim_duty
int FL_dim_duty(kal_uint32 duty)
{
PK_DBG("FL_dim_duty\n");
//upmu_set_flash_dim_duty(duty);
return 0;
}
开发者ID:luckasfb,项目名称:bindu-kernel-mediatek,代码行数:6,代码来源:leds_strobe.c
示例18: hw_shutdown
static void hw_shutdown(struct device *dev)
{
PK_DBG("Shutting down\n");
}
开发者ID:kzlin129,项目名称:tt-gpl,代码行数:4,代码来源:hwdrv.c
示例19: sub_strobe_ioctl
static int sub_strobe_ioctl(unsigned int cmd, unsigned long arg)
{
PK_DBG("sub dummy ioctl");
return 0;
}
开发者ID:Niisp,项目名称:MT6795.kernel,代码行数:5,代码来源:strobe_sub_sid2_part1.c
示例20: sub_strobe_open
static int sub_strobe_open(void *pArg)
{
PK_DBG("sub dummy open");
return 0;
}
开发者ID:Niisp,项目名称:MT6795.kernel,代码行数:6,代码来源:strobe_sub_sid2_part1.c
注:本文中的PK_DBG函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论