Re: How to program fine-grained real-time concurrent applications in C or Ada

2020-12-31 Thread Joel Sherrill
On Thu, Dec 31, 2020, 6:03 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello Mattia, > > On 24/12/2020 11:24, Mattia Bottaro wrote: > > I need to develop a multitasking real-time application with RTEMS > > (preferably in Ada, but also C solutions are welcomed). I see that I >

Re: How to program fine-grained real-time concurrent applications in C or Ada

2020-12-31 Thread Sebastian Huber
Hello Mattia, On 24/12/2020 11:24, Mattia Bottaro wrote: I need to develop a multitasking real-time application with RTEMS (preferably in Ada, but also C solutions are welcomed). I see that I can use the Classic API , but they are unsu

Re: How to program fine-grained real-time concurrent applications in C or Ada

2020-12-24 Thread Joel Sherrill
On Thu, Dec 24, 2020, 2:20 PM Mattia Bottaro wrote: > Hello Joe Sherrill and thank you for the quick response. > > I'm not sure I understand correctly what you said. According to this > example (< > https://github.com/RTEMS/rtems-examples/blob/master/classic_api/triple_period/tasks.c#L70>), > "'t

Re: How to program fine-grained real-time concurrent applications in C or Ada

2020-12-24 Thread Mattia Bottaro
Hello Joe Sherrill and thank you for the quick response. I'm not sure I understand correctly what you said. According to this example (< https://github.com/RTEMS/rtems-examples/blob/master/classic_api/triple_period/tasks.c#L70>), "'ticks' is don't care ( = does not work);". What should I infer fro

Re: How to program fine-grained real-time concurrent applications in C or Ada

2020-12-24 Thread Peter Dufault
If you want to prototype on Linux/Unix you should use the POSIX/POSIX threads (pthreads) interface. I use the POSIX interface for portability and testing. I don't think there is much of a performance impact of using the RTEMS POSIX versus the RTEMS Classic API versus portability. The prioriti

Re: How to program fine-grained real-time concurrent applications in C or Ada

2020-12-24 Thread Joel Sherrill
You missed all the directives that use ticks in the Classic API. There is rtems_task_wake_after for one. Almost every service that had a delay or timeout is in ticks. The length of a tick is configurable in microseconds. POSIX has different services and specifies time intervals and delays differen

Re: How to program fine-grained real-time concurrent applications in C or Ada

2020-12-24 Thread Karel Gardas
I'd try to use POSIX API and POSIX timers. Look into testsuites/psx* tests. Cheers, Karel On 12/24/20 11:24 AM, Mattia Bottaro wrote: > Hi everyone, newbie RTEMS here. > > I need to develop a multitasking real-time application with RTEMS > (preferably in Ada, but also C solutions are welcomed).