Private
Public Access
2
0
Commit Graph

163 Commits

Author SHA1 Message Date
Thomas Ingleby
352e1e084d spi-pinmap: added spi checking functions.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-16 14:31:40 +01:00
Thomas Ingleby
ed23cc44e4 intel_galileo_rev_d: fixed SPI bus id.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-16 14:31:39 +01:00
Brendan Le Foll
058084cd88 gpio.hpp: Add C++ wrapper around Gpio
* maa_gpio_context bcomes an opaque pointer
* C++ wrapper class Gpio created
* swig now uses C++ wrapper Gpio to generate API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:31:37 +01:00
Brendan Le Foll
f0763844fa pwm.hpp: Add C++ wrapper around Pwm
* maa_pwm_context becomes an opaque pointer
* C++ wrapper class Pwm
* swig now uses C++ wrapper Pwm to generate API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:31:36 +01:00
Brendan Le Foll
8a03e61f43 i2c.hpp: Add C++ wrapper around I2c
* maa_i2c_context bcomes an opaque pointer
* C++ wrapper class I2c created
* swig now uses C++ wrapper I2c to generate API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:31:34 +01:00
Brendan Le Foll
e491f99228 i2c.hpp: Add C++ wrapper around I2c
* maa_i2c_context bcomes an opaque pointer
* C++ wrapper class I2c created
* swig now uses C++ wrapper I2c to generate API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:31:33 +01:00
Brendan Le Foll
9e823b7f1d maa_init: fix constructor attribute in maa_init and add working example
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:31:31 +01:00
Brendan Le Foll
554505b640 aio.hpp: Add C++ wrapper around Aio
* maa_aio_context becomes an opaque pointer
* C++ wrapper class Aio created
* examples/c++ with a sample for Aio created
* swig now uses C++ wrapper Aio to generate an API
* python generated code is now C++

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:31:30 +01:00
Brendan Le Foll
e84406d697 cmake: make maa link against pthreads directly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-15 16:40:40 +01:00
Brendan Le Foll
9387c943d9 cmake: fix hard includ of node headers for cross compile
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-15 16:40:40 +01:00
Brendan Le Foll
6dc1500f5a gpio: make isr_exit function use pthread_cancel and treat error cases more cleanly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-15 14:42:44 +01:00
Brendan Le Foll
8460b1f743 blink-io: make sure maa_gpio_init was successful
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-15 10:41:23 +01:00
Brendan Le Foll
acfc804f26 cmake: increase version to 2.3
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-14 14:08:29 +01:00
Brendan Le Foll
f185877860 aio: remove _u16 suffix from call. Make return type a uint16_t
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 22:25:21 +00:00
Brendan Le Foll
9eb87fc665 blink-io: add stdlib.h for strtol call
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 22:24:48 +00:00
Brendan Le Foll
6811fe4a24 gpio: add signal type to pthread_kill
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 22:18:46 +00:00
Brendan Le Foll
5141d24565 pwm: always return a value if stated in prototype
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 22:18:22 +00:00
Brendan Le Foll
19415ff2e4 i2c: fixed impossible unsigned comparisons
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 22:17:42 +00:00
Brendan Le Foll
e35cfb6861 aio: remove use of atoi and cleanup debug
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 22:10:41 +00:00
Brendan Le Foll
4ef5176dad aio: use posix read/lseek API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 21:59:54 +00:00
Brendan Le Foll
320341df4d aio: fix styling of case statement
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 21:59:22 +00:00
Brendan Le Foll
4f7277f389 aio: fix error checking of maa_check_aio
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 21:58:43 +00:00
Brendan Le Foll
b7d38a22e8 gpio: fix compiler warning with blank return
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 21:57:28 +00:00
Brendan Le Foll
ef225dbe26 swig: fix usage of SWIGPYTHON for python specific code
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 20:55:08 +00:00
Brendan Le Foll
f7169cc5c5 swig: Add support for isr/callbacks from python
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 20:47:50 +00:00
Brendan Le Foll
b8e0ca76b1 maa_init: add GCC attribute to call init function as a constructor
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 20:44:34 +00:00
Brendan Le Foll
b00484b797 cmake: re-enable javascript for swig
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 20:43:41 +00:00
Brendan Le Foll
126b1314b0 gpio: rework of gpio - using open() for value_fp
* fixes maa_gpio_read by using simple posix file io
* fixes blink sample to have much more error checking
* blink sample now takes an argument

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-13 15:35:27 +01:00
Brendan Le Foll
aa60cae49d maajs: fix example with object API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-08 11:24:13 +01:00
Brendan Le Foll
356c7afacd gpio: don't do a pthread_kill if thread id is 0
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-07 17:45:02 +01:00
Thomas Ingleby
0986b5aa92 pinmap: test mode, add uninitialised protection.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-07 17:40:11 +01:00
Brendan Le Foll
83a5e6cde8 maa.i: maa_init is now done after swig initialisation routine
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-07 17:39:58 +01:00
Brendan Le Foll
ce273c04a5 Merge branch 'tingleby-pin' 2014-05-07 16:01:00 +01:00
Thomas Ingleby
445b7a58d9 pinmap: Implemented maa_pin_mode_test
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-07 15:54:59 +01:00
Thomas Ingleby
c3932736a6 pwm: rev-d quirk worked-around.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-07 15:15:57 +01:00
Thomas Ingleby
d3bfb25e60 pinmap: function to test mode of a pin.
* Added enum to represent the supported modes.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-07 15:12:44 +01:00
Brendan Le Foll
700eab5f0d Merge branch 'tingleby-master' 2014-05-07 14:50:04 +01:00
Brendan Le Foll
4b2c8ae510 Merge branch 'master' of github.com:tingleby/maa into tingleby-master 2014-05-07 14:49:53 +01:00
Brendan Le Foll
37b5d9f0cc gpio: initial implementation of interupt handling on gpio
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-07 14:48:21 +01:00
Brendan Le Foll
91e37a7982 analogin_a0: add adc_value print in decimal
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-07 14:20:37 +01:00
Brendan Le Foll
ecc2c92027 gpio: only call ferror in free() case as dev has already been free'd by swig code
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-06 18:12:53 +01:00
Brendan Le Foll
d82cae1312 aio: add c++ header guards
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-06 15:50:13 +01:00
Thomas Ingleby
019853d2fd maa: add result print function.
* Fixed error in comments in maa.h

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-06 15:33:54 +01:00
Thomas Ingleby
171f66208e pwm: Use pinmap functions for setting up pwm.
* Intended function of check_pwm also checks for conflicting gpio, due
* to quirk on galileo rev d, functionality commented.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-06 15:33:54 +01:00
Thomas Ingleby
5aa5aec661 galileo-rev-d: Add PWM properties on IO3
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-06 15:33:45 +01:00
Brendan Le Foll
89870e4e1b CMakeLists.txt: update version to 0.2.2
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-06 11:39:19 +01:00
Brendan Le Foll
5161713eaf init: allow init to be called multiple times
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-06 10:42:06 +01:00
Brendan Le Foll
2f1c493c8b Merge branch 'tingleby-master' 2014-05-06 09:33:46 +01:00
Brendan Le Foll
d3bafa781f Merge branch 'master' of github.com:tingleby/maa into tingleby-master 2014-05-06 09:33:19 +01:00
Brendan Le Foll
8c9650caa3 gpio: reworking of gpio IO calls
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-06 09:32:07 +01:00