Home
last modified time | relevance | path

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

/hardware/bsp/intel/peripheral/libmraa/src/gpio/
Dgpio.c419 char filepath[MAX_SIZE]; in mraa_gpio_edge_mode() local
420 snprintf(filepath, MAX_SIZE, SYSFS_CLASS_GPIO "/gpio%d/edge", dev->pin); in mraa_gpio_edge_mode()
422 int edge = open(filepath, O_RDWR); in mraa_gpio_edge_mode()
547 char filepath[MAX_SIZE]; in mraa_gpio_mode() local
548 snprintf(filepath, MAX_SIZE, SYSFS_CLASS_GPIO "/gpio%d/drive", dev->pin); in mraa_gpio_mode()
550 int drive = open(filepath, O_WRONLY); in mraa_gpio_mode()
608 char filepath[MAX_SIZE]; in mraa_gpio_dir() local
609 snprintf(filepath, MAX_SIZE, SYSFS_CLASS_GPIO "/gpio%d/direction", dev->pin); in mraa_gpio_dir()
611 int direction = open(filepath, O_RDWR); in mraa_gpio_dir()
/hardware/bsp/intel/peripheral/libmraa/src/i2c/
Di2c.c99 char filepath[32]; in mraa_i2c_init_internal() local
100 snprintf(filepath, 32, "/dev/i2c-%u", bus); in mraa_i2c_init_internal()
101 if ((dev->fh = open(filepath, O_RDWR)) < 1) { in mraa_i2c_init_internal()
102 syslog(LOG_ERR, "i2c: Failed to open requested i2c port %s", filepath); in mraa_i2c_init_internal()
/hardware/bsp/intel/peripheral/libmraa/src/pwm/
Dpwm.c382 char filepath[MAX_SIZE]; in mraa_pwm_unexport_force() local
383 snprintf(filepath, MAX_SIZE, "/sys/class/pwm/pwmchip%d/unexport", dev->chipid); in mraa_pwm_unexport_force()
385 int unexport_f = open(filepath, O_WRONLY); in mraa_pwm_unexport_force()
/hardware/bsp/intel/peripheral/libmraa/src/
Dmraa.c229 char name[64], filepath[64]; in mraa_iio_detect() local
237 snprintf(filepath, 64, "/sys/bus/iio/devices/iio:device%d/name", i); in mraa_iio_detect()
238 fd = open(filepath, O_RDONLY); in mraa_iio_detect()
/hardware/bsp/intel/peripheral/libmraa/src/x86/
Dintel_galileo_rev_g.c161 char filepath[MAX_SIZE]; in mraa_intel_galileo_gen2_gpio_mode_replace() local
162 snprintf(filepath, MAX_SIZE, SYSFS_CLASS_GPIO "/gpio%d/drive", pullup_map[dev->phy_pin]); in mraa_intel_galileo_gen2_gpio_mode_replace()
164 int drive = open(filepath, O_WRONLY); in mraa_intel_galileo_gen2_gpio_mode_replace()
Dintel_edison_fab_c.c536 char filepath[MAX_SIZE]; in mraa_intel_edsion_mb_gpio_mode() local
544 snprintf(filepath, MAX_SIZE, SYSFS_CLASS_GPIO "/gpio%d/pullmode", dev->pin); in mraa_intel_edsion_mb_gpio_mode()
545 int drive = open(filepath, O_WRONLY); in mraa_intel_edsion_mb_gpio_mode()
548 snprintf(filepath, MAX_SIZE, DEBUGFS_PINMODE_PATH "%d/current_pullmode", dev->pin); in mraa_intel_edsion_mb_gpio_mode()
549 drive = open(filepath, O_WRONLY); in mraa_intel_edsion_mb_gpio_mode()