Brendan Le Foll
99b7f131d9
mraa-i2c.c: remove unused arguments to printf statements
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 15:09:28 +01:00
Petre Eftime
3934897864
mraa: Add types.hpp; Use types.hpp for C++ and SWIG
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:54:28 +01:00
Brendan Le Foll
b2a0bbfcbc
hellomraa.c: Remove i2c calls
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
2101e491ce
mraa-i2c: Updated to use new sub-platform API.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
6284806b96
mraa-gpio: Support new sub-platform calls.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
4031124081
api: Renamed some sub-platform API calls.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
b109a12dd1
mraa-i2c: Added interactive mode.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
001e291d63
mraa-gpio: Added sub-platform support.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
7ada55982d
platform_type: platform_type now in mraa_board_t
...
Now platform_type is no longer global it tracks with board instance
so that platform and sub-platform can report different types.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
4a6bf832bc
usb: Converted sub-platform bus/pin helper macros to functions.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
1c9b87bfd3
cmake: add FTDI FT4222 support
...
Existing FTDI D2xx support is just for serial comms library
but FT4222 needs a different library for i2c operation.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
6dfe6ff6bc
examples: Created mraa-i2c tool for i2c layer testing.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Yong Li
02399b61f9
mraa.c: Add new API to support I2C bus number query
...
Add two new API to get the usable I2C bus count and related I2C adapter number
Signed-off-by: Yong Li <yong.b.li@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-25 11:36:14 +01:00
Andrei Vasiliu
cb97f24edd
mraa-gpio.c: Solved issue with getchar() call on Galileo
...
There is a problem with missing symbols __fgetc_unlocked and __stdin in the
libc library build for Galileo. Solved this by replacing the getchar() call
with fscanf().
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-21 11:05:20 +01:00
Brendan Le Foll
e481026227
examples/uart.c: Add a _read call to example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-19 12:39:45 +01:00
Brendan Le Foll
8734a42377
mraa-gpio.c: add %d to printf statement
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-08 10:14:56 +01:00
Brendan Le Foll
f080a74497
gpio: all gpio enums prefixed with _mraa
...
Enum C types for gpio where not all prefixed with mraa correctly, now fixed
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-01 10:59:03 +01:00
Brendan Le Foll
359cad0336
uart: Add c++ uart example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-02 08:43:14 +01:00
Jakub Kramarz
f86703d7bb
java: added example GpioRead6 based on gpio_read6.c
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:53:32 +01:00
Jakub Kramarz
609e9fb102
java: added example BlinkOnboard based on blink_onboard.c
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:53:31 +01:00
Jakub Kramarz
ddff33280e
java: added example CyclePwm3 based on cycle-pwm3.c
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:53:31 +01:00
Jakub Kramarz
472b1c1370
java: capitalized file names of examples, required on case-sensitive systems
...
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-29 09:50:32 +01:00
Brendan Le Foll
0b382100d2
mraa-gpio.c: fix unused printf argument
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-24 16:05:12 +01:00
Alexander Komarov
4302f0d0c3
java: Added Java SWIG binding creation
...
%init directive is not supported in java so move %init to js/py interface files
Signed-off-by: Alexander Komarov <alexander.komarov@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-24 12:12:11 +01:00
Michael Ring
5dfd8e43df
examples/mraa-gpio.c: Fixed compiler warning due to missing include
...
Warning fixed is atoi not being defined when building on Fedora 22
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-04 17:53:20 +01:00
Henry Bruce
a1c5bd8742
CMakeLists.txt: Added option to install mraa-gpio tool
...
This commit renames gpio.c to mraa-gpio.c to make installation in bin/ less
annoying
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-31 13:56:29 +01:00
Thomas Ingleby
52c53760b2
api: introduce define for pin name size
...
MRAA_PIN_NAME_SIZE currently set at 12.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-23 17:25:27 +00:00
Brendan Le Foll
ffcf3d7d07
clang-format: run clang-format on C/C++ code
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-23 15:15:48 +00:00
Michael Ring
8b0b9f1a79
examples/gpio: Re-implemented the display of pin names
...
Re-introduced AIO Pins
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-03-19 00:19:50 +00:00
Brendan Le Foll
797b137826
i2c_HM5883.py: remove old python example
...
Example was using old string based read API which is deprecated in python and
gives confusing advice, there are enough python i2c examples so removing this
one
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-25 16:01:36 +00:00
Brendan Le Foll
163a40e6e7
examples: add uart examples for js & py
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-20 15:04:03 +00:00
Brendan Le Foll
d6891e8bd7
isr.js: add node.js isr example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-18 16:41:31 +00:00
Michael Ring
ffe40033d4
examples/spi_max7219.c: Example for 16bit wide convenience functions
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-17 15:39:54 +00:00
Michael Ring
244879697f
examples/gpio.c Added support for mmap access to gpio
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-15 21:13:20 +00:00
Michael Ring
a4431e7a3e
examples/gpio.c Added whitespace to better align gpio list output
...
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-15 21:13:20 +00:00
Brendan Le Foll
818e1a86de
examples/gpio.c: Fix some formatting & code style
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-10 16:16:30 +00:00
Brendan Le Foll
b32507064d
examples/gpio.c: fix getchar() not working in ssh term
...
This is obviously not a nice way to do input handling but it avoids having more
code in the samples than is really needed
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-10 15:50:59 +00:00
Henry Bruce
403424e4c0
examples/gpio.c: Added command to monitor pin level changes using ISR
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-10 15:41:37 +00:00
Alex Tereschenko
e7c3c17eb3
examples/aio: Added examples for mraa_aio_read_float()/readFloat()
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-05 10:43:26 +00:00
Thomas Ingleby
94dd44a2d3
example/gpio.c: Remove extern to plat
...
Use exposed api functions to get board information.
Added version option for version and name
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2015-01-21 16:24:21 +00:00
Brendan Le Foll
456646ca53
blink_onboard.c: explain use of calamari lure in example
...
Closes #96 .
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-20 23:50:43 +00:00
Brendan Le Foll
b7a0856f51
spi: Make Spi write() work from SWIG with typemaps
...
This change also changes the C++ API write(char) call to writeByte(uint8_t) and
the write() call now takes a uint8_t* instead of a char*. This should not alter
any code significantly and does not affect the C API.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-14 11:52:12 +00:00
Brendan Le Foll
ec5c09fe37
I2c-compass.cpp: fix incorrect usage of write/writeByte
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-06 11:37:07 +00:00
Brendan Le Foll
461015a22f
bmp85.js: add i2c read/write example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-06 11:24:56 +00:00
Brendan Le Foll
23fca714e1
bmp85.py: add simple example of new i2c read func
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-06 11:24:55 +00:00
Brendan Le Foll
87e242a07b
helloedison.c: add edison type example
...
This small example shows the use of mraa_get_pin and documents the owner
concept
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-05 14:35:56 +00:00
Brendan Le Foll
ade49a82b3
examples: use mraa_get_platform_name API in examples
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-27 09:38:06 +00:00
Brendan Le Foll
8be861aa1f
hello_isr.py: add counter to example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-25 10:37:36 +00:00
Henry Bruce
27f22d077b
gpio.c: Added gpio list/set/get utility
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-21 20:06:37 +00:00
Henry Bruce
41bbc0b86b
blink_onboard.c: Added Minnow Max support
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
2014-11-20 15:08:31 +00:00