On November 25, 2014 8:54:24 AM CST, Gabriel Ibarra <gabriel.iba...@tallertechnologies.com> wrote: >Hi, I'm working with rtems task and I'm trying to pass a pointer object >as argument of the task, using the RTEMS API. > > >I saw that rtems_task_argument is defined as uintptr_t, so I assume >that the way to do it, is just a cast. Is it true?, or there is another >way to do it. > >Also, I wonder why uintptr_t was chosen instead of a void*. > >
Yes on cast it to uintptr_t. This type can hold a pointer or an integer. So it is equally useful and type safe for both. --joel >Thanks! > > > >-- > > > > >Gabriel Alejandro Ibarra > >Software Engineer > > >San Lorenzo 47, 3rd Floor, Office 5 > >Córdoba, Argentina > > >Phone: +54 351 4217888 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel