Thomas Ingleby
e5c3e491a8
README: add Intel DE3815 to supported systems.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-24 14:23:56 +01:00
Thomas Ingleby
af3aa9d8b9
de3815: add initial doc
...
Also removed printf used during inital implementation.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-24 14:21:20 +01:00
Thomas Ingleby
b59aecb70d
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 >
2014-10-24 14:21:20 +01: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
418c198999
spi: attempt to fix spi lsb mode
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-23 18:05:36 +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
Brendan Le Foll
a6b3d384b2
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 >
2014-10-22 21:09:11 +01:00
Brendan Le Foll
a67d71ed90
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 >
2014-10-22 21:09:03 +01:00
Brendan Le Foll
8b7c1d80cb
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 >
2014-10-22 20:51:13 +01:00
Thomas Ingleby
232fb2cf5e
edison: fix uart missing information
...
This should fix #19
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-20 19:14:41 +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
Brendan Le Foll
d49f20b7ba
i2c: mraa_i2c_frequency now returns correct returns
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-20 10:01:53 +01:00
Thomas Ingleby
c8a99ee8e4
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 >
2014-10-19 16:29:27 +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
Kurt Eckhardt
0f2329bd95
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 >
2014-10-19 09:02:58 +01:00
Brendan Le Foll
d734a661fd
spi: make mraa_spi_write_buf call mraa_transfer_buf
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-19 09:01:01 +01:00
Kurt Eckhardt
2a11e31052
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 >
2014-10-19 09:00:57 +01:00
Brendan Le Foll
54deb01796
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 >
2014-10-16 15:07:18 +01:00
Thomas Ingleby
88341c7e56
api: correct mistake in gpio.hpp
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-15 12:29:08 +01:00
Thomas Ingleby
0a43974175
mraa: update to version 0.5.1
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-15 11:23:25 +01:00
Thomas Ingleby
5e20a1cc02
doc: add Edison miniboard doc
...
* Brings to conclusions Fix #10
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-08 18:04:30 +01:00
Thomas Ingleby
23feec94d0
edison: miniboard GPIO mode hook added
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-08 18:02:53 +01:00
Thomas Ingleby
0cba580ca6
edison: miniboard SPI bus support added
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-08 17:23:45 +01:00
Thomas Ingleby
1dd5f89b37
edison: miniboard i2c support added for bus 1 & 6
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-08 17:10:11 +01:00
Thomas Ingleby
03114cbadb
edison: add missing PWM hook for miniboard
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-08 15:24:04 +01:00
Thomas Ingleby
c5102dffba
pwm: fix incorrect hook check
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-08 14:59:37 +01:00
Brendan Le Foll
d1037eda59
Revert "CMakeLists.txt: add DEBUG define when doing a debug build"
...
This reverts commit 52a48a728a which made debug
builds stop working.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-07 20:20:20 +01:00
Thomas Ingleby
d1717fa2bb
edison: add inital miniboard support
...
* Only GPIO will work currently
* This fixes #11
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-07 19:20:03 +01:00
Brendan Le Foll
2b5e38b40c
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 >
2014-10-03 22:50:18 +01:00
Brendan Le Foll
4e5ec299ed
index.md: add edison link
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-03 22:49:01 +01:00
Brendan Le Foll
60f2e639b2
docs: add edison to doxygen doc and coverity instructions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-03 19:00:45 +01:00
Brendan Le Foll
6d5a3d796c
gpio: add more error checking for mraa_gpio_context
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-03 12:00:11 +01:00
Brendan Le Foll
c5c5c9b700
doc: cleanup internal documentation and naming
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-03 10:18:26 +01:00
Brendan Le Foll
3898182743
index.md: add ADC change for 0.5.0
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-25 14:33:44 +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
Brendan Le Foll
52a48a728a
CMakeLists.txt: add DEBUG define when doing a debug build
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-25 14:30:22 +01:00
Brendan Le Foll
886044b90f
aio.c: cosmetic fix on file
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-24 12:06:10 +01:00
Brendan Le Foll
fa13baf12b
edison.md: add details on i2c bus number
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-22 17:49:32 +01:00
Thomas Ingleby
0a9bfa365f
aio: change c++ calls to camelCase
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-22 17:40:57 +01:00
Thomas Ingleby
e82a76593d
aio: change return from uint16 to unsigned int
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-22 15:29:02 +01:00
Thomas Ingleby
1fcdfde02c
doc: add ADC information for each platform
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-22 14:52:45 +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
Brendan Le Foll
dcc4efbaf8
hello_isr.py: add sleep to the example to reduce confusion
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-19 01:06:59 +01:00
Thomas Ingleby
ef20d5ed3e
edison: add supported adc bit information
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-10 16:31:49 +01:00
Thomas Ingleby
beeaab3dda
mraa: update to version 0.5.0
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-10 11:18:44 +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