[BUG] RP23XX compile error due to undeclared GPIO_FUNC_NULL

Open Beginner friendly
#15,664 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
c
Domain
embedded-iot

Research direction

Start in chip/rp23xx_adc.c around line 475 and compare the RP23XX and RP2040 GPIO function definitions. Reproduce the ADC-enabled RP23XX compilation error, then confirm the build succeeds using the macro defined for the RP23XX architecture.

Written by the indexing model from the issue text.

Description

Enabling the adc support under RP23XX arch boards is not possible due to the following compilation error:

chip/rp23xx_adc.c:475:44: error: 'GPIO_FUNC_NULL' undeclared (first use in this function); did you mean 'RP23XX_GPIO_FUNC_NULL'?

RP23XX arch defines RP23XX_GPIO_FUNC_NULL instead of GPIO_FUNC_NULL (defined for RP2040)

Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 21h
Merged PRs (30d)
241

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/nuttx

All issues in apache/nuttx

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.