Alex Tereschenko
1b3a9371a1
uart.c: rework mraa_uart_init_raw to use common cleanup block
...
This will align it with spi.c and make it easier to introduce
a replace function.
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
ccc4185eff
uart.hpp: fix typo in setNonBlocking() function name
...
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
6fda865af7
uart.hpp: fix typo in write() description
...
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
Brendan Le Foll
dd33a32744
README.md: Fix typo in README.md
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-25 12:03:23 +01:00
Joseph Butler
7d1ee0c6fe
README.MD: Fix ubuntu instructions to update repo
...
Signed-off-by: Joseph Butler <joseph.butler@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-25 12:02:17 +01:00
Brendan Le Foll
19791be2f5
CONTRIBUTING.md: Add author rules and suggestion on filing issues for feature review
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-24 11:36:22 +01:00
Brendan Le Foll
49ef1623b2
python: Move docs to depend on BUILDPYTHON2 to not build with py3
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 15:21:06 +01:00
Brendan Le Foll
37deb5003b
mraa: Update to v1.4.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 14:44:36 +01:00
Brendan Le Foll
980dfce80e
mraa.c: return MRAA_SUCCESS when trying to call mraa_add_subplatform twice
...
If we already have a subplatform present with the same type, return success
when trying to add it again. We don't check that the tty is the same because
that is hidden inside the t_firmata* structure but we should do at some point
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 13:58:40 +01:00
Brendan Le Foll
08e270818a
firmata_mraa.c: Clean up for loops with useless statements
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 08:49:36 +01:00
Brendan Le Foll
6bac8594a5
mraa.c: Remove unused variables in mraa_add_from_lockfile
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 08:49:12 +01:00
Brendan Le Foll
11bbd05533
mraa.c: Add MRAA_SUCCESS return to mraa_remove_subplatform
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 08:48:47 +01:00
Brendan Le Foll
1d4b19dc4b
mraa.c: Move firmata syslog message to useful location
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 08:48:23 +01:00
Brendan Le Foll
02a7fbf191
imraa.c: Remove unused variables
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 08:47:26 +01:00
Brendan Le Foll
ae15b10997
types.h: Remove tabs that crept in
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-10-11 08:38:09 +01:00
SaschaWeisenberger
be22844922
src/x86/x86.c: add support for Siemens SIMATIC IOT2000
...
The Siemens device "SIMATIC IOT2000" is identical to the Intel Galileo
Gen 2 regarding the gpios. So if the board name is "SIMATIC IOT2000"
treat the board as if it is Galileo Gen 2.
Signed-off-by: Sascha Weisenberger sascha.weisenberger@siemens.com
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-27 13:08:44 +01:00
Thomas Ingleby
92fdb8aa01
README: Update PPA instructions
...
Fixes #581
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2016-09-21 23:50:28 +03:00
Stefan Andritoiu
def454e33c
java: Renamed pom.xml file to the standard naming convention
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-14 15:17:58 +01:00
Brendan Le Foll
122cab1f1e
cmake: Add lots of fancy warnings to CC/CXX and make cmake check they exist
...
Thanks to Dan Liew for cmake work in fpbench that this is copied from
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-13 11:45:49 +01:00
Brendan Le Foll
6c85b61daa
mraa: Fix compiler warnings unused vars and useless statements
...
Should have 0 functionality effect, just cleans up a few things. Fixes #577
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-13 11:20:41 +01:00
Alex Tereschenko
139d42d084
FindNodejs.cmake: added search paths for Ubuntu 16.04
...
Closes #566 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-12 12:24:24 +01:00
Stefan Andritoiu
8e38c762f0
java: Added automatic pom.xml file creation in CMake
...
This is to add mraa package in a Maven repo
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-12 12:23:18 +01:00
Jon Trulson
590f733ff9
uart_ow: convert static const int MRAA_UART_OW_ROMCODE_SIZE to #define
...
This is needed so that this value can be used in all places in C (and
C++) code. Unlike C++ you can't always use a static const int
variable to declare an array size for example. Trying to do so will
yield compiler errors.
In addition, during the declaration of the uart_ow_context, replace a
hardcoded '8' with this macro. Originally, the '8' was hardcoded for
this very reason.
Signed-off-by: Jon Trulson <jtrulson@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-12 12:21:46 +01:00
Brendan Le Foll
045ceb084f
grossetete.md: Add documentation for uart
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-07 13:51:58 +01:00
Brendan Le Foll
ff3b3004da
intel_gt_tuchuck.c: Add SPI to joule pinmap file
...
This commit fixes documentation for SPI bus to match latest changes in pinmap
file
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-07 13:51:32 +01:00
Brendan Le Foll
5cb2bd220e
spi.hpp: Add documentation to raw mode constructor
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-07 13:27:07 +01:00
Brendan Le Foll
8ec4fcb333
intel_galileo_rev_g.c: use pincmd to set OUT_HIGH instead of value
...
The i/o expander looses connection as soon as direction is set so use direction
OUT_HIGH instead of setting value after direction. Closes #573
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-02 12:00:29 +01:00
Brendan Le Foll
bf2a504774
firmata_mraa.c: retry counter should not be decremented past 0
...
This means the retry counter works appropriately in case of failure. Closes #574
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-02 11:49:26 +01:00
Brendan Le Foll
9bc91f4b12
docs/joule: Rename docs to use joule naming
...
This also adds the 2 LEDs on the 8260 radio to the mapping
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 16:06:31 +01:00
Brendan Le Foll
6180ddaa8e
README.md: update mraa instructions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 16:03:30 +01:00
Brendan Le Foll
8a93351f0e
building.md: Update building docs
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 15:53:39 +01:00
Brendan Le Foll
1591b92605
python2/cmake: Remove unused pydocs target
...
Pydocs has been deprecated in favour of sphinx as it's really very very ugly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 15:43:23 +01:00
Brendan Le Foll
22b0f63238
cmake: Remove dirty tag on compilation from non git tree
...
This is removed to make building in buildsystems like ubuntu's or yocto's
easier. Bugs reported from old versions haven't been that annoying so this is
probably be ok
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 15:00:10 +01:00
Brendan Le Foll
2832909856
mraa: Update to v1.3.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 13:03:47 +01:00
Alex Tereschenko
636c9feb4f
travis: add builds for mock
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:32:20 +01:00
Alex Tereschenko
0292c960b3
mock SPI: remove loop variable declarations
...
While working fine on my Fedora 22, under Travis (and Ubuntu)
that fails asking to enable C99 standard first, so let's be conservative.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:32:20 +01:00
Alex Tereschenko
9ff47aa64a
mock SPI: correct error message to actually use data provided
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:32:20 +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
Brendan Le Foll
94b7477212
intel_gt_tuchuck.c: Make sure GPIOs are set to 0 muxes
...
Use calloc for pinsize and set mux_total to 0 in all gpios
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 12:26:36 +01:00
Brendan Le Foll
1589389c3f
intel_gt_tuchuck.c: LED101 reset to GPIO338
...
A bios change to 395 was never made so this broke LED101
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-30 11:40:32 +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
Alex Tereschenko
3a638caf01
spi.c: added context validity checks
...
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
07f6181c91
mock_board_i2c.c: removed surplus includes
...
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
Houman Brinjcargorabi
0630c5f505
jsonplatform.md: Added documentation
...
Signed-off-by: Houman Brinjcargorabi <hbrinjcar@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 15:59:53 +01:00
Houman Brinjcargorabi
4277a3ee23
mraa.c: Replaced string values with #defines
...
Signed-off-by: Houman Brinjcargorabi <hbrinjcar@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 15:46:39 +01:00
Jon Trulson
c976e9f982
gpio.h: remove extraneous extern C declaration
...
Signed-off-by: Jon Trulson <jtrulson@ics.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-19 15:45:08 +01:00
Brendan Le Foll
d700cae7c4
mraa: Update to v1.2.3
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-10 11:33:28 +01:00
Brendan Le Foll
356096350b
README.md: Add travis build status
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-10 11:21:54 +01:00
Brendan Le Foll
b4919de733
.travis.yml: Add npmpkg travis builds
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-08-10 11:21:54 +01:00