Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 25 of 46) sorted by relevance

12

/hardware/bsp/intel/peripheral/libmraa/src/x86/
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()
312 if (mraa_setup_mux_mapped(plat->pins[dev->phy_pin].mmap.gpio) != MRAA_SUCCESS) { in mraa_intel_galileo_g2_mmap_setup()
358 b->pins[0].gpio.pinmap = 11; in mraa_intel_galileo_gen2()
359 b->pins[0].gpio.parent_id = 0; in mraa_intel_galileo_gen2()
360 b->pins[0].gpio.mux_total = 0; in mraa_intel_galileo_gen2()
361 b->pins[0].gpio.complex_cap = (mraa_pin_cap_complex_t){ 1, 1, 0, 1, 1 }; in mraa_intel_galileo_gen2()
362 b->pins[0].gpio.output_enable = 32; in mraa_intel_galileo_gen2()
363 b->pins[0].gpio.pullup_enable = 33; in mraa_intel_galileo_gen2()
[all …]
Dintel_galileo_rev_d.c111 if (mraa_setup_mux_mapped(plat->pins[dev->phy_pin].mmap.gpio) != MRAA_SUCCESS) { in mraa_intel_galileo_g1_mmap_setup()
179 b->pins[0].gpio.pinmap = 50; in mraa_intel_galileo_rev_d()
180 b->pins[0].gpio.parent_id = 0; in mraa_intel_galileo_rev_d()
181 b->pins[0].gpio.mux_total = 1; in mraa_intel_galileo_rev_d()
182 b->pins[0].gpio.mux[0].pin = 40; in mraa_intel_galileo_rev_d()
183 b->pins[0].gpio.mux[0].value = 1; in mraa_intel_galileo_rev_d()
192 b->pins[1].gpio.pinmap = 51; in mraa_intel_galileo_rev_d()
193 b->pins[1].gpio.mux_total = 1; in mraa_intel_galileo_rev_d()
194 b->pins[1].gpio.mux[0].pin = 41; in mraa_intel_galileo_rev_d()
195 b->pins[1].gpio.mux[0].value = 1; in mraa_intel_galileo_rev_d()
[all …]
Dintel_edison_fab_c.c54 mraa_intel_edision_pindef_t gpio; member
197 sysfs = pinmodes[dev->phy_pin].gpio.sysfs; in mraa_intel_edison_gpio_init_post()
198 mode = pinmodes[dev->phy_pin].gpio.mode; in mraa_intel_edison_gpio_init_post()
258 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()
373 return mraa_intel_edison_pinmode_change(plat->pins[pin].gpio.pinmap, 1); 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()
814 b->pins[pos].gpio.pinmap = 182; in mraa_intel_edison_miniboard()
815 b->pins[pos].gpio.mux_total = 0; in mraa_intel_edison_miniboard()
833 b->pins[pos].gpio.pinmap = 135; in mraa_intel_edison_miniboard()
[all …]
/hardware/bsp/intel/peripheral/libmraa/src/arm/
Dbeaglebone.c547 b->pins[3].gpio.pinmap = 38; in mraa_beaglebone()
548 b->pins[3].gpio.parent_id = 0; in mraa_beaglebone()
549 b->pins[3].gpio.mux_total = 0; in mraa_beaglebone()
558 b->pins[4].gpio.pinmap = 39; in mraa_beaglebone()
559 b->pins[4].gpio.parent_id = 0; in mraa_beaglebone()
560 b->pins[4].gpio.mux_total = 0; in mraa_beaglebone()
569 b->pins[5].gpio.pinmap = 34; in mraa_beaglebone()
570 b->pins[5].gpio.parent_id = 0; in mraa_beaglebone()
571 b->pins[5].gpio.mux_total = 0; in mraa_beaglebone()
580 b->pins[6].gpio.pinmap = 35; in mraa_beaglebone()
[all …]
Draspberry_pi.c305 b->pins[3].gpio.pinmap = 2; in mraa_raspberry_pi()
306 b->pins[3].gpio.mux_total = 0; in mraa_raspberry_pi()
315 b->pins[5].gpio.pinmap = 3; in mraa_raspberry_pi()
316 b->pins[5].gpio.mux_total = 0; in mraa_raspberry_pi()
325 b->pins[7].gpio.pinmap = 4; in mraa_raspberry_pi()
326 b->pins[7].gpio.mux_total = 0; in mraa_raspberry_pi()
330 b->pins[8].gpio.pinmap = 14; in mraa_raspberry_pi()
331 b->pins[8].gpio.mux_total = 0; in mraa_raspberry_pi()
340 b->pins[10].gpio.pinmap = 15; in mraa_raspberry_pi()
341 b->pins[10].gpio.mux_total = 0; in mraa_raspberry_pi()
[all …]
Dbanana.c323 b->pins[3].gpio.pinmap = 53; in mraa_banana()
335 b->pins[5].gpio.pinmap = 52; in mraa_banana()
342 b->pins[7].gpio.pinmap = 226; in mraa_banana()
345 b->pins[7].gpio.pinmap = 259; in mraa_banana()
351 b->pins[8].gpio.pinmap = 228; in mraa_banana()
354 b->pins[8].gpio.pinmap = 224; in mraa_banana()
363 b->pins[10].gpio.pinmap = 229; in mraa_banana()
366 b->pins[10].gpio.pinmap = 225; in mraa_banana()
372 b->pins[11].gpio.pinmap = 275; in mraa_banana()
376 b->pins[12].gpio.pinmap = 259; in mraa_banana()
[all …]
/hardware/bsp/intel/peripheral/libmraa/examples/
Dblink_onboard.c35 mraa_gpio_context gpio, gpio_in = NULL; in main() local
41 gpio = mraa_gpio_init_raw(3); in main()
47 gpio = mraa_gpio_init(21); in main()
50 gpio = mraa_gpio_init(13); in main()
56 if (gpio == NULL) { in main()
71 mraa_gpio_dir(gpio, MRAA_GPIO_OUT); in main()
78 mraa_gpio_write(gpio, !ledstate); in main()
Dblink-io.c62 mraa_gpio_context gpio; in main() local
63 gpio = mraa_gpio_init(iopin); in main()
64 if (gpio == NULL) { in main()
71 r = mraa_gpio_dir(gpio, MRAA_GPIO_OUT); in main()
79 r = mraa_gpio_write(gpio, 0); in main()
88 r = mraa_gpio_write(gpio, 1); in main()
98 r = mraa_gpio_close(gpio); in main()
Dmmap-io2.c35 mraa_gpio_context gpio; in main() local
36 gpio = mraa_gpio_init(2); in main()
38 mraa_gpio_use_mmaped(gpio, 1); in main()
41 mraa_gpio_write(gpio, 1); in main()
43 mraa_gpio_write(gpio, 0); in main()
Dgpio_read6.c37 mraa_gpio_context gpio; in main() local
39 gpio = mraa_gpio_init(6); in main()
41 mraa_gpio_dir(gpio, MRAA_GPIO_IN); in main()
44 fprintf(stdout, "Gpio is %d\n", mraa_gpio_read(gpio)); in main()
48 mraa_gpio_close(gpio); in main()
Dmraa-gpio.c106 mraa_gpio_context gpio = mraa_gpio_init(pin); in gpio_set() local
107 if (gpio != NULL) { in gpio_set()
108 mraa_gpio_dir(gpio, MRAA_GPIO_OUT); in gpio_set()
110 if (mraa_gpio_use_mmaped(gpio, 1) != MRAA_SUCCESS) { in gpio_set()
115 mraa_gpio_write(gpio, level); in gpio_set()
124 mraa_gpio_context gpio = mraa_gpio_init(pin); in gpio_get() local
125 if (gpio != NULL) { in gpio_get()
126 mraa_gpio_dir(gpio, MRAA_GPIO_IN); in gpio_get()
128 if (mraa_gpio_use_mmaped(gpio, 1) != MRAA_SUCCESS) { in gpio_get()
133 *level = mraa_gpio_read(gpio); in gpio_get()
DCMakeLists.txt12 add_executable (mraa-gpio mraa-gpio.c)
33 target_link_libraries (mraa-gpio mraa)
43 install (TARGETS mraa-gpio DESTINATION bin)
/hardware/bsp/intel/peripheral/libupm/src/lol/
Dlol.cxx56 void clear_gpio(int gpio) in clear_gpio() argument
58 mraa_gpio_mode(m_Ctx[gpio], MRAA_GPIO_HIZ); in clear_gpio()
59 mraa_gpio_dir(m_Ctx[gpio], MRAA_GPIO_IN); in clear_gpio()
83 void set_strong_one(int gpio) in set_strong_one() argument
85 mraa_gpio_dir(m_Ctx[gpio], MRAA_GPIO_OUT); in set_strong_one()
86 mraa_gpio_mode(m_Ctx[gpio], MRAA_GPIO_STRONG); in set_strong_one()
87 mraa_gpio_write(m_Ctx[gpio], 1); in set_strong_one()
90 void set_strong_zero(int gpio) in set_strong_zero() argument
92 mraa_gpio_dir(m_Ctx[gpio], MRAA_GPIO_OUT); in set_strong_zero()
93 mraa_gpio_mode(m_Ctx[gpio], MRAA_GPIO_STRONG); in set_strong_zero()
[all …]
/hardware/bsp/intel/peripheral/libmraa/examples/java/
DBlinkOnboard.java45 Gpio gpio, gpio_in; in main() local
47 gpio = new Gpio(3); in main()
49 gpio = new Gpio(21); in main()
51 gpio = new Gpio(13); in main()
56 gpio.dir(Dir.DIR_OUT); in main()
73 gpio.write(1); in main()
76 gpio.write(0); in main()
DGpioMmapped.java48 Gpio gpio = new Gpio(1); in main() local
50 gpio.useMmap(true); in main()
53 gpio.write(1); in main()
55 gpio.write(0); in main()
DBlinkIO.java57 Gpio gpio = new Gpio(iopin); in main() local
58 Result result = gpio.dir(Dir.DIR_OUT); in main()
65 gpio.write(1); in main()
67 gpio.write(0); in main()
DGpioRead6.java45 Gpio gpio = new Gpio(6); in main() local
47 gpio.dir(Dir.DIR_IN); in main()
50 System.out.format("Gpio is %d\n", gpio.read()); in main()
DIsr.java41 Gpio gpio = new Gpio(6); in main() local
45 gpio.isr(Edge.EDGE_RISING, callback); in main()
/hardware/bsp/intel/peripheral/libmraa/examples/c++/
DBlink-IO.cpp59 mraa::Gpio* gpio = new mraa::Gpio(iopin); in main() local
60 if (gpio == NULL) { in main()
63 mraa::Result response = gpio->dir(mraa::DIR_OUT); in main()
70 response = gpio->write(1); in main()
72 response = gpio->write(0); in main()
75 delete gpio; in main()
/hardware/bsp/intel/peripheral/examples/mraa/gpio_output/
Dledflasher_mraa.cpp28 const unsigned gpio[] = {0, 1, 2}; in main() local
29 const int gpio_count = sizeof(gpio)/sizeof(*gpio); in main()
34 m_gpio[i] = mraa_gpio_init(gpio[i]); in main()
37 gpio[i]); in main()
/hardware/bsp/intel/peripheral/libmraa/docs/
Dgalileorevd.md9 - gpio 13 will not switch the LED as it's a different Gpio, use raw gpio '3' to do this
10 - gpio register access via /dev/uio is limited to pin2 and 3
11 - gpio interupts will only work on GPIO_EDGE_BOTH
Dchangelog.md13 * FT4222 gpio support
40 * gpio enums all prefixed with mraa_
73 * gpio sample added
121 * galileo gen2 gpio modes supported
138 * Intel Galileo Gen 2, I2C gpio pins now go hiz input when I2C initialised.
161 * usage of "gpio.h" is not legal you need to use "mraa/gpio.h" unless adding
166 * Added mmap gpio call mraa_gpio_use_mmaped
/hardware/bsp/intel/peripheral/libmraa/src/javascript/
Dpackage.json.cmake3 …"description": "IO library that helps you use I2c, SPI, gpio, uart, pwm, analog inputs (aio) and m…
4 "keywords":["gpio", "edison","galileo","io", "mraajs", "spi", "i2c", "minnow", "intel"],
/hardware/bsp/intel/peripheral/light/mraa/
Dlights.c92 mraa_gpio_context gpio = NULL; in set_gpio_value() local
99 gpio = mraa_gpio_init(pin); in set_gpio_value()
100 if (gpio == NULL) { in set_gpio_value()
104 if (mraa_gpio_dir(gpio, MRAA_GPIO_OUT) != MRAA_SUCCESS) { in set_gpio_value()
109 if (mraa_gpio_write(gpio, value) != MRAA_SUCCESS) { in set_gpio_value()
114 if (mraa_gpio_close(gpio) != MRAA_SUCCESS) { in set_gpio_value()
/hardware/bsp/intel/peripheral/libmraa/include/
Dmraa_internal_types.h157 mraa_boolean_t gpio:1; /**< Is the pin gpio capable */ member
202 mraa_pin_t gpio; /** GPio context containing none mmap info */ member
213 mraa_pin_t gpio; /**< GPIO structure */ member

12