shizacat opened a new pull request, #17945:
URL: https://github.com/apache/nuttx/pull/17945

   ## Summary
   
   Added conditional compilation guards (#if/#endif) around GPIO function 
prototypes, operation structures, and interrupt handler to ensure proper 
compilation when GPIO input, output, or interrupt features are disabled (when 
BOARD_NGPIOIN, BOARD_NGPIOOUT, or BOARD_NGPIOINT are set to 0). Fixed 
inconsistent conditional check for BOARD_NGPIOOUT (changed from `#if 
BOARD_NGPIOOUT` to `#if BOARD_NGPIOOUT > 0` for consistency with other GPIO 
type checks).
   
   ## Impact
   
   This change ensures that the stm32f103-minimum board GPIO driver compiles 
correctly when any GPIO type (input, output, or interrupt) is disabled via 
configuration. No functional changes for existing configurations. Build 
process: prevents compilation errors when GPIO features are disabled. 
Compatibility: maintains backward compatibility with existing configurations.
   
   ## Testing
   
   Tested compilation on stm32f103-minimum board with default configuration 
(all GPIO types enabled: BOARD_NGPIOIN=1, BOARD_NGPIOOUT=1, BOARD_NGPIOINT=1) 
and with each GPIO type disabled individually:
   - BOARD_NGPIOIN=0, BOARD_NGPIOOUT=1, BOARD_NGPIOINT=1
   - BOARD_NGPIOIN=1, BOARD_NGPIOOUT=0, BOARD_NGPIOINT=1
   - BOARD_NGPIOIN=1, BOARD_NGPIOOUT=1, BOARD_NGPIOINT=0
   


-- 
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