lwip port FRDM64

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lwip port FRDM64

567 Views
Edrianocarlos
Contributor IV

Hi,

 

I am trying to port lwip stack into a new project. without RTOS.

i was able to solve many inclusion problems. but this time i am getting this problem.

 

/* For a totally minimal and standalone system, we provide null    definitions of the sys_ functions. */ typedef u8_t sys_sem_t; typedef u8_t sys_mutex_t; typedef u8_t sys_mbox_t;

 

DescriptionResourcePathLocationType
conflicting types for 'sys_mutex_t'sys.h/frdm64f_new/Sources/lwip/src/include/lwipline 46C/C++ Problem
conflicting types for 'sys_sem_t'sys.h/frdm64f_new/Sources/lwip/src/include/lwipline 45C/C++ Problem
conflicting types for 'sys_mbox_t'sys.h/frdm64f_new/Sources/lwip/src/include/lwipline 47C/C++ Problem

Ok i understand that there is a conflict. but i can not find what would be this conflict. this does not occur at the sample project.

But i am not using that specific project. As i am trying to built the stack in my project.

Labels (1)
0 Kudos
1 Reply

294 Views
Edrianocarlos
Contributor IV

Ok i find where is the complaing. but its excluded by an #if.

#if !NO_SYS

typedef struct mboxHandler{

   msg_queue_handler_t queueHandler;

   semaphore_t _semSync ;

}sys_mbox_t ;

typedef semaphore_t sys_sem_t;

typedef task_handler_t sys_thread_t;

typedef mutex_t sys_mutex_t ;

/*FSL:workaround from lwIP port (1.1.1 to 1.3.1)*/

#define sys_arch_mbox_tryfetch(mbox,msg) \

    sys_arch_mbox_fetch(mbox,msg,1)

#endif

0 Kudos