Sarthak-Pandey opened a new pull request, #20607:
URL: https://github.com/apache/nuttx/pull/20607

   ## Summary
   Fixes #15664
   
   Enabling ADC support under RP23XX architectures (CONFIG_RP23XX_ADC) was 
failing 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'?
   ``
   
   The GPIO headers for RP23XX (rch/arm/src/rp23xx/rp23xx_gpio.h and 
rch/risc-v/src/rp23xx-rv/rp23xx_gpio.h) define RP23XX_GPIO_FUNC_NULL rather 
than GPIO_FUNC_NULL.
   This PR updates my_reset() in both ARM and RISC-V rp23xx ADC drivers to use 
RP23XX_GPIO_FUNC_NULL.
   
   ## Impact
   - **Architecture**: RP23XX (rch/arm/src/rp23xx/rp23xx_adc.c and 
rch/risc-v/src/rp23xx-rv/rp23xx_adc.c)
   - **User Impact**: Resolves build failure when compiling RP23XX targets with 
ADC enabled.
   - **Hardware**: RP2350 / RP23XX boards (e.g. Raspberry Pi Pico 2).
   - **Compatibility**: Fully backwards-compatible; fixes an undeclared 
identifier typo.
   
   ## Testing
   - Verified definition of RP23XX_GPIO_FUNC_NULL in 
rch/arm/src/rp23xx/rp23xx_gpio.h and rch/risc-v/src/rp23xx-rv/rp23xx_gpio.h.
   - Confirmed matching naming pattern across RP2040 and RP23XX GPIO and ADC 
drivers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to