ARMmbed / stm-spirit1-rf-driver

Prototype RF driver for STM Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo
5 stars 7 forks source link

Deprecated methods used in NanostackRfPhySpirit1.cpp #8

Open artokin opened 5 years ago

artokin commented 5 years ago

Some methods were deprecated in Mbed OS 5.10 and now following compiler warnings occurs because deprecated methods are used:

Compile [  0.8%]: NanostackRfPhySpirit1.cpp
[Warning] NanostackRfPhySpirit1.cpp@91,37: 'int32_t rtos::Thread::signal_set(int32_t)' is deprecated: Other signal_xxx methods have been deprecated in favour of ThisThread::flags functions. To match this naming scheme, derived from CMSIS-RTOS2, Thread::flags_set is now provided. [since mbed-os-5.10] [-Wdeprecated-declarations]
[Warning] NanostackRfPhySpirit1.cpp@409,13: 'static osStatus rtos::Thread::yield()' is deprecated: Static methods only affecting current thread cause confusion. Replaced by ThisThread::yield. [since mbed-os-5.10] [-Wdeprecated-declarations]
[Warning] NanostackRfPhySpirit1.cpp@409,19: 'static osStatus rtos::Thread::yield()' is deprecated: Static methods only affecting current thread cause confusion. Replaced by ThisThread::yield. [since mbed-os-5.10] [-Wdeprecated-declarations]
[Warning] NanostackRfPhySpirit1.cpp@614,53: 'static osEvent rtos::Thread::signal_wait(int32_t, uint32_t)' is deprecated: Static methods only affecting current thread cause confusion. Replaced by ThisThread::flags_wait_all, ThisThread::flags_wait_all_for, ThisThread::flags_wait_any and ThisThread:wait_any_for. [since mbed-os-5.10] [-Wdeprecated-declarations]
artokin commented 5 years ago

cc: @betzw , @SeppoTakalo

betzw commented 5 years ago

cc: @avilei

artokin commented 5 years ago

Any updates on this?