VitalyS83 commented on issue #17473: URL: https://github.com/apache/nuttx/issues/17473#issuecomment-3646945543
In various examples under nuttx/boards/arm folder, function _spi_register()_ is called from user-provided spi bus initialization source files, which are in C. For instance, `nuttx/boards/arm/sam34/arduino-due/src/sam_bringup.c` and others. Are these board initialization files, related to SPI setup, considered to be part of NuttX kernel? I would better treat them as not part of kernel, but part of application setup process. I wanted to do basically the same for my own board (device), but in C++. It seems illogical for me, that I must either write my own initialization file(s) in C or manually wrap `#include <nuttx/spi/spi_transfer.h>` into `extern "C"` -- 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]
