whitefield-framework / whitefield

Whitefield provides a simulation environment for wireless sensor networks by combining RF simulation provided by NS3 and network stack provided by popular IoT OSes such as Contiki/RIOT/OpenThread.
GNU General Public License v2.0
82 stars 24 forks source link

openthread integration - override radio #68

Closed nyrahul closed 6 years ago

nyrahul commented 6 years ago

Override posix-platform radio by linking libopenthread-posix.a and overriding radio APIs by using gnu compiler option such as -Wl,-wrap.

nyrahul commented 6 years ago

70 handles this.

-Wl-wrap compiler option is used to override openthread radio layer from its libs. This provides zero-patch usage of openthread i.e. any version of openthread can be readily used without changing with whitefield (provided that few of the core apis have not changed).