[Top][All Lists]

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

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

From: Martin Velek
Subject: Re: [lwip-users] sys.c - sys_msleep
Date: Wed, 23 Nov 2011 12:45:27 +0100


the vTaskDelay() was only a example. I thought any function which
invokes a kernel sleep.

> ??? How have you redefined it?  All you need to do is #include
It is quite simple. I had two definition of vTaskDelay() because my
macro renamed  sys_msleep to vTaskDelay. The first definition was in
FreeRTOS, the second in lwip. Once again, it has nothing to do with
FreeRTOS, it is an app. error.

Sorry for any inconvience.


On 23 November 2011 09:14, FreeRTOS Info <address@hidden> wrote:
> 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.
> Regards,
> Richard.
> + http://www.FreeRTOS.org
> Designed for Microcontrollers.
> More than 7000 downloads per month.
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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