contrib/mraa.git
10 years agomraa: update to version 0.5.1
Thomas Ingleby [Wed, 15 Oct 2014 10:23:25 +0000 (11:23 +0100)]
mraa: update to version 0.5.1

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agodoc: add Edison miniboard doc
Thomas Ingleby [Wed, 8 Oct 2014 17:03:40 +0000 (18:03 +0100)]
doc: add Edison miniboard doc

* Brings to conclusions Fix #10

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: miniboard GPIO mode hook added
Thomas Ingleby [Wed, 8 Oct 2014 17:02:53 +0000 (18:02 +0100)]
edison: miniboard GPIO mode hook added

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: miniboard SPI bus support added
Thomas Ingleby [Wed, 8 Oct 2014 16:23:45 +0000 (17:23 +0100)]
edison: miniboard SPI bus support added

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: miniboard i2c support added for bus 1 & 6
Thomas Ingleby [Wed, 8 Oct 2014 16:08:44 +0000 (17:08 +0100)]
edison: miniboard i2c support added for bus 1 & 6

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add missing PWM hook for miniboard
Thomas Ingleby [Wed, 8 Oct 2014 14:24:04 +0000 (15:24 +0100)]
edison: add missing PWM hook for miniboard

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: fix incorrect hook check
Thomas Ingleby [Wed, 8 Oct 2014 13:59:37 +0000 (14:59 +0100)]
pwm: fix incorrect hook check

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoRevert "CMakeLists.txt: add DEBUG define when doing a debug build"
Brendan Le Foll [Tue, 7 Oct 2014 19:19:54 +0000 (20:19 +0100)]
Revert "CMakeLists.txt: add DEBUG define when doing a debug build"

This reverts commit 52a48a728a48d4fa3af3697a22b1c565ea80907c which made debug
builds stop working.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoedison: add inital miniboard support
Thomas Ingleby [Tue, 7 Oct 2014 18:20:03 +0000 (19:20 +0100)]
edison: add inital miniboard support

* Only GPIO will work currently
* This fixes #11

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agocoverity: Fix issues found by coverity scan
Brendan Le Foll [Fri, 3 Oct 2014 21:50:18 +0000 (22:50 +0100)]
coverity: Fix issues found by coverity scan

