Hi Axel,
no, there is unfortunately no easy way and I don't think you example will work like that since you have only declared a pointer but not the variable itself.
Usually it would be something like:
OS_RSEMA sema;
OS_CreateRSema(&sema);
But &sema has also a valid value before OS_CreateRSema() .
With the debug build of embOS you could check sema.Id which gets a valid value when the semaphore is created.
But this Id member is only available in embOS debug builds.
Best regards,
Til