I am very new to RIOT and was following the tutorials. Task 7 (https://github.com/RIOT-OS/Tutorials/tree/master/task-07) talks about getting the current thread with the
sched_active_pid variable from
sched.h. But I am getting an error saying “error: ‘sched_active_pid’ undeclared (first use in this function)”.
A similar issue is reported in https://github.com/RIOT-OS/Tutorials/issues/9. In my case I get the same error even after including #include “sched.h”.
Any help is really appreciated.
RIOT - Version: 2020.10 running on native
Thanks Jobish John