Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Porting linux based application on uCOS

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

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.