NuttX Driver Model i2c, spi bus driver "/dev" SPI "/dev/" /dev
SPI 3 L3GD20
<
int l3gd20_register(FAR const char *devpath, FAR struct spi_dev_s *spi,
FAR struct l3gd20_config_s *config)
"devpath" /dev open, close, read, write, ioctl POSIX spi_dev_s SPI_XXX() SPI
Spresense SDK
BMI160 SPI
<
spi = cxd56_spibus_initialize(bus);
ret = bmi160_register("/dev/accel0", spi);
1. cxd56_spibus_initialize(bus) SPI SPI
2. spi "/dev/accel0" bmi160
SPI4 Configuration /dev/spi SPI "/dev/xxx"