yangsong8-a1 opened a new pull request, #21675:
URL: https://github.com/apache/nuttx/pull/21675

   ## Summary
   SPI_STATUS_BUSY, added to include/nuttx/spi/spi.h by #21641 for the device
   busy status bit, clashes with the SPI_STATUS_BUSY register bit in
   arch/arm/src/lpc31xx/lpc31_spi.h. lpc31_spi.c includes both headers and
   fails to build with -Werror:
   
   ```
   chip/lpc31_spi.h:169: error: "SPI_STATUS_BUSY" redefined [-Werror]
   ```
   
   Rename the new macro to SPI_STATUS_DEVBUSY.
   
   ## Impact
   Build fix for lpc31xx boards (arm-nxp CI). No functional change.
   
   ## Testing
   Ubuntu 22.04, gcc 13.1, arm-none-eabi-gcc 10.3. Built olimex-lpc-h3131:nsh,
   ea3131:nsh and ea3131:usbserial (all compile lpc31_spi.c) and sim:nsh.
   Before this change olimex-lpc-h3131:nsh reports the redefinition, after
   it there is no warning.
   


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