80M-6.0闪光灯电流配置
时间:10-02
整理:3721RD
点击:
真闪,IC是3641的,主闪和预闪的电流分别配为130mA 650mA,该如何实现?现在主闪和预闪都走//flahslight分支,电量为130mA.
#ifdef GPIO_STROBE_IC
if(g_duty == 0)//strobe
{
pr_debug("strobe mode1111111\n");
pinctrl_select_state(strobectrl, strobe0_en0_h);
pinctrl_select_state(strobectrl, strobe0_mode0_l);
}else{//flahslight
pr_debug("main mode22222222\n");
pinctrl_select_state(strobectrl, strobe0_en0_h);
pinctrl_select_state(strobectrl, strobe0_mode0_h);
}
#endif
#ifdef GPIO_STROBE_IC
if(g_duty == 0)//strobe
{
pr_debug("strobe mode1111111\n");
pinctrl_select_state(strobectrl, strobe0_en0_h);
pinctrl_select_state(strobectrl, strobe0_mode0_l);
}else{//flahslight
pr_debug("main mode22222222\n");
pinctrl_select_state(strobectrl, strobe0_en0_h);
pinctrl_select_state(strobectrl, strobe0_mode0_h);
}
#endif
主闪和预闪的电流分别配为650mA 130mA
已搞好,结贴
已搞好,结贴
hal层改g_duty和g_step好像没作用的,
这不是看datasheet里面设置的嘛