* Fix a few resource leaks in error conditions
* Makes strtol() calls safer in pwm module
* Make sure buffer is terminated after read() in aio

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoindex.md: add edison link
Brendan Le Foll [Fri, 3 Oct 2014 21:49:01 +0000 (22:49 +0100)]
index.md: add edison link

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agodocs: add edison to doxygen doc and coverity instructions
Brendan Le Foll [Fri, 3 Oct 2014 18:00:45 +0000 (19:00 +0100)]
docs: add edison to doxygen doc and coverity instructions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio: add more error checking for mraa_gpio_context
Brendan Le Foll [Fri, 3 Oct 2014 11:00:11 +0000 (12:00 +0100)]
gpio: add more error checking for mraa_gpio_context

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agodoc: cleanup internal documentation and naming
Brendan Le Foll [Fri, 3 Oct 2014 09:18:13 +0000 (10:18 +0100)]
doc: cleanup internal documentation and naming

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoindex.md: add ADC change for 0.5.0
Brendan Le Foll [Thu, 25 Sep 2014 13:33:44 +0000 (14:33 +0100)]
index.md: add ADC change for 0.5.0

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agosyslog: remove all fprintf calls and use syslog instead
Brendan Le Foll [Thu, 25 Sep 2014 13:31:04 +0000 (14:31 +0100)]
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>
10 years agomraa_internal.h: fix styling issues
Brendan Le Foll [Thu, 25 Sep 2014 13:28:08 +0000 (14:28 +0100)]
mraa_internal.h: fix styling issues

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoCMakeLists.txt: add DEBUG define when doing a debug build
Brendan Le Foll [Thu, 25 Sep 2014 13:26:32 +0000 (14:26 +0100)]
CMakeLists.txt: add DEBUG define when doing a debug build

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio.c: cosmetic fix on file
Brendan Le Foll [Wed, 24 Sep 2014 11:06:10 +0000 (12:06 +0100)]
aio.c: cosmetic fix on file

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoedison.md: add details on i2c bus number
Brendan Le Foll [Mon, 22 Sep 2014 16:49:32 +0000 (17:49 +0100)]
edison.md: add details on i2c bus number

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoaio: change c++ calls to camelCase
Thomas Ingleby [Mon, 22 Sep 2014 16:40:05 +0000 (17:40 +0100)]
aio: change c++ calls to camelCase

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoaio: change return from uint16 to unsigned int
Thomas Ingleby [Mon, 22 Sep 2014 14:29:02 +0000 (15:29 +0100)]
aio: change return from uint16 to unsigned int

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agodoc: add ADC information for each platform
Thomas Ingleby [Mon, 22 Sep 2014 13:52:18 +0000 (14:52 +0100)]
doc: add ADC information for each platform

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoaio: add calls for changing bit value of the read
Thomas Ingleby [Mon, 22 Sep 2014 13:22:17 +0000 (14:22 +0100)]
aio: add calls for changing bit value of the read

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agohello_isr.py: add sleep to the example to reduce confusion
Brendan Le Foll [Fri, 19 Sep 2014 00:06:59 +0000 (01:06 +0100)]
hello_isr.py: add sleep to the example to reduce confusion

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoedison: add supported adc bit information
Thomas Ingleby [Wed, 10 Sep 2014 15:31:49 +0000 (16:31 +0100)]
edison: add supported adc bit information

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agomraa: update to version 0.5.0 v0.5.0
Thomas Ingleby [Wed, 10 Sep 2014 10:18:44 +0000 (11:18 +0100)]
mraa: update to version 0.5.0

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agohook: add spi init hooks
Thomas Ingleby [Thu, 31 Jul 2014 12:33:45 +0000 (13:33 +0100)]
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>
10 years agohook: add pwm hook around init
Thomas Ingleby [Tue, 29 Jul 2014 13:16:19 +0000 (14:16 +0100)]
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>
10 years agoaio: internal aio context to mraa_internal_types
Thomas Ingleby [Mon, 28 Jul 2014 13:15:11 +0000 (14:15 +0100)]
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>
10 years agoaio: add init hooks, and fp hook
Thomas Ingleby [Mon, 28 Jul 2014 13:12:28 +0000 (14:12 +0100)]
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>
10 years agodocs: add edison to supported platforms.
Thomas Ingleby [Tue, 9 Sep 2014 14:30:36 +0000 (15:30 +0100)]
docs: add edison to supported platforms.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoedison: add hook for handling modes for gpio
Thomas Ingleby [Tue, 9 Sep 2014 10:56:42 +0000 (11:56 +0100)]
edison: add hook for handling modes for gpio

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopython: dont set c_flags globally
Thomas Ingleby [Mon, 18 Aug 2014 14:24:34 +0000 (15:24 +0100)]
python: dont set c_flags globally

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agojavascript: dont't wipe other cxx flags
Thomas Ingleby [Mon, 18 Aug 2014 14:19:15 +0000 (15:19 +0100)]
javascript: dont't wipe other cxx flags

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: spi addition completed
Thomas Ingleby [Thu, 31 Jul 2014 13:53:03 +0000 (14:53 +0100)]
edison: spi addition completed

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add spi mux definitions
Thomas Ingleby [Thu, 31 Jul 2014 12:20:27 +0000 (13:20 +0100)]
edison: add spi mux definitions

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add gpio support on A0-A5
Thomas Ingleby [Tue, 29 Jul 2014 14:51:42 +0000 (15:51 +0100)]
edison: add gpio support on A0-A5

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add pwm support on 3,5,6,9 - default state
Thomas Ingleby [Tue, 29 Jul 2014 14:31:42 +0000 (15:31 +0100)]
edison: add pwm support on 3,5,6,9 - default state

