Jon Trulson
e0a0dac47b
uart: add tcsendbreak support
...
Signed-off-by: Jon Trulson <jtrulson@ics.com >
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
2017-05-08 21:15:33 +02:00
Sanrio Alvares
80335b18b6
peripheralman: i2c_read_bytes_data returns length of read bytes
...
Return length of read bytes rather than 0 on success.
MRAA calls I2C_RDWR ioctl which returns number of bytes read.
PIO is yet to implement that API so currently does I2C_SMBUS
ioctl instead, which returns 0 in case of success.
Signed-off-by: Sanrio Alvares <sanrio.alvares@intel.com >
2017-05-04 02:29:34 -07:00
Sanrio Alvares
35e17ee25a
periphmraa: fix pwm calls to PIO
...
Signed-off-by: Sanrio Alvares <sanrio.alvares@intel.com >
Signed-off-by: Noel Eck <noel.eck@intel.com >
2017-04-30 16:39:22 -07:00
Sanrio Alvares
ef2fddc1e1
periphmraa: fix pwm init sequence
...
Signed-off-by: Sanrio Alvares <sanrio.alvares@intel.com >
Signed-off-by: Noel Eck <noel.eck@intel.com >
2017-04-28 10:54:58 -07:00
Sanrio Alvares
ce0edf0f62
periphmraa: set pin capabilities
...
Peripheral Manager provides mutual exclusion between pins
multiple functionalities. This feature in MRAA is redundant for
this platform.
Once the API to retrieve pin functionality from PIO is available
use it to update each pins capabilities.
Signed-off-by: Sanrio Alvares <sanrio.alvares@intel.com >
Signed-off-by: Noel Eck <noel.eck@intel.com >
2017-04-26 14:43:26 -07:00
Noel Eck
87fda62759
peripheralman.c: Allocate pwm context for spi
...
Updated the mraa_pman_pwm_init_replace method to allocate heap space for the
mraa_pwm_context (returned by this method.
Signed-off-by: Noel Eck <noel.eck@intel.com >
2017-04-24 14:42:55 -07:00
Noel Eck
3e19a58710
pio: Remove pio headers from MRAA
...
The Native PIO API provides both the libraries and headers for use with
the Android Things Peripheralanager client. This commit removes these
from the MRAA repo in favor of the FindAndroidThings.cmake provided by
the Native PIO API.
Signed-off-by: Noel Eck <noel.eck@intel.com >
2017-04-24 14:42:55 -07:00
Vineela Tummalapalli
913eaf2440
periphmraa: Create IndexLookup functions for GPIO, I2C, SPI, PWM
...
These lookups provide the MRAA index with the Pin/Bus name as input
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Sanrio Alvares
7bc069a8fd
periphmraa: Fix compilation errors in PWM
...
config PERIPHERALMAN fails to compile with PWM. Fix it.
Signed-off-by: Sanrio Alvares <sanrio.alvares@intel.com >
Signed-off-by: Noel Eck <noel.eck@intel.com >
2017-04-24 14:42:55 -07:00
Sanrio Alvares
beaba463f7
peripheralman.c: Added PWM
...
Signed-off-by: Sanrio Alvares <sanrio.alvares@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Vineela Tummalapalli
a2ee056c7d
peripheralman.c: Updating GPIO, SPI, I2C bus structures for all the available buses
...
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Sanrio Alvares
c4555bc4e5
peripheralman: Update APIs in accordance with Android Things
...
Signed-off-by: Sanrio Alvares <sanrio.alvares@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Vineela Tummalapalli
1cec6705d1
peripheralman.c: Updating the mraa_i2c_bus_t structure for all the available i2c busses
...
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Vineela Tummalapalli
9a306fc1f5
peripheralman.c: Fix Gpio pin map value to be valid
...
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Brendan Le Foll
8a1c58bc7f
peripheralman: Remove stray source files from pmraa
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Brendan Le Foll
76850eb0f4
peripheralman.c: Added UART
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Brendan Le Foll
0ec90a3138
peripheralman.c: Added SPI & I2C
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Brendan Le Foll
60ca81a3e1
android-things: Possibly working gpio
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:55 -07:00
Brendan Le Foll
4c7616fe91
android-things: Prep for peripheralmanager support
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-24 14:42:54 -07:00