apache / apache/mynewt-core

Problems with gpiote module for nrf52

Open
#2,352 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
891
Forks
381
Avg merge
2d 7h
Merged PRs (30d)
14

Description

I tried to enable the gpiote module in nrfx52_config.h (#define NRFX_GPIOTE_ENABLED 1) and I got an incomprehensible error

Error: In file included from repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/nrfx.h:37,
from repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_gpiote.c:31:
repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_gpio.h:46:25: error: expected declaration specifiers or '...' before '(' token
46 | #define NUMBER_OF_PINS (P0_PIN_NUM)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the build after enabling NRFX_GPIOTE_ENABLED in nrfx52_config.h, then inspect nrfx.h, nrfx_gpiote.c, and nrfx/hal/nrf_gpio.h around the NUMBER_OF_PINS definition. Determine why this configuration produces the reported declaration error and confirm the build succeeds with the corrected configuration or source change.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.