Brendan Le Foll
886044b90f
aio.c: cosmetic fix on file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-24 12:06:10 +01:00
Thomas Ingleby
e82a76593d
aio: change return from uint16 to unsigned int
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-22 15:29:02 +01:00
Thomas Ingleby
6a7add6b99
aio: add calls for changing bit value of the read
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-22 14:52:45 +01:00
Thomas Ingleby
62a1493bdf
aio: internal aio context to mraa_internal_types
...
* Some comments for members of structure also added
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-09 18:00:27 +01:00
Thomas Ingleby
92cbb6097c
aio: add init hooks, and fp hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-09 18:00:23 +01:00
Brendan Le Foll
0ed1508315
aio.c: fix ordering of comparison operator
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-09 17:29:40 +01:00
Thomas Ingleby
e5c7e64cf3
aio: added configuration within platform data.
...
* Allows for different bit shifting for each platform.
* New functions added for obtaining this information
* mraa_adc_raw_bits
* mraa_adc_supported_bits
* Update board information to include this. AIO module changed to allow
* use of the new board data
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-25 17:32:41 +01:00
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
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
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
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
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
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
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
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