Private
Public Access
2
0
Commit Graph

102 Commits

Author SHA1 Message Date
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
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
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
ffe8487d9f add emum doc to maa_result_t
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-01 15:26:39 +01:00
Brendan Le Foll
d0ed365e86 Merge branch 'tingleby-spi-new' 2014-04-30 14:54: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
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
7a6a0036b4 README.md: fix readme style
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-30 11:39:19 +01:00
Brendan Le Foll
9e3e322fff gpio.h: fix doxygen comment on struct
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-30 11:36:02 +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
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
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
77ee9ffff5 doc: initial documentation of api
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-28 18:39:07 +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
1f3802abea Merge pull request #4 from emea-ssg-drd/dumpc++
Remove all C++ code and move to a standard C api
2014-04-28 14:12:40 +01:00
Brendan Le Foll
bcfa9669d2 Doxyfile.in: use lib version number in doxyfile
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-28 13:57:34 +01:00
Brendan Le Foll
cbc87a7046 CMakeLists.txt: add default versioning when git not present
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-28 11:40:26 +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