[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] sys.c - sys_msleep

From: FreeRTOS Info
Subject: Re: [lwip-users] sys.c - sys_msleep
Date: Wed, 23 Nov 2011 08:14:24 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 23/11/2011 06:58, Martin Velek wrote:
> Hi,
> I have defined sys_msleep() to vTaskDelay() - (1 tick == 1 ms) in
> sys_arch.h, because the default implementation is quite tricky.

In which case, 1ms is the maximum, and the resolution, not the absolute.
 You cannot have granularity above the tick period, so if you what "at
least" 1ms, the delay period needs to be 2.  Then you will have between
0.99999999 and 1.9999999.

> However the compiler complains about vTaskDelay() redefinition thus I
> had to modify sys.c, see below. Is this modification correct?

??? How have you redefined it?  All you need to do is #include
"FreeRTOS.h", then #include "task.h", then call vTaskDelay() in your code.

Please send any follow ups to this part of your question to the FreeRTOS
support forum, not this list.


+ http://www.FreeRTOS.org
Designed for Microcontrollers.
More than 7000 downloads per month.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]