Replace direct accesses to sched_active_thread and sched_active_pid with the helper functions thread_getpid() and thread_get_active(). This serves two purposes: 1. It makes accidental writes to those variable from outside core less likely. 2. Casting off the volatile qualifier is now well contained to those two functions
Using C++ and C in a program with RIOT
This project demonstrates how user can use both C++ and C in their application with RIOT.
Makefile Options
- CXXEXFLAGS : user's extra flags used to build c++ files should be defined here (e.g -std=gnu++11).