* The swizzler situation is a bit odd to describe in mraa

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add analog input support
Thomas Ingleby [Mon, 28 Jul 2014 16:51:28 +0000 (17:51 +0100)]
edison: add analog input support

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoaio.c: fix ordering of comparison operator
Brendan Le Foll [Mon, 28 Jul 2014 12:56:20 +0000 (14:56 +0200)]
aio.c: fix ordering of comparison operator

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agointel_edison_fab_c.c: simplify invalid return in mraa_intel_edison_gpio_init_post
Brendan Le Foll [Mon, 28 Jul 2014 12:56:01 +0000 (14:56 +0200)]
intel_edison_fab_c.c: simplify invalid return in mraa_intel_edison_gpio_init_post

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoedison: added i2c support on bus 6
Thomas Ingleby [Thu, 24 Jul 2014 13:02:53 +0000 (14:02 +0100)]
edison: added i2c support on bus 6

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add i2c bus definitions
Thomas Ingleby [Thu, 24 Jul 2014 10:59:36 +0000 (11:59 +0100)]
edison: add i2c bus definitions

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2c: disallow non allowed i2c buses
Thomas Ingleby [Thu, 24 Jul 2014 10:51:38 +0000 (11:51 +0100)]
i2c: disallow non allowed i2c buses

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2c: boost max defined buses to 12.
Thomas Ingleby [Thu, 24 Jul 2014 10:21:33 +0000 (11:21 +0100)]
i2c: boost max defined buses to 12.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add gpio definitions.
Thomas Ingleby [Mon, 21 Jul 2014 16:43:38 +0000 (17:43 +0100)]
edison: add gpio definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedsion: add logic to handle tristate around directions
Thomas Ingleby [Mon, 21 Jul 2014 13:17:35 +0000 (14:17 +0100)]
edsion: add logic to handle tristate around directions

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoedison: add edison specific logic
Thomas Ingleby [Mon, 21 Jul 2014 12:59:32 +0000 (13:59 +0100)]
edison: add edison specific logic

* Board definition started

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agohook: move gpio init post hook
Thomas Ingleby [Fri, 18 Jul 2014 12:19:29 +0000 (13:19 +0100)]
hook: move gpio init post hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agointel_edision_fab_c: renamed from fab_b
Thomas Ingleby [Wed, 16 Jul 2014 16:24:08 +0000 (17:24 +0100)]
intel_edision_fab_c: renamed from fab_b

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agogpio.c: styling - remove tabs
Brendan Le Foll [Mon, 14 Jul 2014 16:11:12 +0000 (17:11 +0100)]
gpio.c: styling - remove tabs

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoedison: add edison detection
Thomas Ingleby [Fri, 11 Jul 2014 15:22:19 +0000 (16:22 +0100)]
edison: add edison detection

* Will look for BODEGA BAY or SALT BAY

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agointel_edison_fab_b: initial board definition
Thomas Ingleby [Fri, 11 Jul 2014 13:31:38 +0000 (14:31 +0100)]
intel_edison_fab_b: initial board definition

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoDoxygenLayout.xml: move akward dep graph to the bottom
Brendan Le Foll [Sun, 7 Sep 2014 20:20:24 +0000 (21:20 +0100)]
DoxygenLayout.xml: move akward dep graph to the bottom

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agodocs: add common i2c doc page i2c.txt
Brendan Le Foll [Sun, 7 Sep 2014 20:20:06 +0000 (21:20 +0100)]
docs: add common i2c doc page i2c.txt

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocpack: add tgz generator
Thomas Ingleby [Fri, 5 Sep 2014 12:09:32 +0000 (13:09 +0100)]
cpack: add tgz generator

* Used by build system to create copy compiled assests

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agomraa: update to version 0.4.5 v0.4.5
Brendan Le Foll [Wed, 3 Sep 2014 08:34:30 +0000 (09:34 +0100)]
mraa: update to version 0.4.5

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agodocs: remove references to C++ as docstrings used by sphinx
Brendan Le Foll [Wed, 3 Sep 2014 08:33:20 +0000 (09:33 +0100)]
docs: remove references to C++ as docstrings used by sphinx

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agouart: add C++ Uart module and links to swig
Brendan Le Foll [Wed, 3 Sep 2014 08:30:49 +0000 (09:30 +0100)]
uart: add C++ Uart module and links to swig

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogen 2: add hook for handling modes for gpio
Thomas Ingleby [Tue, 2 Sep 2014 13:45:28 +0000 (14:45 +0100)]
gen 2: add hook for handling modes for gpio

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agodocs: add references to galileo generation
Brendan Le Foll [Mon, 1 Sep 2014 22:19:24 +0000 (23:19 +0100)]
docs: add references to galileo generation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocommon.hpp: fix documentation of functions
Brendan Le Foll [Mon, 1 Sep 2014 22:17:44 +0000 (23:17 +0100)]
common.hpp: fix documentation of functions

