接收使用TIMER1 定时器,可是log 打印TIMER1 没有初始化, 也没有错误的Log
OPERATE_RET reg_ir_hardware(CHAR_T *device_name)
{
IR_DRV_CFG_T ir_hw_cfg = {0};
Code: Select all
/* IR hardware config*/
ir_hw_cfg.send_pin = IR_DEV_SEND_PIN;
ir_hw_cfg.recv_pin = IR_DEV_RECV_PIN;
ir_hw_cfg.send_timer = TUYA_TIMER_NUM_0;
ir_hw_cfg.recv_timer = TUYA_TIMER_NUM_1;
ir_hw_cfg.send_duty = 50;
return tdd_ir_driver_register(device_name, IR_DRV_DUAL_TIMER, ir_hw_cfg);
}