This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Question for BUTTONS_MASK in bsp.c

Hi,

In bsp.c on lines 523-528:

if (type & BSP_INIT_LED)
{
    NRF_GPIO->DIRCLR = BUTTONS_MASK;
    LEDS_OFF(LEDS_MASK);
    NRF_GPIO->DIRSET = LEDS_MASK;
}

Shouldn't be the BUTTONS_MASK rather be LEDS_MASK? Because when I dont have any buttons on my board this yields an error. The section is about the LEDs and not the buttons, isn't it?

SDK 7.2.0

If I'm wrong, please explain it to me :)

thanks in advance

Parents Reply Children
No Data
Related