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
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
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
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
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
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
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
Thomas Ingleby
d99a0d855a
intel_galileo_rev_d: Wrong I2C bus definition.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-06 09:18:35 +01:00
Thomas Ingleby
ef4bdeebaa
maa: Update functions within maa to use new api.
...
* Use new board definitions.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-05 20:39:31 +01:00
Thomas Ingleby
dd89adc47b
pinmap: new way of defining board io.
...
* Intel Galileo Rev D pinmap updated to use new format
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-05 20:13:03 +01:00
Brendan Le Foll
82aebc27e1
Merge branch 'pinmap-i2cspi' of github.com:tingleby/maa into tingleby-pinmap-i2cspi
2014-05-02 16:43:10 +01:00
Brendan Le Foll
60c90be693
gpio: use strtol instead of atoi
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 16:33:36 +01:00
Brendan Le Foll
09cec0931b
swig: add unexport() calls to be used by destructors in object api
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 16:33:36 +01:00
Thomas Ingleby
64d3c78ca9
i2c: Work started on using pinmap with i2c
...
* Update examples and swig interface.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-02 16:07:18 +01:00
Thomas Ingleby
1005df1652
intel_galileo_rev_d: Update to new board definition
...
* Added SPI and I2C information
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-02 14:57:55 +01:00
Brendan Le Foll
3e0d0c8241
python: fix examples and add maa_init() call in swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 14:08:49 +01:00
Brendan Le Foll
71ab4f4d5b
maa.i: Initial documentation of Swigified object API
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 13:54:51 +01:00
Thomas Ingleby
e68a420f0a
i2c: removed gpio from context
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-02 13:53:20 +01:00
Thomas Ingleby
fd1c1c80f4
pinmap: Added aio support.
...
* Intel Galileo Rev D: Added analog information
* maa_check_aio, similar to maa_check_gpio, will setup multiplexers.
* aio: Removed now duplicated functionality.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-02 11:52:40 +01:00
Brendan Le Foll
9878b2e419
maa.i: stop importing all of maa.h definitions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 09:52:06 +01:00
Brendan Le Foll
77b2e484d7
sphinx: make python documentation generation use sphinx
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-02 09:51:42 +01:00
Thomas Ingleby
be92ed306d
Merge branch 'pinmap'
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Conflicts:
api/maa.h
src/CMakeLists.txt
2014-05-01 17:37:56 +01:00
Brendan Le Foll
7023a3213a
spi: add spi to CMakeLists.txt to build spi doc.i file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 17:00:49 +01:00
Brendan Le Foll
d1de6a48c9
aio: add aio swig object
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:59:54 +01:00
Thomas Ingleby
e96df16f75
pinmap: GPIO pin map added.
...
* maa_gpio_init can take the IO number read physically off the board.
* maa_check_gpio will also set up mutiplexers if needed
* Intel Galileo Rev D board data added
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-01 16:55:23 +01:00
Nandkishor Sonar
207c54a5e7
aio: add initial analog input support
...
Signed-off-by: Nandkishor Sonar <nandkishor.sonar@intel.com >
Reviewed-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:38:17 +01:00
Brendan Le Foll
8c016318a6
swig: make swig generation of objects generic
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:11:17 +01:00
Brendan Le Foll
201e22f922
swig: name functions explicitly and use %extend to convert _context structs to objects
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:11:16 +01:00
Brendan Le Foll
4129d4e16d
spi: add destructor
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:11:16 +01:00
Brendan Le Foll
661f7b29ec
Merge branch 'spi-new' of github.com:tingleby/maa into tingleby-spi-new
...
Conflicts:
src/CMakeLists.txt
2014-04-30 14:53:21 +01:00
Brendan Le Foll
3f0c17eb73
CMakeLists.txt: add vesion.h to installed headers
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 14:51:19 +01:00
Brendan Le Foll
35c98aed6d
api: Change api licensing as it now has nothing to do with mbed
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 14:50:01 +01:00