https://github.com/intel-iot-devkit/mraa

sort by:
Revision Author Date Message Commit Date
c65a1de mraa: update to version 0.6.0 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 11 February 2015, 10:40:16 UTC
6135628 src/mraa.c: mux mapped Don't own gpio of muxes, so it isnt unexported. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 10 February 2015, 17:38:13 UTC
7ee0227 Revert "setup_mux_mapped: use HIGH/LOW instead" This reverts commit 6c73a8adceb2b59e1868dc57737be9b2ea51cec7 as it breaks galileo gen1 muxing. Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 10 February 2015, 17:38:08 UTC
6c73a8a setup_mux_mapped: use HIGH/LOW instead Avoids on some platforms where when setting a mux will set it low when it wouldn't be safe to. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 22 January 2015, 17:40:16 UTC
e76d85e gpio: add behaviour for pin without direction If a gpio doesnt have a direction, like some muxes do, try and set value if HIGH or LOW was passed. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 22 January 2015, 17:40:16 UTC
d88da13 contributing.md: Fix typo Signed-off-by: Petrus J.v.Rensburg <petrus.jvrensburg@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 22 January 2015, 10:52:20 UTC
212be29 api: remove internal strut from public API Moved for internal use only Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 21 January 2015, 16:33:00 UTC
94dd44a example/gpio.c: Remove extern to plat Use exposed api functions to get board information. Added version option for version and name Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 21 January 2015, 16:24:21 UTC
fb54307 raspberry_pi_b: add missing platform name Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 21 January 2015, 15:43:27 UTC
e8bc227 api/platform_name: Change return when null platform Easier to error check against Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 21 January 2015, 15:39:29 UTC
53a9a7d internal/platform_name: move to const char* Instead of plain char* to avoid need to malloc and do all the needed error checking needed that goes along with that. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 21 January 2015, 15:35:54 UTC
067487f mraa/platform: add mraa_get_pin_count() Will return physical pin count. Closes #75 Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 21 January 2015, 15:17:34 UTC
456646c blink_onboard.c: explain use of calamari lure in example Closes #96. Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 20 January 2015, 23:50:43 UTC
e23325d docs: add debugging doc Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 20 January 2015, 23:25:39 UTC
c3980c2 gpio: add function to get raw gpio number. Will return the GPIO number used within SYSFS Closes #63 Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 20 January 2015, 18:33:12 UTC
4e59917 cov: add some explicit includes that where missing Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 20 January 2015, 17:15:13 UTC
e3dba94 i2c.c: Fix resource leak when I2C_FUNCS ioctl fails This isn't a true failure condition just assume we have no features and carry on Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 20 January 2015, 17:15:13 UTC
25bd897 uart: use const char* instead of plain char* Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 20 January 2015, 17:14:12 UTC
9cfbc87 uart: add function mraa_uart_get_dev_path Used for getting the path to the character device under linux for uart device. i.e. "/dev/ttyS0" Adds paths to existing platforms. Closes #84 Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 20 January 2015, 16:08:49 UTC
ed4c68e uart: cleanup and bring inline with standard Removed mraa_setup_uart from core mraa.c moved logic within init function Add more syslog output for easier debugging. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 20 January 2015, 14:44:28 UTC
20d2291 gpio: mraa_gpio_dir allow output to set val There is an issue that when you take an IO pin that has an external PU resistor and switch it from INPUT to OUTPUT the state of the pin will go down before you can set it back high. Signed-off-by: Kurt Eckhardt <kurte@rockisland.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 20 January 2015, 10:43:16 UTC
66eb476 building.md: fix clang/clang++ arg Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 17 January 2015, 10:22:36 UTC
5daad72 docs: add more information to builds & contributing Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 16 January 2015, 14:01:43 UTC
50ca84b mraajs.i: add %include carrays.i to fix generation with SWIG 3.0.4 Fixes #97 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 16 January 2015, 13:45:04 UTC
c3e43e5 cmake: make licensing of cmake modules really clear Cmake modules have varying licensing, to make the distinctions clearer all original licenses have been included and TargetArch.cmake has been explicitly marked as LGPL 2.1 as it is based off work comming from qtbase Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 22:29:18 UTC
21962f4 internals.md: add more internals documentation Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 15:56:29 UTC
26106a2 building.md: add more building information Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 15:56:07 UTC
5af1197 spi: add mraa_spi_init_raw This lets you access a spidev device directly without any checking in the style of mraa_i2c_init_raw Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 11:52:36 UTC
16fc50b spi.hpp: styling/identation fix Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 11:52:15 UTC
c28eea8 i2c.hpp: fix doxygen comment for return of read() Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 11:52:13 UTC
f51afc1 pwm.hpp: Pwm constructor optional arg order change This means that you can initialise a non raw Pwm pin without having to redefine chipid as -1 (anything but -1 enables raw mode for Pwm) Fixes #93. Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 11:52:13 UTC
b7a0856 spi: Make Spi write() work from SWIG with typemaps This change also changes the C++ API write(char) call to writeByte(uint8_t) and the write() call now takes a uint8_t* instead of a char*. This should not alter any code significantly and does not affect the C API. Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 14 January 2015, 11:52:12 UTC
17ee0c9 mraa.c: fix FTBFS on printf by adding format gcc-4.8.2 fails to build from source and complains : error: format not a string literal and no format arguments Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 12 January 2015, 18:12:37 UTC
219eeed x86.c: remove duplicate case statement Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 01 January 2001, 02:53:16 UTC
c45e3c8 x86/intel_minnow_max.c: remove definitions duplication Since gpios are +256 in 3.18+ kernels this stops dual definitions and possible issues later on if errors are found Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 01 January 2001, 02:53:16 UTC
5dc28d9 x86/intel_minnow_max.c: add board gpio count Whilst this value is not used because it's only required by the aio module it is interesting to have this information if we want to expose it to the user Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 01 January 2001, 02:53:16 UTC
d8bef92 x86/intel_minnow_max.c: Adjust gpio pins based on kernel version This should adjust the pinouts, at runtime, based on the current kernel that's in use. The Linux kernel made a change between 3.17 and 3.18 ( specifically ea584595fc85e65796335033dfca25ed655cd0ed ) that changed the numbering for GPIOs. This obviously breaks everything for mraa on the MinnowBoard MAX if you have a 3.18 or newer kernel. Signed-off-by: John 'Warthog9' Hawley <john.hawley@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 01 January 2001, 02:53:16 UTC
62c3264 api/spi: Add Spi_Modes to CPP headers. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 09 January 2015, 17:14:50 UTC
a76061a x86/galileo_gen2: correct mistake on IO11 for SPI Fixes #89 Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 09 January 2015, 16:47:01 UTC
3efb7a0 intel_edison_fab_c.c: move gpio_close_pre to miniboard The gpio_close_pre was put on the wrong board definition. So calling close of GPIO pin on mini-board caused a fault Signed-off-by: Kurt Eckhardt <kurte@rockisland.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 17:49:51 UTC
ec5c09f I2c-compass.cpp: fix incorrect usage of write/writeByte Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 11:37:07 UTC
461015a bmp85.js: add i2c read/write example Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 11:24:56 UTC
f14654a mraajs.i: add i2c read/write function typemaps Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 11:24:56 UTC
23fca71 bmp85.py: add simple example of new i2c read func Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 11:24:55 UTC
31b1673 python-mraa.i: Add typemaps to make I2c::{read,write} natural Typemaps now make uint8_t *data, int length map to a bytearray Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 11:24:55 UTC
9bcd652 mraa.i: remove std::string conversion Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 11:24:54 UTC
c45388b i2c.hpp: Change I2c class API to ressemble C API I2c class now uses more C like constructs for added efficiency when using C++ and no longer returns a binary string when doing read() calls. This change also removes the use of std::string in the SWIG API for read/write which never worked very well. This also renames single write/read calls to {write,read}Byte as whilst overloading works in C++ well it's a little confusing and only works because {write,read}() calls have 2 arguments which will not be the case in the SWIG API where those calls take a single argument (bytearray or node::Buffer), especially in js where functions have no explicit args this does not work well. Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 06 January 2015, 11:24:53 UTC
d6bbd0b mraa.c: fix missing break statement in case switch Missing in mraa_pin_mode_test causes an erroneous syslog message. Fixes #86 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 23:04:50 UTC
41956b0 pwm.c: cache period There is an issue that mraa_pwm_write would fail, because mraa_pwm_read would fail and return 0. When the read fails, journalctl shows an error: Dec 28 18:01:38 Edison libmraa[365]: pwm: Error in reading period So now trying version, where the pwm object caches the period, that is updated whenever you do a read or write of the period. Side benefit is that the write should be sped up. Signed-off-by: Kurt Eckhardt <kurte@rockisland.com> Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 05 January 2015, 15:24:28 UTC
3eb0a8d i2c: use I2C_FUNCS to store funcs map Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 14:49:48 UTC
a65a906 i2c: fix brackets around if statement Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 14:38:50 UTC
cc9a4f5 edison: add mraa_i2c_frequency replace hook for i2c-6 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 14:38:50 UTC
ab3af9c i2c: add busnum to context Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 14:38:49 UTC
836d953 i2c: remove hz from context Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 14:38:48 UTC
fc5d37d i2c: set_frequency now takes a mraa_i2c_mode_t Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 14:38:48 UTC
87e242a helloedison.c: add edison type example This small example shows the use of mraa_get_pin and documents the owner concept Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 14:35:56 UTC
6651d49 types.h: add edison numbering enums Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 05 January 2015, 12:23:34 UTC
74d172c gpio: Add a function to get a pin number from mraa_gpio_context Signed-off-by: Kenta Yonekura <yoneken@ieee.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 21 December 2014, 17:43:31 UTC
bc05ce7 x86/galileo-gen2: Speed up mraa_gpio_dir Made like changes to Edison to cache the output enable. Note: different than Edison as the pin structure holds enable pin number instead of external array. 2nd note: noticed PU resistors are also in structure but there is also external array. Signed-off-by: Kurt Eckhardt <kurte@rockisland.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 19 December 2014, 14:40:02 UTC
455ab6f x86/edison: Speed up mraa_gpio_dir Reasonable speed up in the mraa_gpio_dir on the Edison Arduino board Signed-off-by: Kurt Eckhardt <kurte@rockisland.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 19 December 2014, 14:40:02 UTC
21d88d1 gpio.c: add advance_func->gpio_close_pre Signed-off-by: Kurt Eckhardt <kurte@rockisland.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 19 December 2014, 14:40:01 UTC
e7649db contributing.md: fix styling issues Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 18 December 2014, 22:39:34 UTC
2574efd mraa.c: mraa_pin_mode_test should check against b->gpio_count -1 It's already the case for rpi & MMAX but it should be noted that on 1 indexed boards gpio_count should be +1 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 18 December 2014, 14:28:36 UTC
1ee5e25 mraa.c: add syslog msg in case we get an unknown pinmode Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 18 December 2014, 14:13:04 UTC
a769f78 mraa.c: fix uart mraa_pin_mode_test switch statement was missing a clause for MRAA_PIN_UART meaning it always returned False Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 18 December 2014, 14:11:27 UTC
d58adef mraa.c: fix aio mraa_pin_mode_test test was adding board gpio_count to pin so that 0 would use the info for pin 14 on some boards when asking for aio capability Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 18 December 2014, 14:07:59 UTC
3c4742c mraa.c: Fixed potential segfault on free()-ing NULL in mraa_deinit() Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 16 December 2014, 21:22:59 UTC
e5835fa mraa.c: remove DEBUG define debug DEFINE crept in from 6bc2b0fb53865c85c786f7f2a0393d88e7784c08 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 16 December 2014, 20:38:06 UTC
083db5b mraa.c: added user check into mraa_init() & increase verbosity mraa_init() will now: - print user name and EUID of the process instead of UID, - print full platform text name in addition to numeric type, - return, log and print an error if started by non-root user Fixes #64 Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 16 December 2014, 20:33:30 UTC
4d8b82e gpio.c: styling, avoid bracketless if statements Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 15 December 2014, 16:23:18 UTC
875c48c contributing.md: Add developer certificate of origin stuff Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 15 December 2014, 16:23:18 UTC
71118af mraa.c: do not check return value of mraa_gpio_dir when used on muxes Doing so breaks galileo gen2 (gpio2) and others. Failing early is rather pointless in any case so we may as well attempt the write, muxes do not neccesarily have directions that work Fixes #68 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 15 December 2014, 11:50:54 UTC
f7256f1 x86/galileo-gen2: correct SPI MOSI mux info Fixes #67 Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 12 December 2014, 20:41:00 UTC
f6a05b1 x86/edison: only toggle tristate on physical pins Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 12 December 2014, 12:25:29 UTC
f277e7d doc/spi: correct description of SPI SPI is not System Package Interface Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 11 December 2014, 15:23:25 UTC
4944f42 intel_edison_fab_c.c: ignore failed tristate writes when doing direction set Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 11 December 2014, 10:50:57 UTC
643bb99 mraa.c: fix error handling & leak in mraa_setup_mux_mapped Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 10 December 2014, 15:38:14 UTC
da15fdb binding.gyp.cmake: fix architecture name for 32bit x86 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 10 December 2014, 14:52:23 UTC
0c086d8 mraa.i: remove comments breaking builds with SWIG 3.0.3 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 10 December 2014, 11:06:13 UTC
2c5e749 binding.gyp.cmake: define *PLAT based on target_platform Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 09 December 2014, 18:39:21 UTC
e9297d8 mraa.c: check already initialised before anything else in mraa_init Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 09 December 2014, 18:39:21 UTC
bd16ecc raspberry pi: correct bus definitions They needed offsetting by +1, due to starting the config at 1 instead of 0 as it was during development Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 09 December 2014, 18:18:46 UTC
71913b9 docs: add Raspberry Pi ref to docs/index.md Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 08 December 2014, 16:07:26 UTC
86a71d8 raspberry pi: add doc for model b Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 08 December 2014, 16:07:26 UTC
953d7af arm: use raspberry pi platform As it is the only currently supported ARM platform. It defaults to RPi Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 08 December 2014, 15:41:16 UTC
ea38d8c raspberry pi: add model b definition Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 08 December 2014, 15:41:16 UTC
f9d466b arm: add initial skeleton for arm platform support Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 08 December 2014, 15:32:42 UTC
79afd91 x86: move x86 platform include files into own directory Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 08 December 2014, 15:32:42 UTC
b0a21e2 arch: initial framework for supporting other architectures added. x86: all platforms moved into x86 directory Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com> 08 December 2014, 15:32:42 UTC
aff8811 intel_edison_fab_c.c: fix typo in function name Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 13:35:43 UTC
46acb93 intel_minnow_max.c: fix unsafe strncpy not NULL terminating Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 12:10:13 UTC
2059787 intel_galileo_rev_g.c: add more robust error handling Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 12:10:13 UTC
c270d31 intel_galileo_rev_d.c: check malloc return values Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 12:08:34 UTC
7be054f intel_galileo_rev_d.c: prefix syslog calls Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 12:08:34 UTC
0523ed2 intel_minnow_max.c: check malloc return values Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 12:08:34 UTC
0fc59b6 intel_de3815.c: check malloc return values Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 12:08:34 UTC
2378bf1 intel_edison_fab_c.c: add more robust error handling Fixes #55 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 08 December 2014, 12:08:34 UTC
cf1a864 aio.c: properly cleanup after mraa_aio_close Problem not closing file handle when you destroy the mraa_aio_context Signed-off-by: Kurt Eckhardt <kurte@rockisland.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 07 December 2014, 15:05:27 UTC
1ee0548 mraa.i: add enum item rename rule Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 02 December 2014, 23:20:24 UTC
8f1c542 common.h: move functions from types.h Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> 02 December 2014, 23:19:54 UTC
back to top