Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12589 Discussions

Porting linux based application on uCOS

Altera_Forum
Honored Contributor II
1,282 Views

Hello, 

 

I am new to this forum and to uCos. I am trying to investigate if we can port our application on uCos II. Could some one please share their views/experience about uCos II. 

 

Our applciation currently works on Linux and it uses POSIX pthreads, Semaphores, Mutex, RAW Socket packet handling.  

 

Is it possible to use multiple threads in uCosII. Is there a API for raw packet handling some thing like pcap in linux.  

 

Kindly share your opinions on this issue. 

 

Cheers 

Tama
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
378 Views

uCOS doesn't have a POSIX API, so you'll have to convert all your pthread, semaphores and mutex calls to the uCOS API. 

As for raw sockets, AFAIK there is no API to access them. The Interniche TCP/IP stack is rather simple, and if you want raw sockets you'll probably have to go into the stack code and modify it yourself.
0 Kudos
Altera_Forum
Honored Contributor II
378 Views

Thanks for the reply.

0 Kudos
Reply