This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Missing include in ble_radio_notification.c

When using radio notifications, there are a few compiler warnings.

Compiling file: ble_radio_notification.c
../../../../nRF5_SDK_14.2.0_17b948a/components/ble/ble_radio_notification/ble_radio_notification.c: In function 'ble_radio_notification_init':
../../../../nRF5_SDK_14.2.0_17b948a/components/ble/ble_radio_notification/ble_radio_notification.c:67:16: warning: implicit declaration of function 'sd_nvic_ClearPendingIRQ' [-Wimplicit-function-declaration]
     err_code = sd_nvic_ClearPendingIRQ(SWI1_IRQn);
                ^~~~~~~~~~~~~~~~~~~~~~~
../../../../nRF5_SDK_14.2.0_17b948a/components/ble/ble_radio_notification/ble_radio_notification.c:73:16: warning: implicit declaration of function 'sd_nvic_SetPriority' [-Wimplicit-function-declaration]
     err_code = sd_nvic_SetPriority(SWI1_IRQn, irq_priority);
                ^~~~~~~~~~~~~~~~~~~
../../../../nRF5_SDK_14.2.0_17b948a/components/ble/ble_radio_notification/ble_radio_notification.c:79:16: warning: implicit declaration of function 'sd_nvic_EnableIRQ' [-Wimplicit-function-declaration]
     err_code = sd_nvic_EnableIRQ(SWI1_IRQn);

This is because

#include "nrf_nvic.h"

was forgotten in ble_radio_notification.c

Please investigate, thanks.

Related