Functions inside namespace are tough to document, bypassing this by documenting
the namespace and then using the namespace doc as common.hpp doc in the index

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agopwm: add config_ms and config_percent.
Mark Ceisel [Mon, 1 Sep 2014 11:18:01 +0000 (12:18 +0100)]
pwm: add config_ms and config_percent.

* Allows user to set both at the same time. Will reset to previous if
* period for duty cycle fails to write

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: rename internal functions from get to read
Thomas Ingleby [Mon, 1 Sep 2014 10:30:58 +0000 (11:30 +0100)]
pwm: rename internal functions from get to read

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agospi: if platform has one spidev, defaults to it.
Thomas Ingleby [Tue, 26 Aug 2014 12:55:58 +0000 (13:55 +0100)]
spi: if platform has one spidev, defaults to it.

* Removes complexity on some platforms.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agomraa: update to version 0.4.4 v0.4.4
Brendan Le Foll [Fri, 15 Aug 2014 09:58:40 +0000 (10:58 +0100)]
mraa: update to version 0.4.4

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agojavascript: added basic examples to mraa
Dan Yocom [Thu, 14 Aug 2014 19:16:23 +0000 (15:16 -0400)]
javascript: added basic examples to mraa

Signed-off-by: Dan Yocom <dan.yocom@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocommon.hpp: add ADC bitness calls to C++ api
Brendan Le Foll [Thu, 14 Aug 2014 13:21:03 +0000 (14:21 +0100)]
common.hpp: add ADC bitness calls to C++ api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoREADME.md: add repo instructions
Brendan Le Foll [Thu, 14 Aug 2014 10:40:34 +0000 (11:40 +0100)]
README.md: add repo instructions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoREADME.md: improve github front page doc
Brendan Le Foll [Thu, 14 Aug 2014 10:27:22 +0000 (11:27 +0100)]
README.md: improve github front page doc

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agodocs: Fixed typos
izard [Sat, 19 Jul 2014 12:38:41 +0000 (12:38 +0000)]
docs: Fixed typos

