Private
Public Access
2
0
Commit Graph

20 Commits

Author SHA1 Message Date
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
Thomas Ingleby
111544a764 gen 2: add hook for handling modes for gpio
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-09-02 14:46:48 +01:00
Thomas Ingleby
b6358b5e7e gen2: fix typo on A5 GPIO pinmap
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-25 02:56:14 +01:00
Thomas Ingleby
9d7e9aa4ca Galileo Gen2: add replace hook for pwm period
* Warning, doing a period call on the gen2 will change it for all pwm
* channels and temporarily disable them whilst doing it.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-24 14:43:58 +01:00
Thomas Ingleby
36384f16b1 intel_galileo_rev_g: make gpio on i2c pins go hiz
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 18:22:38 +01:00
Thomas Ingleby
ce1fe370c4 intel_galileo_rev_g: remove platform code from core
* Using hook functionality swap_complex is now done in the pre direction
* set area.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-14 17:46:18 +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
b408207086 intel_galileo_rev_g: add mmap IO on some pins.
* enabled on, IO0,IO1,IO2,IO3,IO12

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-02 13:40:14 +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
cf1881a978 intel_galileo_rev_g: add GPIO support on 14-19
* Please take care with using voltages around the ADC

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-30 16:22:51 +01:00
Thomas Ingleby
5c48f2a885 intel_galileo_rev_g: change enable pin for SPI MISO
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-30 11:10:28 +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
b6c56911c3 intel_galileo_rev_g: fix pwm on IO5
* Incorrect mapping.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-26 18:55:38 +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
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
29171b7816 intel_galile_rev_g: pinmap add definition for io.
* PWM working
* SPI working

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 16:20:30 +01:00
Thomas Ingleby
4c9b7a2208 intel_galileo_rev_g: Complete initial pinmap
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-17 20:16:03 +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