lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] libmicrohttpd and FreeRTOS


From: Martin Velek
Subject: Re: [lwip-users] libmicrohttpd and FreeRTOS
Date: Mon, 20 Aug 2012 18:12:49 +0200

Hello,

I did it. I cannot say the libmicrohttpd is porting friendly. The
enclosured source code is mostly for an inspiration, it only proves
that it is possible. The libmicrohttpd itself is highly malloc
dependent.

Few points:
pthread functions has to be defined or implemented, I chose the latter
in platform.h ( I prefer static inline... with gcc
~"-functions-section" and eliminitation of unused functions). The
pthread_attr_t carries only stack size.

SO_REUSE should be enabled in lwip.

I have added  option MHD_OPTION_FORCE32 = 0xFFFFFFFFUL to enum MHD_OPTION
see http://lists.gnu.org/archive/html/libmicrohttpd/2012-08/msg00010.html

I have modified md5 and base64 to do not include memory.h if not required.

I have redefined MUNMAP macro.

> I haven't, but I'd be interested to hear of it once you try it. I'd imagine 
> it could also be ported to lwIP's OS abstraction layer if FreeRTOS works...

See platform.h, but I did not do it. I have used my RTOS abstraction layer.

Martin

On Fri, Aug 10, 2012 at 3:16 PM, Simon Goldschmidt <address@hidden> wrote:
> Martin Velek <address@hidden> wrote:
>> has anyone tried to port libmicrohttpd to LWIP and FreeRTOS?
>
> I haven't, but I'd be interested to hear of it once you try it. I'd imagine 
> it could also be ported to lwIP's OS abstraction layer if FreeRTOS works...
>
> Simon
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users

Attachment: libmicro.zip
Description: Zip archive


reply via email to

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