Home
last modified time | relevance | path

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

/hardware/bsp/intel/peripheral/libmraa/src/x86/
Dx86.c53 plat = mraa_intel_galileo_gen2(); in mraa_x86_platform()
56 plat = mraa_intel_edison_fab_c(); in mraa_x86_platform()
59 plat = mraa_intel_edison_fab_c(); in mraa_x86_platform()
62 plat = mraa_intel_de3815(); in mraa_x86_platform()
65 plat = mraa_intel_nuc5(); in mraa_x86_platform()
68 plat = mraa_intel_minnowboard_byt_compatible(0); in mraa_x86_platform()
71 plat = mraa_intel_minnowboard_byt_compatible(0); in mraa_x86_platform()
74 plat = mraa_intel_galileo_rev_d(); in mraa_x86_platform()
77 plat = mraa_intel_minnowboard_byt_compatible(1); in mraa_x86_platform()
80 plat = mraa_intel_minnowboard_byt_compatible(1); in mraa_x86_platform()
[all …]
Dintel_galileo_rev_g.c54 if (plat->pins[pin].gpio.complex_cap.complex_pin != 1) in mraa_intel_galileo_gen2_dir_pre()
57 if (plat->pins[pin].gpio.complex_cap.output_en == 1) { in mraa_intel_galileo_gen2_dir_pre()
59 agpioOutputen[pin] = mraa_gpio_init_raw(plat->pins[pin].gpio.output_enable); in mraa_intel_galileo_gen2_dir_pre()
259 int bitpos = plat->pins[dev->phy_pin].mmap.bit_pos; in mraa_intel_galileo_g2_mmap_write()
312 if (mraa_setup_mux_mapped(plat->pins[dev->phy_pin].mmap.gpio) != MRAA_SUCCESS) { in mraa_intel_galileo_g2_mmap_setup()
Dintel_edison_fab_c.c258 int scl = plat->pins[plat->i2c_bus[bus].scl].gpio.pinmap; in mraa_intel_edison_i2c_init_pre()
259 int sda = plat->pins[plat->i2c_bus[bus].sda].gpio.pinmap; in mraa_intel_edison_i2c_init_pre()
328 if (aio > plat->aio_count) { in mraa_intel_edison_aio_init_pre()
373 return mraa_intel_edison_pinmode_change(plat->pins[pin].gpio.pinmap, 1); in mraa_intel_edison_pwm_init_pre()
379 if (!plat->pins[pin].capabilites.pwm) { in mraa_intel_edison_pwm_init_pre()
408 mraa_intel_edison_pinmode_change(plat->pins[pin].gpio.pinmap, 1); in mraa_intel_edison_pwm_init_pre()
Dintel_galileo_rev_d.c58 int bitpos = plat->pins[dev->phy_pin].mmap.bit_pos; in mraa_intel_galileo_g1_mmap_write()
111 if (mraa_setup_mux_mapped(plat->pins[dev->phy_pin].mmap.gpio) != MRAA_SUCCESS) { in mraa_intel_galileo_g1_mmap_setup()
/hardware/bsp/intel/peripheral/libmraa/src/
Dmraa.c49 mraa_board_t* plat = NULL; variable
84 if (plat != NULL) { in mraa_init()
119 if (plat != NULL) { in mraa_init()
120 plat->platform_type = platform_type; in mraa_init()
127 if (plat == NULL) { in mraa_init()
128 plat = (mraa_board_t*) calloc(1, sizeof(mraa_board_t)); in mraa_init()
129 if (plat != NULL) { in mraa_init()
130 plat->platform_type = MRAA_NULL_PLATFORM; in mraa_init()
131 plat->platform_name = "Unknown platform"; in mraa_init()
135 if (plat != NULL) { in mraa_init()
[all …]
/hardware/bsp/intel/peripheral/libmraa/src/spi/
Dspi.c55 if (plat == NULL) { in mraa_spi_init()
63 if (plat->spi_bus_count == 0) { in mraa_spi_init()
67 if (plat->spi_bus_count == 1) { in mraa_spi_init()
68 bus = plat->def_spi_bus; in mraa_spi_init()
70 if (bus >= plat->spi_bus_count) { in mraa_spi_init()
74 if (plat->adv_func->spi_init_pre != NULL) { in mraa_spi_init()
75 if (plat->adv_func->spi_init_pre(bus) != MRAA_SUCCESS) { in mraa_spi_init()
80 if (!plat->no_bus_mux) { in mraa_spi_init()
81 int pos = plat->spi_bus[bus].sclk; in mraa_spi_init()
82 if (plat->pins[pos].spi.mux_total > 0) { in mraa_spi_init()
[all …]
/hardware/bsp/intel/peripheral/libmraa/src/pwm/
Dpwm.c181 if (plat == NULL) { in mraa_pwm_init()
189 if (plat->pins[pin].capabilites.pwm != 1) { in mraa_pwm_init()
194 if (plat->adv_func->pwm_init_replace != NULL) { in mraa_pwm_init()
195 return plat->adv_func->pwm_init_replace(pin); in mraa_pwm_init()
197 if (plat->adv_func->pwm_init_pre != NULL) { in mraa_pwm_init()
198 if (plat->adv_func->pwm_init_pre(pin) != MRAA_SUCCESS) in mraa_pwm_init()
202 if (plat->pins[pin].capabilites.gpio == 1) { in mraa_pwm_init()
205 mux_i = mraa_gpio_init_raw(plat->pins[pin].gpio.pinmap); in mraa_pwm_init()
224 if (plat->pins[pin].pwm.mux_total > 0) { in mraa_pwm_init()
225 if (mraa_setup_mux_mapped(plat->pins[pin].pwm) != MRAA_SUCCESS) { in mraa_pwm_init()
[all …]
/hardware/bsp/intel/peripheral/libmraa/src/uart/
Duart.c128 if (plat == NULL) { in mraa_uart_init()
138 if (plat->adv_func->uart_init_pre != NULL) { in mraa_uart_init()
139 if (plat->adv_func->uart_init_pre(index) != MRAA_SUCCESS) { in mraa_uart_init()
145 if (plat->uart_dev_count == 0) { in mraa_uart_init()
150 if (plat->uart_dev_count <= index) { in mraa_uart_init()
151 syslog(LOG_ERR, "uart: platform has only %i", plat->uart_dev_count); in mraa_uart_init()
155 if (!plat->no_bus_mux) { in mraa_uart_init()
156 int pos = plat->uart_dev[index].rx; in mraa_uart_init()
158 if (plat->pins[pos].uart.mux_total > 0) { in mraa_uart_init()
159 if (mraa_setup_mux_mapped(plat->pins[pos].uart) != MRAA_SUCCESS) { in mraa_uart_init()
[all …]
/hardware/bsp/intel/peripheral/libmraa/src/arm/
Darm.c86 plat = mraa_raspberry_pi(); in mraa_arm_platform()
89 plat = mraa_beaglebone(); in mraa_arm_platform()
92 plat = mraa_banana(); in mraa_arm_platform()
95 plat = mraa_96boards(); in mraa_arm_platform()
98 plat = NULL; in mraa_arm_platform()
Dbeaglebone.c262 plat->spi_bus[index].bus_id = deviceindex; in mraa_beaglebone_spi_init_pre()
278 sprintf(devpath, "/dev/i2c-%u", plat->i2c_bus[bus].bus_id); in mraa_beaglebone_i2c_init_pre()
315 if (plat == NULL) { in mraa_beaglebone_pwm_init_replace()
319 if (plat->pins[pin].capabilites.pwm != 1) { in mraa_beaglebone_pwm_init_replace()
343 sprintf(devpath, SYSFS_CLASS_PWM "pwm%u", plat->pins[pin].pwm.pinmap); in mraa_beaglebone_pwm_init_replace()
352 if (fprintf(fh, "%d", plat->pins[pin].pwm.pinmap) < 0) { in mraa_beaglebone_pwm_init_replace()
364 dev->pin = plat->pins[pin].pwm.pinmap; in mraa_beaglebone_pwm_init_replace()
Draspberry_pi.c71 sprintf(devpath, "/dev/spidev%u.0", plat->spi_bus[index].bus_id); in mraa_raspberry_pi_spi_init_pre()
Dbanana.c73 sprintf(devpath, "/dev/spidev%u.0", plat->spi_bus[index].bus_id); in mraa_banana_spi_init_pre()
/hardware/bsp/intel/peripheral/libmraa/src/aio/
Daio.c73 if (plat == NULL) { in mraa_aio_init()
83 mraa_aio_context dev = mraa_aio_init_internal(plat->adv_func); in mraa_aio_init()
88 int pin = aio + plat->gpio_count; in mraa_aio_init()
89 dev->channel = plat->pins[pin].aio.pinmap; in mraa_aio_init()
99 if (aio > plat->aio_count) { in mraa_aio_init()
105 if (plat->pins[pin].capabilites.aio != 1) { in mraa_aio_init()
111 if (plat->pins[pin].aio.mux_total > 0) { in mraa_aio_init()
112 if (mraa_setup_mux_mapped(plat->pins[pin].aio) != MRAA_SUCCESS) { in mraa_aio_init()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/build/make/
Dgen_msvs_vcxproj.sh166 for plat in "${platforms[@]}"; do
169 Condition="'\$(Configuration)|\$(Platform)'=='$cfg|$plat'"
171 Condition="'\$(Configuration)|\$(Platform)'=='$cfg|$plat'"
173 Condition="'\$(Configuration)|\$(Platform)'=='$cfg|$plat'"
351 for plat in "${platforms[@]}"; do
354 Include="$config|$plat"
356 tag_content Platform $plat
372 for plat in "${platforms[@]}"; do
375 Condition="'\$(Configuration)|\$(Platform)'=='$config|$plat'" \
385 if [ "$plat" = "ARM" ]; then
[all …]
Dgen_msvs_proj.sh150 for plat in "${platforms[@]}"; do
153 Name="${cfg}|${plat}" \
167 for plat in "${platforms[@]}"; do
170 Name="${cfg}|${plat}" \
343 for plat in "${platforms[@]}"; do
344 tag Platform Name="$plat"
349 for plat in "${platforms[@]}"; do
350 plat_no_ws=`echo $plat | sed 's/[^A-Za-z0-9_]/_/g'`
352 Name="Debug|$plat" \
456 Name="Release|$plat" \
/hardware/bsp/intel/peripheral/libmraa/examples/
Dmraa-i2c.c33 extern mraa_board_t* plat;
39 if (plat != NULL && plat->sub_platform != NULL) in print_version()
40 fprintf(stdout, " with %s", plat->sub_platform->platform_name); in print_version()
101 print_bus(plat); in print_busses()
103 print_bus(plat->sub_platform); in print_busses()
/hardware/bsp/intel/peripheral/libmraa/include/
Dmraa_internal.h38 extern mraa_board_t* plat;
/hardware/bsp/intel/peripheral/libmraa/src/i2c/
Di2c.c134 mraa_board_t* board = plat; in mraa_i2c_init()
189 return mraa_i2c_init_internal(plat == NULL ? NULL : plat->adv_func, bus); in mraa_i2c_init_raw()
/hardware/bsp/intel/peripheral/libmraa/src/gpio/
Dgpio.c132 mraa_board_t* board = plat; in mraa_gpio_init()
184 return mraa_gpio_init_internal(plat == NULL ? NULL : plat->adv_func , pin); in mraa_gpio_init_raw()