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
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
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
Sanrio Alvares
e607beedda
periphmraa: Rename B* -> A*
...
Fixes compilation issues introduced earlier
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
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
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
Mihai Tudor Panu
791fe0c05a
de-nano-soc: renamed platform to avoid ambiguity
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-06 23:53:44 +02:00
root
0004dfeefb
de10-nano: added initial support for Terasic DE10-Nano-SoC kit
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-03-09 17:27:17 +01:00
Cédric Bosdonnat
c69b6312fa
raspberrypi: add 3 model B support
...
Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-03-02 08:32:10 -08:00
Wai Lun
0092e13f57
Joule: Update references to the Intel Joule
...
GT/GrosseTete -> Joule. This commit deprecates the MRAA_INTEL_GT_TUCHUCK
mraa_platform_t value and links the grossetete.md page to joule.md.
Signed-off-by: Wai Lun Poon <wai.lun.poon@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-02-27 18:06:40 +01:00
Norbert Wesp
4472ff1629
phyboard-wega: Added platform support for phyBOARD-Wega
...
Like the beaglebone, the phyBOARD-Wega also got an am335x.
So I merged the four mmap-functions for gpio_context and some
identical defines in a separate header and c-file.
The new platform support-files are based on beaglebone-files.
The documentation of phyBOARD-Wega is still in process,
but for now there are enough informations.
At this time it is possible to use GPIO-Pins and Uart0
(tested via python with mraa). The code for using SPI, I2C and
PWM is also still in process and not tested yet.
Signed-off-by: Norbert Wesp <nwesp@phytec.de >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-01-26 22:11:46 +01:00
Henry Bruce
9de294b389
json: Improve i2c and spi configuration.
...
Bus number no longer has to be the same as its id and all busses are
disabled until a configuration entry is found.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-11-21 10:23:21 +00:00
Brendan Le Foll
9d365ce0d6
mraa.c: Find i2c bus by pci id
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-11-02 15:30:56 +00:00
Brendan Le Foll
23e871c5bb
mraa_internal.h: Add internal definition for mraa_atoi
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-11-02 15:30:56 +00:00
Brendan Le Foll
623fef670e
firmata: Add pthread spin locks around uart operations
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-26 14:24:50 +01:00
Alex Tereschenko
9f03afbcbc
mock: implement UART functionality
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-25 12:04:04 +01:00
Alex Tereschenko
8a9efd1bcc
uart.c: add replace functions used by mock
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-25 12:04:04 +01:00
Houman Brinjcargorabi
a704a956ea
raspberry_pi.c: Added support for pi zero
...
Signed-off-by: Houman Brinjcargorabi <hbrinjcar@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:30:56 +01:00
Alex Tereschenko
bdbbfd03dd
mraa mock: Add SPI functionality
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 16:00:53 +01:00
Alex Tereschenko
9030ae2eeb
spi.c: added replace functions for all basic actions
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 16:00:53 +01:00
Thomas Ingleby
fce4daab02
mraa: Correct spelling of capabilities
...
Type was correctly spelt, but the member in the platform strut was not.
My mistake from 2014.
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2016-08-08 21:44:00 +02:00
Houman Brinjcargorabi
a8a7771a16
mraa_internal_types: Changed pinmap type from unsigned to signed Int
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
1ce0b138d2
mraa_internal_types.h: changed unsigned ints in board_t to ints and removed const modifiers
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Houman Brinjcargorabi
8ba8ce3b26
mraa.c: Added init platform from json file
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:33:29 +01:00
Alex Tereschenko
346f447c4d
mock: added I2C functionality
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:28:53 +01:00
Alex Tereschenko
26718a67a2
mock: split out aio and gpio implementations to separate files
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-27 11:28:53 +01:00
Alex Tereschenko
63b244cfc3
mock: added AIO pin and logic
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-11 10:48:43 +01:00
Alex Tereschenko
917a1bd371
aio: added context validity and replace function checks to aio_close()
...
Added standard context validity check, another check for a replace function
and corrected a return statement to fit our standard code style.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-11 10:48:43 +01:00
Alex Tereschenko
1af737f3d9
mock: mraa with mock platform now works in Windows under MSYS2
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-05 19:32:58 +01:00
Alex Tereschenko
bcb6adc551
mock: added mraa mock platform infra and GPIO implementation
...
Mock platform allows one to use mraa without having any real HW.
This commit makes necessary foundational changes and implements
GPIO functionality as well as adds respective tests.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-05 16:19:05 +01:00
Bruce Beare
5704c15665
gt: Add module lights to the gpio HAL
...
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-29 09:58:57 +01:00
Brendan Le Foll
0577321f4c
intel_gt: add support for gt + Tuchuck board
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-23 16:16:38 +01:00
Alex Tereschenko
8af6843566
PWM: added workaround for Edison's problem with 0% duty
...
As described in issue #91 , on Edison setting 0% duty doesn't
disable the PWM on a pin completely.
Therefore we add a couple of Edison-specific _pre functions
and an internal PWM state variable, which we use to toggle PWM
enabled/disabled based on what duty is set for the pin.
Closes #91 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-16 14:12:33 +01:00
Alexandru Timohi
828338a69a
libmraa: Fix compilation warnings about unsigned ints
...
Make better use of unsigned/signed ints, signed ints are preffered unless there
is a good reason not to.
Signed-off-by: Alexandru Timohi <alexandru.timohi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-05-19 11:50:33 +01:00
Brendan Le Foll
c1465bd694
i2c: Make i2c advance function match new prototypes
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-22 11:59:17 +01:00
Brendan Le Foll
0b74aa68ab
aio: Change mraa_aio_read to use int and return -1
...
This commit changes also the _replace function and adds exceptions to the C++
API for errors in AIO read
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-22 11:57:26 +01:00
Fathi Boudra
e1c500414b
docs: fix spelling errors
...
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-11 15:13:06 +01:00
Brendan Le Foll
ec267c3482
firmata: add timeout for firmata_pull failing
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Brendan Le Foll
334a57be11
gpio.c: Add close replace function hook
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Longwei Su
a52ce5d5bb
imraa: add first version of imraa, the mraa initialisation daemon
...
Imraa allows the automatic flashing and setup of arduino101 subplatforms as
well as the initial setup of GPIO/i2c devices
Signed-off-by: Longwei Su <lsu@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Mihai Tudor Panu
603834461f
pwm: added hooks for subplatform support
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:29 +00:00
Brendan Le Foll
59107f0a29
firmata: add public firmata API to support custom firmata plugins
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:29 +00:00
Brendan Le Foll
612f566c99
firmata: remove servo stuff
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:29 +00:00
Shiran Ben-Melech
04f7cbff5d
firmata: Convert mraa FirmataC implementation to work over Uart instead of serial implementation
...
Signed-off-by: Shiran Ben-Melech <shiran.ben-melech@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:29 +00:00
Brendan Le Foll
78caa990f1
firmata: initial work
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:29 +00:00