等待的

来源:互联网 发布:软件外包兼职 编辑:程序博客网 时间:2024/05/10 21:17
<pre name="code" class="objc">void as3911SetFrameDelayTime(u32 frameDelayTime){    u16 gptValue;    as3911FrameDelayTime = frameDelayTime;    /* Start GPT Timer only with start command */    as3911ModifyRegister(AS3911_REG_GPT_CONF, 0xE0, 0x20); // 0x00        gptValue = (u16) (as3911FrameDelayTime >> 3);    as3911WriteRegister(AS3911_REG_GPT1, (u8) ((gptValue >> 8) & 0xFF));    as3911WriteRegister(AS3911_REG_GPT2, (u8) (gptValue & 0xFF));}

void as3911SetFrameDelayTime(u32 frameDelayTime){ u16 gptValue; as3911FrameDelayTime = frameDelayTime; /* Start GPT Timer only with start command */ as3911ModifyRegister(AS3911_REG_GPT_CONF, 0xE0, 0x20); // 0x00 gptValue = (u16) (as3911FrameDelayTime >> 3); as3911WriteRegister(AS3911_REG_GPT1, (u8) ((gptValue >> 8) & 0xFF)); as3911WriteRegister(AS3911_REG_GPT2, (u8) (gptValue & 0xFF));}
void as3911SetFrameDelayTime(u32 frameDelayTime){    u16 gptValue;    as3911FrameDelayTime = frameDelayTime;    /* Start GPT Timer only with start command */    as3911ModifyRegister(AS3911_REG_GPT_CONF, 0xE0, 0x20); // 0x00        gptValue = (u16) (as3911FrameDelayTime >> 3);    as3911WriteRegister(AS3911_REG_GPT1, (u8) ((gptValue >> 8) & 0xFF));    as3911WriteRegister(AS3911_REG_GPT2, (u8) (gptValue & 0xFF));}


0 0
原创粉丝点击