contrib/mraa.git
9 years agomraa: update to version 0.5.2 v0.5.2
Brendan Le Foll [Thu, 6 Nov 2014 15:25:01 +0000 (15:25 +0000)]
mraa: update to version 0.5.2

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agopwm: syslog message typo correction
Matthias Hahn [Wed, 5 Nov 2014 19:26:17 +0000 (20:26 +0100)]
pwm: syslog message typo correction

Signed-off-by: Matthias Hahn <matthias.hahn@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agorgblcd.py: update example to use only writeReg()
Brendan Le Foll [Wed, 5 Nov 2014 11:20:36 +0000 (11:20 +0000)]
rgblcd.py: update example to use only writeReg()

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agorgblcd.js: add i2c example similar to python
Brendan Le Foll [Wed, 5 Nov 2014 11:13:29 +0000 (11:13 +0000)]
rgblcd.js: add i2c example similar to python

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c_HMC5883L.c: fix type in i2c buffer
Brendan Le Foll [Tue, 4 Nov 2014 19:08:08 +0000 (19:08 +0000)]
i2c_HMC5883L.c: fix type in i2c buffer

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c: use uint8_t when appropriate and remove char
Brendan Le Foll [Fri, 31 Oct 2014 15:10:15 +0000 (15:10 +0000)]
i2c: use uint8_t when appropriate and remove char

Object APIs used signed chars for some operations which are not appropriate
when using i2c.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agogpio: fix identation
Bernd Barsuhn [Tue, 4 Nov 2014 10:13:37 +0000 (10:13 +0000)]
gpio: fix identation

Signed-off-by: Bernd Barsuhn <bernd.barsuhn@me.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agogpio: make mraa_gpio_isr_exit block until the interrupt handling thread is terminated.
Bernd Barsuhn [Wed, 29 Oct 2014 12:25:38 +0000 (13:25 +0100)]
gpio: make mraa_gpio_isr_exit block until the interrupt handling thread is terminated.

Signed-off-by: Bernd Barsuhn <bernd.barsuhn@me.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoPwm3-cycle.cpp: add pwm::enable() call to example
Brendan Le Foll [Mon, 3 Nov 2014 15:08:11 +0000 (15:08 +0000)]
Pwm3-cycle.cpp: add pwm::enable() call to example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c: add api call to read byte from a specified register
Anton Krasovsky [Thu, 30 Oct 2014 23:25:10 +0000 (23:25 +0000)]
i2c: add api call to read byte from a specified register

Signed-off-by: Anton Krasovsky <anton@no-mad.net>
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agospi: expose defined CS
Thomas Ingleby [Thu, 30 Oct 2014 17:35:35 +0000 (17:35 +0000)]
spi: expose defined CS

Add missing information for Gen 2 CS info

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agopwm: add period limits, warn over syslog
Thomas Ingleby [Thu, 30 Oct 2014 12:03:24 +0000 (12:03 +0000)]
pwm: add period limits, warn over syslog

Added minimum, maximum and default period settings to board definitions
PWM will now have a default period as defined in the board defintion.
When using pwm_write() writing 1.0f or above will default to 100%.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agocontributing.md: add a few contribution rules matching UPM
Brendan Le Foll [Wed, 29 Oct 2014 13:14:46 +0000 (13:14 +0000)]
contributing.md: add a few contribution rules matching UPM

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agopwm: fixed wrong line ending being checked by strtol
Maximilian von Tschirschnitz [Wed, 29 Oct 2014 12:52:49 +0000 (13:52 +0100)]
pwm: fixed wrong line ending being checked by strtol

Move from fopen to POSIX open introduced this bug in strtol

Signed-off-by: Maximilian von Tschirschnitz <maximilian.tschirschnitz@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoREADME: add Intel DE3815 to supported systems.
Thomas Ingleby [Fri, 24 Oct 2014 13:23:56 +0000 (14:23 +0100)]
README: add Intel DE3815 to supported systems.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agode3815: add initial doc
Thomas Ingleby [Tue, 21 Oct 2014 23:19:27 +0000 (00:19 +0100)]
de3815: add initial doc

Also removed printf used during inital implementation.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agode3815: added PWM support
Thomas Ingleby [Tue, 21 Oct 2014 22:59:53 +0000 (23:59 +0100)]
de3815: added PWM support

