예제 #1
0
/* ----------------------- Start implementation -----------------------------*/
BOOL
xMBPortTimersInit( USHORT usTim1Timerout50us )
{
    ulTimeOut = usTim1Timerout50us / 20U;
    if( ulTimeOut == 0 )
        ulTimeOut = 1;

    return xMBPortSerialSetTimeout( ulTimeOut );
}
예제 #2
0
bool xMBPortTimersInit(uint16_t usTim1Timerout50us)
{
  ulTimeOut = usTim1Timerout50us / 20U;
  if (ulTimeOut == 0)
    {
      ulTimeOut = 1;
    }

  return xMBPortSerialSetTimeout(ulTimeOut);
}