Private
Public Access
2
0
Commit Graph

777 Commits

Author SHA1 Message Date
Brendan Le Foll
45b01b29de .gitignore: add .swo tmp files
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 15:17:10 +01:00
Brendan Le Foll
bca2bce323 contributing.md: add notes on cmakelist coding style
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 15:17:05 +01:00
Brendan Le Foll
d6b33a9cbf cmake: add yuidoc documentation generation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 15:16:42 +01:00
Brendan Le Foll
cd2e78c37a doxygen2jsdoc: add submodule
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 15:14:49 +01:00
Jon Trulson
b142f3fdda uart: fix missing inversion that will clear all other flags
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 11:20:18 +01:00
Brendan Le Foll
e0ce5454bd uart: move string funcs to {read,write}Str
This commit adds raw binary read/write functions using the same typemaps as I2c
functions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 10:58:11 +01:00
Brendan Le Foll
40c52784ad spi.hpp: mraa_spi_write_buf_word cannot be used from SWIG bindings
In order for this to work we need to provide a typemap for it

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 10:56:48 +01:00
Brendan Le Foll
236a8e9586 uart: make mraa_uart_get_dev_path return const char*
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 10:54:40 +01:00
Brendan Le Foll
347fd449f9 uart: Make C API use const where appropriate
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 09:36:00 +01:00
Brendan Le Foll
4628f3f2a0 uart.hpp: Use std::string constructor which lets use set a size parameter
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 09:32:44 +01:00
Brendan Le Foll
ea71308702 uart.hpp: trust c_str() instead of making copies
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-01 09:32:14 +01:00
Brendan Le Foll
8493ed4239 mraa: update to version 0.7.0
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-29 14:56:50 +01:00
Thomas Ingleby
fa57cee2e7 uart: update C++ API
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2015-05-28 23:31:12 +01:00
Thomas Ingleby
b982160ec5 uart: update C API
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2015-05-28 23:31:12 +01:00
Brendan Le Foll
19cad5cf24 uart: bunch of small changes to make C api work
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Brendan Le Foll
b02f8b4d50 uart.c: add missing return values
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Thomas Ingleby
522a4feea1 uart: change hpp, use new names of functions
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2015-05-28 23:31:11 +01:00
Thomas Ingleby
4d86860e0c uart: remove un-needed includes from uart.h
No need for many included

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2015-05-28 23:31:11 +01:00
Thomas Ingleby
7e47b05c8f uart: move internal static function to top of file
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2015-05-28 23:31:11 +01:00
Brendan Le Foll
0a516ef3bf uart: make initial dump of uart module
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Jon Trulson
88f3052d99 uart: use an unsigned int for baud rate rather than speed_t
uart.c contains a static conversion function that will translate known
baud rates into their speed_t counter parts.  If an unsupported baud
rate is selected, a diagnostic will be emitted via syslog and a
default of B9600 will be chosen.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Jon Trulson
c30457e434 uart: add capability to check if data can be read from device
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Jon Trulson
cf14939cca uart: add uart device read and write functionality
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Jon Trulson
6d269eeabd uart: add uart device open and close functionality
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Jon Trulson
bdadbb8b01 uart: add fd (file descriptor) to uart context
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-28 23:31:11 +01:00
Henry Bruce
38acfe6d30 CMakeLists.txt: Added RPM packaging support for cpack
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-26 14:44:52 +01:00
Brendan Le Foll
55533ed8c1 mraajs.i: add buffer checks to python write() typemaps in Spi & I2c
Previously anything passed to an I2c::write() or Spi::write() function in
node.js that wasn't a node::Buffer or an object would likely cause a segfault
later on during future calls. This change calls node::Buffer::HasInstance(obj)
to make sure the buffer is valid prior to grabbing it's data

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-20 11:16:18 +01:00
Jakub Kramarz
f4d67b5f53 edison.md: minor fixes in Edison boards docs
Some typo, letter case and formatting fixes.

