Alex Tereschenko
b73fdff00d
examples: be more defensive and replace strcmp() with strncmp()
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
2017-05-17 19:45:05 +02:00
Alex Tereschenko
9545a2e320
stability: replace strcpy with strncpy to avoid potential overflows
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
2017-05-15 21:04:18 +02:00
Brendan Le Foll
6c85b61daa
mraa: Fix compiler warnings unused vars and useless statements
...
Should have 0 functionality effect, just cleans up a few things. Fixes #577
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-09-13 11:20:41 +01:00
Brendan Le Foll
6c9aeb9b9e
mraa-i2c: stop switching on every platform type and assume linux
...
This patch makes mraa-i2c give sensible bus numbers
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-07-12 12:09:37 +01:00
Dan O'Donovan
f9501c5c78
up: add support for UP Board
...
Add support for UP board (www.up-board.org), scoping
the following functions available via 40-pin header:
* GPIO (via sysfs)
* UART
* I2C
* SPI
* PWM
Validated on UP board v0.2, running ubilinux 3.0
Signed-off-by: Dan O'Donovan <dan@emutex.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-24 15:10:20 +00:00
Henry Bruce
839bdb9011
mraa-i2c: Added "repeated read" command for stress testing
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
2016-02-12 11:25:38 +00:00
Henry Bruce
a708e08101
examples/mraa-i2c: Fixed physical bus id error in list command
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-06 10:38:51 +00:00
Brendan Le Foll
99b7f131d9
mraa-i2c.c: remove unused arguments to printf statements
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 15:09:28 +01:00
Henry Bruce
2101e491ce
mraa-i2c: Updated to use new sub-platform API.
...
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:04 +01:00
Henry Bruce
b109a12dd1
mraa-i2c: Added interactive mode.
...
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:04 +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
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
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