aboutsummaryrefslogtreecommitdiffstats
path: root/api
AgeCommit message (Collapse)Author
2024-01-23platform: add radxa e25 supportNascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-12-05types.h: fix Radxa ROCK 3B and Radxa CM5 IO wiringNascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-12-05platform: add Radxa ROCK 3A platform supportNascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-11-08platform: add Radxa CM5 IO platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-10-26platform: add Radxa CM3 platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com> Co-authored-by: ZHANG Yuntian <yt@radxa.com>
2023-10-20platform: add Radxa ROCK 3B platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-10-19Add support for Orange Pi PrimeGunjan Gupta
2023-10-12platform: add Radxa ROCK 5B platform supportNascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-09-26platform: add Radxa ROCK 5A platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-09-21platform: Add RISC-V architecture with VisionFiveDaniel Bovensiepen
Add RISC-V architecture and StarFive JH71x0-based boards VisionFive and VisionFive 2. Signed-off-by: Daniel Bovensiepen <oss@bovi.li> Signed-off-by: Zhu Jia Xing <jiaxing.zhu@siemens.com>
2023-09-11platform: add Radxa ROCK 3C platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-06-07rockpi4: add java supportnascs
Signed-off-by: nascs <nascs@radxa.com>
2022-08-05platform: add iot2050 platform supportIvan Mikhaylov
This patch introuduce iot2050 platform support, it is the port from meta-iot2050 layer. Based on original patch by Le Jin. Signed-off-by: Le Jin <le.jin@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
2022-07-01Support for swig 4.1.0Hirokazu MORIKAWA
In swig 4.1.0, the complicated handling of "SWIG_V8_VERSION" has been cleaned up a bit. I made the same changes as in this swig. Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2022-07-01gpio: Silence own use of deprecated mraa_gpio_use_mmapedJan Kiszka
The warning is aiming at external use, not our own one. Silence the latter by adding an internal service that the deprecated function calls and use that service in the remaining mraa use cases. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2021-06-29api: Add explicit close methods to classesJan Kiszka
This is needed for bindings to languages which perform implicit and lazy object cleanups. The explicit close methods allow to release resources when they are no longer required, permitting deterministic reuse. One example is node-red-node-intel-gpio which will use the new calls on node closing. Fixes #1044. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2021-06-29uart: Convert rtscts and xonxoff in mraa_uart_settings into mraa_boolean_tJan Kiszka
This aligns the getter with the setter (mraa_uart_set_flowcontrol). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2021-04-07Added Intel Learning kit to platforms.Arora, Jeet
Signed-off-by: Arora, Jeet <jeet.arora@intel.com> Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2020-09-15rockpi4: add model c supportakgnah
Signed-off-by: akgnah <1024@setq.me>
2020-09-15Added the mraa_strresult functionJefferson Lee
Signed-off-by: Jefferson Lee <jeffersonlee2000@gmail.com>
2020-01-06upxtreme: Match UP Xtreme Platform enum valueMichael Campion
After rebase UP Xtreme supported platform enum value was changed to 24 in types.h, this commit updates the enum value in types.hpp to this value. Signed-off-by: Michael Campion <michael.campion@emutex.com>
2020-01-06upxtreme: Add UP Xtreme supportMichael Campion
UP Xtreme is based on the Intel(R) Core(TM) i3/i5/i7 Whiskey Lake SoCs. The UP Xtreme presents one Raspberry Pi compatible HAT connector. This implementaion supports i2c, spi, uart, adc and gpio through the 40pin HAT connector. Gpio chardev capabilities have been disabled in this implementation. When gpio chardev capabilities are enabled an input becomes unreadable after an isr has been registered to the pin. See here for details: https://github.com/intel-iot-devkit/mraa/issues/937 Tested on UP Xtreme, with UP Board Linux kernel 5.0.0 Features tested: gpio, gpio interrupts, i2c, spi, adc and uart. Signed-off-by: Michael Campion <michael.campion@emutex.com>
2019-12-03adding Adlink IPi SMARC x86/ARM supportgowtham.r
Signed-off-by: gowtham.r <gowtham.r@adlinktech.com>
2019-05-23spdx: add spdx tags to most filesThomas Ingleby
Large change that removes the duplicated MIT notice withe a spdx tag Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2019-05-10gpio: Introduce mraa_gpio_init_by_name APIManivannan Sadhasivam
This commit introduces mraa_gpio_init_by_name API for initializing a GPIO by its line name provided by the kernel. This feature depends on the GPIO chardev support and also the line names present in devicetree or board files. Accessing GPIO using its line name, removes the dependency from MRAA specific pin mapping and provides a cleaner way to access GPIOs. This will solve the issue created by an external gpiochip probing before the SoC's internal gpio controller and thereby making the MRAA pin mapping wrong. Currently, this API only supports initializing a single GPIO at a time. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2019-03-28rockpi4: Add rockpi4 supportBrian Lee
Closes #958 Signed-off-by: Brian Lee <brian@vamrs.com> Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2019-02-21initio: Add safety checks inside MraaIo destructorAdelin Dobre
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com> Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2018-09-05led: Add support for initializing onboard LEDs based on board definitionManivannan Sadhasivam
1. Add support for initializing onboard LEDs based on board definition. Maximum LED count has been set to 12. 2. Introduce mraa_led_init_raw API for initializing LEDs based on function name. This API can be used by platforms which doesn't have mapping in board definition. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-07-23Peripheralman: Remove IIO from ioinit for androidNoel Eck
Since peripheral manager does not build in the IIO source, ifdef's were added around the initio functionality for IIO. IMO this is an ugly fix, but I don't see a better way since the PERIPHERALMAN architecture is qualified throughout the CMake and source with ifdef's. Signed-off-by: Noel Eck <noel.eck@intel.com>
2018-07-23String based IO initialization for MRAAMihai Stefanescu
Signed-off-by: Mihai Stefanescu <mihai.stefanescu@rinftech.com> Signed-off-by: Noel Eck <noel.eck@intel.com>
2018-06-11types.hpp: add missing mediatek boards to platform enumMihai Tudor Panu
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2018-05-31aiotdevkit: add support for IEI Tank platformsMihai Tudor Panu
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2018-03-14common.hpp: Handle const char* nullptrsNoel Eck
Fixes for possible NULL pointer dereferencing by C++ header methods. Updated string methods to return an empty string. Signed-off-by: Noel Eck <noel.eck@intel.com>
2018-03-13api: Fixes for missing mraa methods.Noel Eck
This commit includes a set of small fixes flushed out from the google unit tests. * Fixed missing implementations of mraa_get_*_count methods. * Fix for NULL string * Fix for MOCK platform C++ define. * Switched (void) -> () function definitions for consistency. Signed-off-by: Noel Eck <noel.eck@intel.com>
2018-03-05gpio.h: Add gpio_event docBrendan Le Foll
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-03-05gpio: chardev interface / multiple gpio support for sysfsmihais
Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-03-05chardev: split up helper functions in gpio_chardevBrendan Le Foll
Remove some _multiple functions and replace with generic function that does both. Some general cleanup and will move more interrnal mraa functions to use the _mraa prefix Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-03-05gpio: Add gpio chardev interfaceMihai Stefanescu
Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-01-25api: mraa: gpio: Fix doxygen warningManivannan Sadhasivam
This commit fixes the below doxygen warning: "warning: unexpected token in comment block while parsing the argument of command param" Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-01-25api: mraa: Add cleaned-up C++ examples to doxygen docManivannan Sadhasivam
Add the cleaned-up C++ examples to doxygen doc by modifying the @snippet tag. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-01-18examples: cleanup examples directoryManivannan Sadhasivam
Following changes are done as a part of cleanup: 1. Moved the platform specific `C` examples from top level examples/ directory to platform/ subdirectory and renamed helloedison.c to gpio_edison.c 2. C specific examples are moved to a new c/ subdirectory. As a part of this process, examples are modified to follow same standards and few new examples are also added. 3. Include the newly added C examples to relevant API documentation 4. Ran clang-format for all source files in c/, c++/, platform/ subdirectories Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-10-19led: Add on board LED supportManivannan Sadhasivam
This patch adds support for using on board LED through sysfs. Commonly available LED parameters are supported. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-10-05Add support for MIPS-based boards Omega2 and Linkit Smart 7688Serge Vakulenko
Signed-off-by: Serge Vakulenko <vak@besm6.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-09-14grovepi: grovepi subplatform support via i2cMihai Tudor Panu
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-09-12src/x86/up2.c: Add UP^2 EVT3 supportJavier Arteaga
This commit adds a MRAA platform for the UP Squared board, EVT3 revision. It handles the relevant FPGA configuration updates when using MRAA to change pin modes or toggle GPIO directions. Signed-off-by: Javier Arteaga <javier@emutex.com> Signed-off-by: Nicola Lunghi <nicola.lunghi@emutex.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-08-30iio: Allow mraa_iio_trigger_buffer to handle void* argsNoel Eck
Previously, mraa_iio_trigger_buffer took a void* args but did not use this. Included implementation to allow user to pass a void* to this method and have the corresponding pointer returned in the interrupt handler. Signed-off-by: Noel Eck <noel.eck@intel.com>
2017-08-10Travis CI and Documentation Generation improvementsNicolas Oliver
* Use docker images from docker hub instead of building them on Travis * Fix doxygen warnings for C/C++ Documentation * Fix examples inclusion in documentation * Modify Travis build matrix to include stages and additional jobs * Update doxygen2jsdoc submodule * Add doxyport submodule * Generate documentation for each language in Travis * Add sonar.java.binaries to sonar-scan.sh Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
2017-07-04gpio: Add support for push-pull/open-drain output modeNicola Ponte
This attribute is not part of gpio standard attributes so it's necessary to implement a custom version of this function Signed-off-by: Nicola Ponte <nicola.ponte@u-blox.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-06-28gpio : Add support for input pull up/down modesManivannan Sadhasivam
Make use of 'active_low' interface in sysfs for configuring input pin in pull up / pull down mode. C++ binding also has been added. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-06-06aio: Update documentation to mention 0 indexedBrendan Le Foll
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>