Home
last modified time | relevance | path

Searched refs:deviceindex (Results 1 – 1 of 1) sorted by relevance

/hardware/bsp/intel/peripheral/libmraa/src/arm/
Dbeaglebone.c223 int deviceindex = 0; in mraa_beaglebone_spi_init_pre() local
228 deviceindex = 1; in mraa_beaglebone_spi_init_pre()
230 deviceindex = 2; in mraa_beaglebone_spi_init_pre()
232 deviceindex = 1; in mraa_beaglebone_spi_init_pre()
234 deviceindex = 2; in mraa_beaglebone_spi_init_pre()
235 if ((deviceindex == 0) && mraa_file_exist("/sys/class/spidev/spidev1.0")) in mraa_beaglebone_spi_init_pre()
236 deviceindex = 2; in mraa_beaglebone_spi_init_pre()
237 if (deviceindex == 0) in mraa_beaglebone_spi_init_pre()
238 deviceindex = 1; in mraa_beaglebone_spi_init_pre()
240 sprintf(devpath, "/dev/spidev%u.0", deviceindex); in mraa_beaglebone_spi_init_pre()
[all …]