Signed-off-by: Jakub Kramarz <jakub@hackerspace-krk.pl>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-06 14:54:07 +01:00
Jakub Kramarz
8e2ec01b61 raspberry_pi.md: fixed Raspberry Pi model 2 pin mapping docs
It weren't rendered correctly by Github in previous version, also the header was missing.

Signed-off-by: Jakub Kramarz <jakub@hackerspace-krk.pl>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-05-06 14:54:05 +01:00
Jakub Kramarz
f86703d7bb java: added example GpioRead6 based on gpio_read6.c
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-29 09:53:32 +01:00
Jakub Kramarz
609e9fb102 java: added example BlinkOnboard based on blink_onboard.c
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-29 09:53:31 +01:00
Jakub Kramarz
ddff33280e java: added example CyclePwm3 based on cycle-pwm3.c
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-29 09:53:31 +01:00
Jakub Kramarz
472b1c1370 java: capitalized file names of examples, required on case-sensitive systems
Signed-off-by: Jakub Kramarz <jkramarz@virtuslab.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-29 09:50:32 +01:00
Paul Barrette
f6e87f63e0 raspberry_pi.c: update platform check for the PI 2 Version B
The latest Raspberry Pi 2 revision string is missing from the discovery
function mraa_raspberry_pi() and results in incorrect pin mapping defaulting to
PI_B Rev 1.

Signed-off-by: Paul Barrette <paul.barrette@windriver.com>
Signed-off-by: Paul Barrette <paulbarrette@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-27 10:48:24 +01:00
Brendan Le Foll
2679a916be gpio.c: mraa_gpio_get_* now return -1 in error cases
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-24 16:07:17 +01:00
Brendan Le Foll
0b382100d2 mraa-gpio.c: fix unused printf argument
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-24 16:05:12 +01:00
Alexander Komarov
4302f0d0c3 java: Added Java SWIG binding creation
%init directive is not supported in java so move %init to js/py interface files

Signed-off-by: Alexander Komarov <alexander.komarov@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-24 12:12:11 +01:00
Brendan Le Foll
c5780dceaa edison.md: add comment on tristate behaviour on edison
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-22 12:51:56 +01:00
Ian Johnson
ff2ce93fc9 Added table for RPi 2 and RPi B+. Also deleted whitespace in first table.
Signed-off-by: Ian Johnson <person.uwsome@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-22 09:21:19 +01:00
Brendan Le Foll
8ffdf2ff94 edison.md: add wifi on pin7 warning
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-21 10:00:27 +01:00
Thomas Ingleby
a17e8dbd21 mraa: update to version 0.6.2
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2015-04-14 15:18:11 +01:00
Michael Ring
0093dc3f0d beaglebone.md: Added documentation for Beaglebone Black
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-09 16:45:22 +01:00
Brendan Le Foll
c69a022d13 docs: add bananapi links and BBB reference
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:28:04 +01:00
Michael Ring
b2af0b0751 banana_pi.md: Added documentation for BananaPi/Pro
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:19:15 +01:00
Michael Ring
0d15d3a38c banana.c: Fixed Pin assignment for Banana Pi and wrong names for SPI devices
Signed-off-by: Michael Ring <michael.ring@swisscom.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:19:14 +01:00
Michael Ring
095ff894a7 mraa.c: Remove mraa_init() from mraa_pin_mode_test
If platform is not initalised at this stage then there is no need to attempt
again

Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:19:14 +01:00
Michael Ring
56ba08a98f banana: Add bananapi support
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:19:14 +01:00
Michael Ring
bff7b558eb mraa.c: Add _contains helper functions
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:19:14 +01:00
Brendan Le Foll
68e216ec3f mraa_internal.h: clean header style
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:19:14 +01:00
Michael Ring
d2fcadc8d5 mraa.c: change helper functions to use const char*
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-08 22:19:14 +01:00