Commit Graph

8 Commits

Author SHA1 Message Date
Michael LeMay
58874ea25d x86, galileo: Refactor I2C and GPIO initialization
This patch revises the I2C and GPIO initialization code to always be
run during platform boot rather than within each process that requires
it.

This patch also revises the gpio-output example to use a pin that is
set as an output by the default pinmux configuration.  Previously, it
used a pin that was set as an output by the pinmux configuration that
is in effect when the OS does not change the pinmux configuration.
2016-02-16 21:19:44 -08:00
Michael LeMay
3e64447631 galileo: Expand README for examples
This patch expands the instructions in examples/galileo/README.md.
2016-02-16 21:19:44 -08:00
Michael LeMay
c9bffe6d5a galileo: Convert README for examples into README.md
This patch renames and reformats examples/galileo/README to use
Markdown.
2016-02-16 21:19:44 -08:00
Ricardo de Almeida Gonzaga
ba09b47d65 galileo: Initialize pinmux in i2c-LSM9DS0 example
In order to ensure SCL and SDA are exported in the correct pins.
2015-12-21 08:06:14 -02:00
Ricardo de Almeida Gonzaga
77327181e0 galileo: Add GPIO interrupt example
This patch introduces an example application to demonstrate how to use
GPIO driver APIs to manipulate interrupt pins.

The application uses default galileo pinmux initialization and sets
the GPIO 5 (IO2) as output pin and GPIO 6 (IO3) as interrupt. It toggles
the output pin stat at every half second in order to emulate an interrupt.
This triggers an interrupt and the application callback is called.
2015-12-21 08:06:14 -02:00
Ricardo de Almeida Gonzaga
61e06c632a galileo: Add GPIO input example
This patch introduces an example application to demonstrate how to use
GPIO driver APIs to manipulate input pins.

The application uses default galileo pinmux initialization and sets the
GPIO 5 (IO2) as output pin and GPIO 6 (IO3) as input. It toggles the
output pin state at every half second and checks the value on input pin.
2015-12-21 08:06:14 -02:00
Ricardo de Almeida Gonzaga
7dfd753b21 galileo: Add I2C master example
This patch adds an example application that shows how to use I2C driver
APIs to communicate with LSM9DS0 sensor. At every 5 seconds, the
application reads the "Who Am I" register from gyroscope sensor and
prints if the register value matches the expected value.
2015-12-21 08:06:14 -02:00
Ricardo de Almeida Gonzaga
cc51f89b31 galileo: Add GPIO output example
This patch introduces an example application to demonstrate how to use
GPIO driver APIs to manipulate output pins. The application sets the
GPIO 4 pin as output pin and toggles its state at every half second.
2015-12-21 08:06:14 -02:00