teamprof opened a new pull request, #19754: URL: https://github.com/apache/nuttx/pull/19754
## Issue Fail to build Pi Pico NuttX C++ project with SMP feature as <nuttx/spinlock.h> is a C header that uses raw macro calls (atomic_cmpxchg_acquire(...)). ## Summary Define atomic macros for C++ project to fix nuttx/spinlock.h compilation issue ## Testing Follow the steps on https://github.com/teamprof/arduprof-template/tree/main/pico-nuttx-app to create a C++ project Use the command "./tools/configure.sh -l ../src/boards/arm/rp2040/raspberrypi-pico/configs/smp" to enable SMP for Pi Pico Launch a Serial Terminal and connect to Pico's GPIO0/1 at 115200bps Run "arduprof" under nsh in the terminal <img width="1359" height="1425" alt="pico-smp-issue" src="https://github.com/user-attachments/assets/b3d4c287-611e-4995-961b-92e75a26bc13" /> <img width="1359" height="1425" alt="pico-smp-fix" src="https://github.com/user-attachments/assets/301faa1d-8263-45f1-9041-8b2319d622fd" /> -- 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]
