Private
Public Access
2
0
Commit Graph

1194 Commits

Author SHA1 Message Date
Thomas Ingleby
9a81b043be aio: minor formatting fix
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-25 14:58:15 +01:00
Thomas Ingleby
6853997a92 mraa: rename from maa to mraa
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-24 17:24:54 +01:00
Brendan Le Foll
ad140c9511 maa.i: remove invalid typemaps to char* and include carrays
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-24 14:41:00 +01:00
Thomas Ingleby
a5aeea4d04 maa: remove unnecessary printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-23 11:39:09 +01:00
Thomas Ingleby
d8c45bf6de maa: remove dev printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 18:27:44 +01:00
Brendan Le Foll
475a692638 maa: add maa_get_platform_type function and move swig common to type.h
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-20 18:00:19 +01:00
Brendan Le Foll
5723e356db maa.c: complain if we didn't detect a valid platform
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-20 16:46:05 +01:00
Thomas Ingleby
3e88578754 pwm: disable pwm before unexporting
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 16:26:08 +01:00
Thomas Ingleby
f035dcd341 Merge branch 'gen2' 2014-06-20 16:22:27 +01:00
Thomas Ingleby
29171b7816 intel_galile_rev_g: pinmap add definition for io.
* PWM working
* SPI working

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 16:20:30 +01:00
Thomas Ingleby
11486368b1 gpio: no printing to stderr on direction change.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 16:19:59 +01:00
Kiveisha Yevgeniy
6fbe2a7e53 gpio: Added args param to maa_gpio_isr and added documentation
Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
2014-06-19 16:23:43 +00:00
Thomas Ingleby
76971c6b0b maa: change dependency on direction for muxs
* Will not error if cannot set direction, as some muxes are do not have
* the direction file. If the mux really isnt in output mode the
* following write would also fail.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-19 13:54:19 +01:00
Thomas Ingleby
4c9b7a2208 intel_galileo_rev_g: Complete initial pinmap
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-17 20:16:03 +01:00
Thomas Ingleby
fa4a302398 maa: add support for enabling pins and pulldowns
* Not Complete

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-17 20:15:36 +01:00
Thomas Ingleby
ea88358164 intel galile rev g: change name from gen2 to revg
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-17 09:42:55 +01:00
Brendan Le Foll
27624289ec gen2: add basic galileo gen2 detection
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-16 18:46:31 +01:00
Brendan Le Foll
fa1e81380b intel_galileo_rev_d.c: change magic number to macro in header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-16 18:45:43 +01:00
Brendan Le Foll
93acdf3789 maa.i: add typemaps for uint8_t and uint8_t*
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-13 17:53:21 +01:00
Brendan Le Foll
d1f39525ec maa.i: add typemap for unsigned char* to char*
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-13 10:30:01 +01:00
Brendan Le Foll
3f2163a9b9 CMakeLists.txt: install headers in include/maa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-13 10:16:37 +01:00
Brendan Le Foll
6e4f8b085f maa: make common.h header to replace maa.h header to simplify includes
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-11 14:28:28 +01:00
Brendan Le Foll
ab071e64de i2c: make maa_i2c_read always return the length of the read
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-11 10:49:23 +01:00
Thomas Ingleby
be1248930b js-swig: remove whitespace
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-10 20:17:09 +01:00
Brendan Le Foll
faedfce419 maa: add global maa.h and maa.hpp and stop using /usr/include/maa/
* pkg-config now only sees maa.h & maa.hpp
* usage of maa/*.{h,hpp} is still allowed
* examples updated to use maa.{h,hpp}

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-10 16:47:37 +01:00
Brendan Le Foll
35d38bc72a package.json: add extra info about module license and runtime support
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-04 15:37:00 +01:00
Brendan Le Foll
6cd3cb4c65 maa: add maa_set_priority call
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-04 14:39:41 +01:00
Brendan Le Foll
2c278acfcd cmake: install python & node.js modules correctly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-04 12:06:04 +01:00
Brendan Le Foll
28fc9f97c9 swig: use C++ generated class doc and include directly from maa.i
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-30 10:28:21 +01:00
Brendan Le Foll
4383eb787f doxy2swig.py: explicitly set to use python2
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-30 09:58:34 +01:00
Thomas Ingleby
7af6a96a13 mmap: added mmap io to gpio
* added function to gpio to use mmap
* changed board definition format around mmap io (fast-gpio)
* Intel Galileo Rev D updated to follow changed definitions

* Example performing mmap io to pin 2 added.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-29 16:30:07 +01:00
Brendan Le Foll
e5a9af65a8 aio: make types used more logical and simplify logic
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-26 16:05:17 +01:00
Brendan Le Foll
d847ae7847 i2c: use uint8_t throughout to make code clearer
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-23 14:21:53 +01:00
Brendan Le Foll
ded3830951 swig: add BUILDSWIG macros to disable building of swig modules
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-23 13:56:45 +01:00
Brendan Le Foll
bc0da78b97 cmake: make sure headers are not in api/ subdir
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-23 11:58:04 +01:00
Brendan Le Foll
0fe7bd335c src: add unistd.h to pwm and spi modules to remove compiler warnings
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:54:19 +01:00
Brendan Le Foll
55403793e3 pwm: equality comparison should be assignment
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:53:18 +01:00
Brendan Le Foll
9e2ce3f38c cmake: install only the public API in ${prefix}/include/maa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:26:11 +01:00
Brendan Le Foll
bd1fabab5e nodejs: define BUILDING_NODE_EXTENSION in CXXFLAGS for upstream swig
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 11:40:59 +01:00
Thomas Ingleby
923e4829a9 maa: change javascript to use swig upstream
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-22 10:16:09 +01:00
Thomas Ingleby
716004de54 intel_galileo_rev_d: fix i2c bus definition
* Worked before just wasnt quite correct. As SCL SDA share a
* mux on the rev d.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 17:05:58 +01:00
Thomas Ingleby
04a79bef2d intel_galileo_rev_d: fix definition of pwm on 9/11
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 15:50:06 +01:00
Thomas Ingleby
a2c7eb5458 pwm: made export functions static
* removed functions from external api also.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:56:11 +01:00
Thomas Ingleby
98800a5c76 gpio: made export functions static.
* removed functions from api also

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:55:14 +01:00
Thomas Ingleby
7cc5d6b2b8 pwm: fix writing of period
Incorrect value attempted to be written

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:49:32 +01:00
Thomas Ingleby
e5a893bfb8 i2c: internal setup function properly works
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:01:22 +01:00
Thomas Ingleby
2b8ab38418 maa: hide and rename internal maa functions
Based on feedback received. All check functions renamed to setup.
Update all modules to use new name and header.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 13:17:16 +01:00
Thomas Ingleby
546157a9ab aio: fix spacing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 12:58:55 +01:00
Thomas Ingleby
29ec5b1ac4 maa: add maa internal header.
For internal functions and data definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 12:52:38 +01:00
Thomas Ingleby
ffc604afae maa: remove whitespace
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 12:50:12 +01:00