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
82aebc27e1
Merge branch 'pinmap-i2cspi' of github.com:tingleby/maa into tingleby-pinmap-i2cspi
2014-05-02 16:43:10 +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
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
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
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
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
Thomas Ingleby
ccc4544455
pwm: Updated API
...
* Greater use of maa_result_t
* Added raw mode.
* Updated cycle-pwm3 to use new api.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-30 10:30:56 +01:00
Thomas Ingleby
ac995a8803
example: blink-io8.c Updated against new API
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-29 17:01:42 +01:00
Brendan Le Foll
f280b3c0f6
maa: change struct names to be more unique and fix allocs
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-28 11:31:53 +01:00
Brendan Le Foll
00fd42b186
version.h: add versioning info from git
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-28 00:29:14 +01:00
Brendan Le Foll
ed0a1f6085
maa: change the linking of maa and make gpio functions match maa_ spec
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-27 23:11:31 +01:00
Brendan Le Foll
a5a407e4b5
MAA version 0.2.0 moves to a standard C API
...
* Removed all C++ code and renamed all .cxx extensions to .c
* All functions are renamed to maa_ and modules are for example called maa_pwm
* Cmake can now 'make doc' using a Doxyfile.in to create documentation
* examples/ have been updated but swig generated API is untested
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-27 21:17:54 +01:00
Brendan Le Foll
a0efbec625
hello_gpio.py: fix python example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-25 09:10:27 +01:00
Brendan Le Foll
184b94e9e5
examples: make C++ examples follow src/ extension convention
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-22 15:54:34 +01:00
Brendan Le Foll
aee2087a42
maa: general licensing + styling cleanup
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-22 15:51:28 +01:00
Brendan Le Foll
f011102ce6
basic HMC5883L magnometer sample
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-22 15:32:22 +01:00
Thomas Ingleby
36a15d5ed5
Merge branch 'pwm' into for-pull
2014-04-14 17:16:30 +01:00
Thomas Ingleby
53b521e864
Merge branch 'gpio' into for-pull
2014-04-14 17:15:55 +01:00
Thomas Ingleby
2d074c2ca3
pwm: Added python example script
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-14 17:07:24 +01:00
Thomas Ingleby
fbd863ca39
pwm: Fully Functional.
...
* C++ example included
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-14 16:55:19 +01:00
Thomas Ingleby
40438d709a
gpio: Add cpp example to use IO.
...
* Patch direction setting
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-11 17:57:53 +01:00
Brendan Le Foll
2c07ad9260
readi2c: modify examples to use I2CSlave api
2014-04-11 17:06:24 +01:00
Thomas Ingleby
e64ffcf77d
gpio: gpio in/out both work
...
* Python example included.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-04-11 15:55:01 +01:00
Brendan Le Foll
e59b8b2038
gpio: enable very basic gpio control from swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-10 18:00:57 +01:00
Brendan Le Foll
9994ea855c
maa: Refactor maa build system and partly implement i2c
...
* API headers moved to api/
* smbus file added from libi2c and kernel i2c header cleaned up
* fix compilation of swig and use i2c.h header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-10 16:53:19 +01:00
Brendan Le Foll
0ec04b6fd3
examples: fix include path
2014-04-10 11:04:02 +01:00
Brendan Le Foll
00ba95bac0
maa: Initial commit of maa, a python and nodejs I2C skeleton only
2014-04-08 18:45:30 +01:00