Private
Public Access
2
0
Commit Graph

1589 Commits

Author SHA1 Message Date
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
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
Thomas Ingleby
b16ec46f4f Merge remote-tracking branch 'upstream/master' 2014-05-04 11:59:21 +01:00
Brendan Le Foll
447913d476 Merge branch 'tingleby-pinmap-i2cspi' 2014-05-02 16:44:55 +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
37ae41e105 Merge branch 'pinmap-i2cspi' 2014-05-02 16:16:01 +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
Thomas Ingleby
82d3615f6c pinmap: Added spi and i2c to board definition.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-02 14:45:24 +01:00
Thomas Ingleby
a8661e599c i2c: generalising api
* Added raw init function (maa_i2c_init_raw) for not using pinmap

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-02 14:24:08 +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
17a72cf5be Merge branch 'pinmap-aio' 2014-05-02 11:56:02 +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
4b7f1ff4c5 blink-io8.c: add unistd.h and fix fprintf statement
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-02 10:55:45 +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
Thomas Ingleby
ea81a0ba75 examples: Update examples to use newer maa functions
* Use maa_init() before any other maa functions are called
* Use ioNN instead of gpioXX, Using mapping

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-01 17:08:54 +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