mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Change all time conversions. Yech. New timer units in microseconds breaks all existing logic that used milliseconds in the conversions. Something likely got broken doing this, probably because I confused a MSEC2TICK conversion with a TICK2MSEC conversion. Also, the tickless OS no appears fully functional and passes the OS test on the simulator with no errors
This commit is contained in:
@@ -218,8 +218,8 @@ int sam_timerinitialize(void)
|
||||
|
||||
/* Set the timeout */
|
||||
|
||||
tcvdbg("Interval = %d us.\n", (unsigned long)MSEC_PER_TICK * 1000);
|
||||
ret = ioctl(fd, TCIOC_SETTIMEOUT, (unsigned long)MSEC_PER_TICK * 1000);
|
||||
tcvdbg("Interval = %d us.\n", (unsigned long)USEC_PER_TICK);
|
||||
ret = ioctl(fd, TCIOC_SETTIMEOUT, (unsigned long)USEC_PER_TICK);
|
||||
if (ret < 0)
|
||||
{
|
||||
tcdbg("ioctl(TCIOC_SETTIMEOUT) failed: %d\n", errno);
|
||||
|
||||
Reference in New Issue
Block a user