bool CNvTimer::m_FuncWrapper() { if (m_uHandle == INvThreading::NV_HANDLE_INVALID) { return false; } m_uStartTimeMs = m_pThreading->GetTicksMs(); m_uTimeMs = m_uPeriodMs; return TimerFunc(); }
void main() { init_devices(); SystemIni(); nrf905_Init(); while (1) { if (bTimer) TimerFunc(); #ifdef MASTER if (bRfSend) { bRfSend=0; RfSendProc();//发送测试 } #endif RfRecvProc();//接收处理 }; }