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

INIT_GPIOTE

I have a nRF51DK with SD 8.0 flashed.

I would like to start and stop a pwm signal with the buttons on the board(BUTTON_1 and BUTTON_2). The pwm is working fine. But when I add the part with the 2 buttons I get errors.

The problem is the gpiote_init file:

static void gpiote_init(void)
{
    APP_GPIOTE_INIT(APP_GPIOTE_MAX_USERS);
}

Error:Undefined symbol APP_GPIOTE_INIT (referred from main.o).

When I add app_gpiote file to the Libraries, I will get a new error.

Error: Symbol GPIOTE_IRQHandler multiply defined (by app_gpiote.o and nrf_drv_gpiote_1.o).

So if I want to use the Buttons, do I have do add app_gpiote or nrf_drv_gpiote to the librarie?

main.c

image description

"app_gpiote.h" is also included.

Motorsteurung.zip

Parents Reply Children
Related