Signed-off-by: izard <alexander.komarov@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agodocs: add supported platforms
Brendan Le Foll [Tue, 12 Aug 2014 16:16:10 +0000 (17:16 +0100)]
docs: add supported platforms

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agospi: prefix SPI mode with MRAA_SPI_
Brendan Le Foll [Fri, 8 Aug 2014 08:32:28 +0000 (09:32 +0100)]
spi: prefix SPI mode with MRAA_SPI_

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomraa: update to version 0.4.3 v0.4.3
Thomas Ingleby [Wed, 6 Aug 2014 15:22:47 +0000 (16:22 +0100)]
mraa: update to version 0.4.3

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agospi: added spi mode to mraa
Kiveisha Yevgeniy [Wed, 6 Aug 2014 11:40:51 +0000 (11:40 +0000)]
spi: added spi mode to mraa

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
10 years agoexample.rst: improve and fill out python documentation
Brendan Le Foll [Tue, 5 Aug 2014 09:58:16 +0000 (10:58 +0100)]
example.rst: improve and fill out python documentation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c_HMC5883.py: add python I2c.read() example
Brendan Le Foll [Tue, 5 Aug 2014 09:44:43 +0000 (10:44 +0100)]
i2c_HMC5883.py: add python I2c.read() example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c.hpp: new read() variant that returns terminated std::string
Brendan Le Foll [Tue, 5 Aug 2014 09:18:14 +0000 (10:18 +0100)]
i2c.hpp: new read() variant that returns terminated std::string

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomraa.c: fclose on NULL fp can segfault on some platforms
Brendan Le Foll [Fri, 1 Aug 2014 09:36:10 +0000 (11:36 +0200)]
mraa.c: fclose on NULL fp can segfault on some platforms

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agosphinx: update python module documentation to reflect latest changes
Brendan Le Foll [Thu, 31 Jul 2014 08:25:24 +0000 (10:25 +0200)]
sphinx: update python module documentation to reflect latest changes

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c.hpp: add read(size_t length) function useful in scripting languages
Brendan Le Foll [Thu, 31 Jul 2014 08:14:57 +0000 (10:14 +0200)]
i2c.hpp: add read(size_t length) function useful in scripting languages

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c.hpp: overload read() function, this renames readByte
Brendan Le Foll [Thu, 31 Jul 2014 08:14:22 +0000 (10:14 +0200)]
i2c.hpp: overload read() function, this renames readByte

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoi2c_HMC5883.py: add i2c read & write example
Brendan Le Foll [Tue, 29 Jul 2014 14:02:42 +0000 (16:02 +0200)]
i2c_HMC5883.py: add i2c read & write example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agorgblcd.py: fix example to use 0xFF and not 0x255 which is out of bounds
Brendan Le Foll [Tue, 29 Jul 2014 10:16:27 +0000 (12:16 +0200)]
rgblcd.py: fix example to use 0xFF and not 0x255 which is out of bounds

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agospi.c: destructor now freeing memory
Brendan Le Foll [Mon, 28 Jul 2014 14:40:55 +0000 (16:40 +0200)]
spi.c: destructor now freeing memory

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogpio.c: close fd in mmap function
Brendan Le Foll [Mon, 28 Jul 2014 14:39:00 +0000 (16:39 +0200)]
gpio.c: close fd in mmap function

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agogen2: fix typo on A5 GPIO pinmap
Thomas Ingleby [Fri, 25 Jul 2014 01:56:14 +0000 (02:56 +0100)]
gen2: fix typo on A5 GPIO pinmap

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agogalileorevh.md: add initial revH doc
Brendan Le Foll [Thu, 24 Jul 2014 15:59:53 +0000 (16:59 +0100)]
galileorevh.md: add initial revH doc

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agocycle-pwm3.py: make example use real pin3 and make work on gen2
Brendan Le Foll [Thu, 24 Jul 2014 14:17:11 +0000 (15:17 +0100)]
cycle-pwm3.py: make example use real pin3 and make work on gen2

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agoGalileo Gen2: add replace hook for pwm period
Thomas Ingleby [Thu, 24 Jul 2014 13:25:41 +0000 (14:25 +0100)]
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>
10 years agopwm: move internal context structure to internal header
Thomas Ingleby [Thu, 24 Jul 2014 13:21:06 +0000 (14:21 +0100)]
pwm: move internal context structure to internal header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agopwm: add period write replace hook
Thomas Ingleby [Thu, 24 Jul 2014 13:20:01 +0000 (14:20 +0100)]
pwm: add period write replace hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agocycle-pwm3.py: fix example
Brendan Le Foll [Thu, 24 Jul 2014 09:10:04 +0000 (10:10 +0100)]
cycle-pwm3.py: fix example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
10 years agomraa: update to version 0.4.2 v0.4.2
Thomas Ingleby [Mon, 14 Jul 2014 17:31:03 +0000 (18:31 +0100)]
mraa: update to version 0.4.2

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agogpio: remove printf's, change init-post hook
Thomas Ingleby [Mon, 14 Jul 2014 17:25:40 +0000 (18:25 +0100)]
gpio: remove printf's, change init-post hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agointel_galileo_rev_g: make gpio on i2c pins go hiz
Thomas Ingleby [Mon, 14 Jul 2014 17:19:26 +0000 (18:19 +0100)]
intel_galileo_rev_g: make gpio on i2c pins go hiz

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2c: add init(pre-post) hooks
Thomas Ingleby [Mon, 14 Jul 2014 17:19:07 +0000 (18:19 +0100)]
i2c: add init(pre-post) hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2c: internal structure to mraa_internal_types
Thomas Ingleby [Mon, 14 Jul 2014 16:52:08 +0000 (17:52 +0100)]
i2c: internal structure to mraa_internal_types

* For use in hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
10 years agoi2c: add Brendan's email to header
Thomas Ingleby [Mon, 14 Jul 2014 16:49:31 +0000 (17:49 +0100)]
i2c: add Brendan's email to header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>