Thomas Ingleby
b0a21e2c30
arch: initial framework for supporting other architectures added.
...
x86: all platforms moved into x86 directory
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-12-08 15:32:42 +00:00
Henry Bruce
6bc2b0fb53
intel_minnow_max: Added platform definition
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 15:08:31 +00:00
Brendan Le Foll
19d7dad364
i2c: remove smbus helper library & clean up command use in API
...
This commit changes the mraa_i2c_read() API call behaviour, a register should
now always be set when using this call. The smbus helper library is no longer
required since the code is now all contained from i2c.c which avoids multiple
function calls
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 12:03:31 +00:00
Thomas Ingleby
3865bebe8d
mmap: remove implementation of mmap gpio
...
Instead of trying to have an implementation that covers most platforms
Leave all mmap up to platform definition. Through function pointers.
gpio_mmap_setup sets up the mmap
Within the internal gpio context struct two more function pointers now
exist mmap_read & mmap_write. They exist there so each context can its
own function for handling a write and read.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
d1f9e98060
internal: remove un-implmented function prototype
...
Left over from earlier version of mraa.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
5d7c85c7a1
pwm: move pwm setup to module
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
e39268899c
spi: move spi setup from core into module
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
ffd38bb68c
i2c: move i2c setup from core into module
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
66c5011cfb
aio: move aio setup from core into module
...
Added additional syslog messages for debugging
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
401f0cfe65
gpio: move gpio setup from core into module
...
Added syslog lines for easier fault investigation
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
1cbdef1ab3
internal: add function protype for mux setup.
...
Now accesible from all mraa modules
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
7c807b3acc
intel_de3815: initial support for Baytrail NUC
...
* I2C only currently supported, Both bus 0 and 1
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-24 14:21:20 +01:00
Brendan Le Foll
535d92ab79
i2c: use default i2c bus in board config if invalid
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-23 18:05:07 +01:00
Thomas Ingleby
77be6da29c
uart: add pre uart hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-20 18:43:58 +01:00
Thomas Ingleby
071951e926
uart: add init post hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-19 16:14:24 +01:00
Brendan Le Foll
32d8a6f0ca
syslog: remove all fprintf calls and use syslog instead
...
Syslog is now used for all error messages, return values in the code should be
used by programmers to see the status of the library/board and syslog can be
used to see quickly from a debugging perspective what has gone wrong. A few
cosmetics where improved as well as a mraa_set_log_level() call where the
syslog log mask can be set directly from libmraa.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-25 14:31:04 +01:00
Brendan Le Foll
68de395fea
mraa_internal.h: fix styling issues
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-25 14:30:23 +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
fb1034b2b0
hook: add spi init hooks
...
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:01:23 +01:00
Thomas Ingleby
dd9129d411
hook: add pwm hook around init
...
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:01:23 +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
Thomas Ingleby
5766b03068
intel_edision_fab_c: renamed from fab_b
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-09 17:28:43 +01:00
Thomas Ingleby
c9c1735e42
intel_edison_fab_b: initial board definition
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-09 17:13:18 +01:00
Thomas Ingleby
595eec2737
pwm: move internal context structure to internal header
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-24 14:21:06 +01:00
Thomas Ingleby
715863cd28
pwm: add period write replace hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-24 14:20:01 +01:00
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