Private
Public Access
2
0

230 Commits

Author SHA1 Message Date
Thomas Ingleby
57d58b66ca i2c: add init(pre-post) hooks
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 18:19:07 +01:00
Thomas Ingleby
00f188c235 i2c: internal structure to mraa_internal_types
* For use in hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 17:52:08 +01:00
Thomas Ingleby
3d5512c15e mraa: make platform info more available internally
* available with mraa_internal header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 16:56:12 +01:00
Thomas Ingleby
fb030b5e9f hook: change structure to pointer
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 15:37:55 +01:00
Thomas Ingleby
b74759e973 mraa: rename internal adv func mraa_adv_func_t
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 15:12:08 +01:00
Thomas Ingleby
4d6a3be3db hook: items lost in merge, missing adv items.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-11 12:02:40 +01:00
Thomas Ingleby
9bacfcff5f Merge branch 'hook'
Conflicts:
	include/intel_galileo_rev_d.h
	include/intel_galileo_rev_g.h
	include/mraa_adv_func.h
	include/mraa_internal.h
	src/gpio/gpio.c
	src/mraa.c
2014-07-11 11:56:45 +01:00
Thomas Ingleby
d7c8f2a794 hook: change header of board definition, add internal
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-11 11:41:14 +01:00
Thomas Ingleby
1fafd97f5e hook: rename from declared struct to adance_func
* Removed bitfield, now checks if pointer NULL.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-11 09:14:49 +01:00
Brendan Le Foll
b5b7dec441 mraa_internal: add extern "C" to internal headers
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-10 22:08:05 +01:00
Thomas Ingleby
23304fb6c4 uart: barebones uart module added.
* Only defined call is the init. Will then expose the uart from
* the multiplexors.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-10 01:09:46 +01:00
Thomas Ingleby
0e46b94793 hook: remove hooks, move into branch.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-01 18:32:38 +01:00
Thomas Ingleby
d0ea43f8d1 mraa: initial implementation of "hooks"
* Should allow for more platform quirks to be handled by mraa without
* massive conditional areas per platform.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-27 15:37:48 +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
Thomas Ingleby
fa4a302398 maa: add support for enabling pins and pulldowns
* Not Complete

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-17 20:15:36 +01:00
Thomas Ingleby
ea88358164 intel galile rev g: change name from gen2 to revg
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-17 09:42:55 +01:00
Brendan Le Foll
27624289ec gen2: add basic galileo gen2 detection
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-16 18:46:31 +01:00
Brendan Le Foll
6e4f8b085f maa: make common.h header to replace maa.h header to simplify includes
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-11 14:28:28 +01:00
Thomas Ingleby
7af6a96a13 mmap: added mmap io to gpio
* added function to gpio to use mmap
* changed board definition format around mmap io (fast-gpio)
* Intel Galileo Rev D updated to follow changed definitions

* Example performing mmap io to pin 2 added.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-29 16:30:07 +01:00
Thomas Ingleby
e5a893bfb8 i2c: internal setup function properly works
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:01:22 +01:00
Thomas Ingleby
29ec5b1ac4 maa: add maa internal header.
For internal functions and data definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 12:52:38 +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
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
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
1d35f750e7 posix_types: remove include of stddef.h
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-23 17:28:33 +01:00
Brendan Le Foll
42446812c5 stddef.h: remove unecesary kernel header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-23 11:09:09 +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
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
00ba95bac0 maa: Initial commit of maa, a python and nodejs I2C skeleton only 2014-04-08 18:45:30 +01:00