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;
Description | Resource | Path | Location | Type |
conflicting types for 'sys_mutex_t' | sys.h | /frdm64f_new/Sources/lwip/src/include/lwip | line 46 | C/C++ Problem |
conflicting types for 'sys_sem_t' | sys.h | /frdm64f_new/Sources/lwip/src/include/lwip | line 45 | C/C++ Problem |
conflicting types for 'sys_mbox_t' | sys.h | /frdm64f_new/Sources/lwip/src/include/lwip | line 47 | C/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.
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