Brendan Le Foll
7c5972ad15
mraa.c: use #if defined() for platforms
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
c9cfb42326
mraa.c: Fixed bug in detected main/sub platform name and type logging
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
93d326bff4
ftdi_ft4222.c: Removed i2c read/write logging messages.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
89d25cffeb
gpio.c: Removed spurious logging message
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
99901d05f7
ftdi_ft4222.c: Implemented i2c_frequency().
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
33645791af
api: Added mraa_has_sub_platform() function
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
453eefc56a
usb: Added gpio isr support to ft4222
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
001e291d63
mraa-gpio: Added sub-platform support.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
802c5af986
usb: Added gpio read/write support for ft4222 with i/o expander
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
11bf69e29a
i2c.c: Refactored init calls to use mraa_i2c_init_internal()
...
mraa_i2c_init_internal() implenents logic of mraa_i2c_init_raw()
allowing mraa_adv_func_t to be passed in as a parameter
instead of of being global.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
7058fea8bd
mraa.c: Added mainn and sub-platform select API calls.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
99593ec640
usb: USB sub-platform bug fixes.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
13118e949b
api: Added mraa_get_sub_platform_type()
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
30cf8ec560
cmake: Set install prefix to /usr for RPM packaging
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
5740e46ae0
x86: advance_func now stored in mraa_board_t instance
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
d5e5539be3
usb: Updated ft4222 device detection
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
7ada55982d
platform_type: platform_type now in mraa_board_t
...
Now platform_type is no longer global it tracks with board instance
so that platform and sub-platform can report different types.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
6302b635aa
intel_edison: Now uses mraa_board_t instance of advanced function table
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
4a6bf832bc
usb: Converted sub-platform bus/pin helper macros to functions.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
1c9b87bfd3
cmake: add FTDI FT4222 support
...
Existing FTDI D2xx support is just for serial comms library
but FT4222 needs a different library for i2c operation.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Brendan Le Foll
e353508e30
cmake: add -DFTDID2xx and use FindFtd2xx.cmake
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Brendan Le Foll
e170e21031
mraa.c: subplatforms need to be defined after platforms
...
This also means arm subplatforms can work and removes a plat == NULL check
which will never be true if -DUSBPLAT=ON
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
6dfe6ff6bc
examples: Created mraa-i2c tool for i2c layer testing.
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
8f48df0533
usb: Skeleton platform code for FTDI FT4222 USB to i2c bridge
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Brendan Le Foll
22a930e39e
mraa: update to version 0.7.5
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-07 10:58:02 +01:00
Brendan Le Foll
dc6a585991
binding.gyp.cmake: Fix npm builds for ia32 node.js 0.10.x
...
Node.js 0.10.x seems to struggle with the 'or' directive. Fixes #272
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-07 10:54:17 +01:00
Brendan Le Foll
f95f2d8b35
nuc5: Add i2c support for intel 5th generation NUC
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-03 11:23:35 +01:00
Brendan Le Foll
ba348a2da4
mraa: update to version 0.7.4
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-02 16:05:05 +01:00
Brendan Le Foll
cfff6c3c98
uart.c: Fix return value check for tcflush()
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-02 14:39:54 +01:00
Brendan Le Foll
59ab125f7e
gpio.c: fix segfault on isrExit in python because of double Py_DECREF
...
Py_DECREF is not required here as no interpreter is clever enough to handle
this reference causing a double free on isrExit(). Closes #265
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-01 14:56:14 +01:00
Brendan Le Foll
c80883621e
intel_minnow_max.c: add support for uart
...
Closes #266
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-01 10:31:14 +01:00
Brendan Le Foll
e9a7415ee7
internals.md: Add doc to explain pwm internally is all in us
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-27 17:03:39 +01:00
Brendan Le Foll
0256b680f1
intel_de3815.c: Use MRAA_INTEL_DE3815_PINCOUNT macro for pincount
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-26 16:52:41 +01:00
Brendan Le Foll
86d974417c
edison.md: Add warning for gpio 4 on miniboard
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-25 15:02:01 +01:00
Brendan Le Foll
37262fce93
common.hpp: add C++ bindings for i2c bus number functions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-25 11:36:14 +01:00
Brendan Le Foll
2504e36e5f
intel_minnow_max.c: change i2c bus count to 0
...
There are technically two i2c buses that are user accesible on minnowboard max
but the other one is on the high speed expansion header that I've never tested
and it's not mapped in mraa so leave this to 1 until someone enables it.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-25 11:36:14 +01:00
Yong Li
02399b61f9
mraa.c: Add new API to support I2C bus number query
...
Add two new API to get the usable I2C bus count and related I2C adapter number
Signed-off-by: Yong Li <yong.b.li@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-25 11:36:14 +01:00
Brendan Le Foll
af533deffe
cmake: mraa cpack package name does not need major version appended
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-24 18:05:48 +01:00
Andrei Vasiliu
79f1571c32
java/CMakeLists.txt: re-changed install path to a more suitable one
...
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-24 16:46:33 +01:00
Andrei Vasiliu
bfac49e653
java/CMakeLists.txt: changed install path of jar and library for bindings
...
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-24 13:41:52 +01:00
Brendan Le Foll
d547cda05b
cmake: mraa cpack package does not have debian naming anymore
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-24 11:27:29 +01:00
Andrei Vasiliu
cb97f24edd
mraa-gpio.c: Solved issue with getchar() call on Galileo
...
There is a problem with missing symbols __fgetc_unlocked and __stdin in the
libc library build for Galileo. Solved this by replacing the getchar() call
with fscanf().
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-21 11:05:20 +01:00
Brendan Le Foll
9b9a5ab168
intel_minnow_max.c: Fix default i2c bus mechanism
...
Fixes #251 . default_i2c_bus was set to 7 before setting actual parameters for
it leading to obvious failure as 0 != 7
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-20 23:12:39 +01:00
Brendan Le Foll
5d24868582
mraa.c: Fix close/free fail introduced earlier
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-20 19:09:42 +01:00
Brendan Le Foll
0ad753689e
mraa.c: Fix error handing resource leaks in mraa_file_contains_*
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-14 15:36:50 +01:00
Brendan Le Foll
8390c5cfb7
cmake: add option to disable example building
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-14 14:35:39 +01:00
Brendan Le Foll
3f51ebaaf1
i2c.c: add debug syslog message for i2c bus path
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-14 11:18:24 +01:00
Brendan Le Foll
8269340c25
mraa.c: log level syslog messages
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-14 11:15:57 +01:00
Brendan Le Foll
b3768ddb7c
raspberry_pi.c: Fix use of non initialised pincount value
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-13 15:28:31 +01:00
Brendan Le Foll
832d7901d5
beaglebone.c: Fix resource leaks with capepath in error path
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-08-13 15:26:37 +01:00