Hi,
The code seems truncated, I'm not sure what to make of it. As I
mentioned I haven't used SPI with Nut/OS but I'm quite familiar with
the datasheet, the port itself and I have an osciloscope. If you could
provide a full sample and or a patch to the driver I can help with
debugging.
Kind Regards,
Thiago A. Correa