There are two PWM pins on the custom solutions header.
10-PWM[0] and 11-PWM[1] in mraa.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agointel_de3815: initial support for Baytrail NUC
Thomas Ingleby [Fri, 17 Oct 2014 16:29:20 +0000 (17:29 +0100)]
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>
9 years agospi: attempt to fix spi lsb mode
Brendan Le Foll [Thu, 23 Oct 2014 17:05:36 +0000 (18:05 +0100)]
spi: attempt to fix spi lsb mode

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoi2c: use default i2c bus in board config if invalid
Brendan Le Foll [Thu, 23 Oct 2014 17:05:07 +0000 (18:05 +0100)]
i2c: use default i2c bus in board config if invalid

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agosyslog: unify error msg style
Brendan Le Foll [Wed, 22 Oct 2014 20:06:45 +0000 (21:06 +0100)]
syslog: unify error msg style

syslog messages should be written as <module>: Message in order to increase
readability and usefulness

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agospi: fix mraa_spi_bit_per_word call to use correct ioctl
Brendan Le Foll [Wed, 22 Oct 2014 19:52:11 +0000 (20:52 +0100)]
spi: fix mraa_spi_bit_per_word call to use correct ioctl

This should fix #14

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agointel_edison_fab_c.c: If i2c bus number is invalid use the default bus (6)
Brendan Le Foll [Wed, 22 Oct 2014 19:51:13 +0000 (20:51 +0100)]
intel_edison_fab_c.c: If i2c bus number is invalid use the default bus (6)

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoedison: fix uart missing information
Thomas Ingleby [Mon, 20 Oct 2014 18:13:43 +0000 (19:13 +0100)]
edison: fix uart missing information

This should fix #19

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agouart: add pre uart hook
Thomas Ingleby [Mon, 20 Oct 2014 17:43:58 +0000 (18:43 +0100)]
uart: add pre uart hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agoi2c: mraa_i2c_frequency now returns correct returns
Brendan Le Foll [Mon, 20 Oct 2014 09:01:53 +0000 (10:01 +0100)]
i2c: mraa_i2c_frequency now returns correct returns

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoedison: add uart definitions
Thomas Ingleby [Sun, 19 Oct 2014 15:25:47 +0000 (16:25 +0100)]
edison: add uart definitions

Needed to use a hook to make sure the SoC pins for RX TX are in the
right place.
Also added a line in documentation listed what interface is available.
This resolves #18

Co-Authored-By: Kurt Eckhardt <kurte@rockisland.com>
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agouart: add init post hook
Thomas Ingleby [Sun, 19 Oct 2014 15:09:19 +0000 (16:09 +0100)]
uart: add init post hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 years agocommon: c++ link error if multiple files include header
Kurt Eckhardt [Sat, 18 Oct 2014 13:54:38 +0000 (06:54 -0700)]
common: c++ link error if multiple files include header

Header only C++ function definitions need to be static to avoid linking issues
when including the header multiple times.

Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agospi: make mraa_spi_write_buf call mraa_transfer_buf
Brendan Le Foll [Sat, 18 Oct 2014 17:47:44 +0000 (18:47 +0100)]
spi: make mraa_spi_write_buf call mraa_transfer_buf

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agospi: Add SPI transfer function that pass in RX/TX
Kurt Eckhardt [Sat, 18 Oct 2014 16:25:19 +0000 (09:25 -0700)]
spi: Add SPI transfer function that pass in RX/TX

When using SPI, I prefer to not have to do malloc/free functions for each
transfer, so why not have a transfer function that you can pass in both
buffers.  With my ILI9341 TFT display code that gave some perf wins, also more
of a win, you can pass in NULL for recv buffer and the underlying device driver
does not have to copy the data.

Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoexception: Add exceptions when context creation fails
Brendan Le Foll [Thu, 16 Oct 2014 13:53:56 +0000 (14:53 +0100)]
exception: Add exceptions when context creation fails

* Exceptions only fired in constructor when it would initialise with a NULL
  context causing segfaults if used any further
* Adds exception.i requirement to mraa.i for node.js and python support

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
9 years agoapi: correct mistake in gpio.hpp v0.5.1
Thomas Ingleby [Wed, 15 Oct 2014 11:29:08 +0000 (12:29 +0100)]
api: correct mistake in gpio.hpp

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>