RK: RK3288 遥控器调试

 

 

一.usercode 用户码

device\rockchip\common\rkxx-remotectl.kl

        case RMC_USERCODE:
        {
            ddata->scanData <<= 1;
            ddata->count ++;
	   // printk("RMC_USERCODE,period=%d,count=%d\n",ddata->period,ddata->count );
            if ((TIME_BIT1_MIN < ddata->period) && (ddata->period < TIME_BIT1_MAX)){
                ddata->scanData |= 0x01;
            }
		
            if (ddata->count == 0x10){//16 bit user code
               // printk("u=0x%x\n",((ddata->scanData)&0xFFFF));
                if (remotectl_keybdNum_lookup(ddata)){
                    ddata->state = RMC_GETDATA;
                    ddata->scanData = 0;
                    ddata->count = 0;
                }else{                //user code error
                    ddata->state = RMC_PRELOAD;
                }
            }
        }
        break;

  

上一篇:K210定时器官网资料


下一篇:hdu 1358 Period