drivers: spi: add SPI device statistics
Enable below statistics for SPI by follow Zephyr STATS subsystem,
rx_bytes, tx_bytes, transfer_error.
and add SPI_DEVICE_DT_DEFINE helper macro to define SPI device.
Signed-off-by:
Xiaolu Sun <xiaolu.sun@intel.com>
Signed-off-by:
Qipeng Zha <qipeng.zha@intel.com>
Loading
Please sign in to comment