Private
Public Access
2
0
Commit Graph

556 Commits

Author SHA1 Message Date
Brendan Le Foll
82eacc48e1 pydoc: fix generation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-30 14:49:33 +01:00
Thomas Ingleby
e04d776c95 spi: Add initial SPI api
* Skeleton implementation included too.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-30 14:43:59 +01:00
Brendan Le Foll
e86916ab91 i2c: add doxygen documentation and make return types use maa_result_t
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-30 11:35:29 +01:00
Thomas Ingleby
d4427ec35e pinmap: More work around abstracting pin information
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-30 11:13:36 +01:00
Brendan Le Foll
a83d8ac5df Merge pull request #6 from tingleby/master
pwm: Updated API
2014-04-30 10:51:34 +01:00
Brendan Le Foll
0450c2e159 doxygen: generic and more reliable doxygen/swig autodoc integration
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-30 10:50:44 +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
da27e37a4c pinmap: Defining pindata structures
* Logic for setting up required multiplexers

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-30 09:30:59 +01:00
Brendan Le Foll
804c4a437d javascript: fix swig generation of node.js api
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-29 18:44:09 +01:00
Brendan Le Foll
7524cb7ab8 Merge pull request #5 from tingleby/master
gpio: API cleaner & documentation fixed
2014-04-29 17:18:14 +01:00
Brendan Le Foll
34cbc434b0 doxy2swig.py: make script executable
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-29 16:56:37 +01:00
Thomas Ingleby
0c0633e724 gpio: Add support for setting GPIO ouput drive.
*Supports all exposed to sysfs

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-29 16:55:54 +01:00
Thomas Ingleby
226c6bcb66 gpio: Matured the GPIO API.
* Greater use of return values.
* Uses defined enum instead of char arrays

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-29 16:46:10 +01:00
Brendan Le Foll
47eea60865 pydoc: add make pydoc target to generate pydoc html
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-29 16:40:16 +01:00
Brendan Le Foll
dc68f40a26 pydoc: add full generation of pydoc for pymaa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-29 16:33:59 +01:00
Brendan Le Foll
6ad98d23e7 i2c.c: fix return type in _init function
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-29 14:01:30 +01:00
Brendan Le Foll
25f0dc5f9b pymaa.i: add rename to remove maa_ prefix from python lib
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-28 18:10:12 +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
1ba2d6040c i2c: clarify our usage of the result of the assignment
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-27 23:15:54 +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
2398df459a i2c-dev.h: fix headers for integration with upm
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-25 14:46:19 +01:00
Brendan Le Foll
d1ceeae4e3 cmake: make maa a proper dynamic library and install it correctly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-23 17:28:14 +01:00
Brendan Le Foll
04017cd5d9 gpio.c: fix styling of functions
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-23 09:30:27 +01:00
Brendan Le Foll
173b81c206 gpio.c: simplify gpio_get_valfp and make static
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-23 09:28:04 +01:00
Brendan Le Foll
f5c1a39530 mbed: remove straggling files
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-22 15:55:42 +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
ac131e1e17 i2cslave: basic working implimentation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-22 15:32:20 +01:00
Brendan Le Foll
44b43c5063 i2c: fix license header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-22 15:18:43 +01:00
Thomas Ingleby
485e4e9bdd pwm: Add missing include
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-14 17:17:33 +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
791c4b4d71 gpio: Tempory fix when changing direction
* Added unexport feature

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-14 17:13:31 +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
5c2235dc0c pwm: Completed functions:
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-14 14:40:40 +01:00
Thomas Ingleby
cb92c892cf pwm: Refined API. Work towards functionality
* Private functions added
* Added to CMakeLists

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-14 13:10:53 +01:00
Brendan Le Foll
e689c4dd39 i2cslave.cxx: add undefined method stub that stopped swig working
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-11 18:43:46 +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
6bf02cf25e Merge branch 'gpio' of github.com:tingleby/maa into tingleby-gpio 2014-04-11 16:19:18 +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
7eb9fa64a9 i2cslave: first possibly working implementation of i2cslave api
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-11 15:46:27 +01:00
Brendan Le Foll
84beaf2c05 i2cslave: add i2cslave api and basic non functional implementation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-11 15:27:43 +01:00
Brendan Le Foll
e471a3055e i2c.cxx: remove unecessary include
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-11 15:26:58 +01:00
Thomas Ingleby
6d13a41c96 gpio: get file handle if none exists
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 13:33:46 +01:00
Brendan Le Foll
0504d0310e i2c.cxx: add functionality to write to i2c
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-11 11:51:40 +01:00
Thomas Ingleby
aa2ed728be gpio: work done to export,read,write to gpio
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 11:41:48 +01:00
Thomas Ingleby
5168538894 gpio: modified api to include close.
Add file descriptor to gpio_t

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 09:05:04 +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
72f249fce1 gpio: cleanup of initial gpio work and add to CMakeLists.txt
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-10 16:59:17 +01:00