Thomas Ingleby
170bdd104f
spdx: add spdx tags to most files
...
Large change that removes the duplicated MIT notice withe a spdx tag
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2019-05-23 10:09:12 -07:00
Cosmin Popescu
41fc378099
initio.c: Fix for null pointer passed as parameter
...
Signed-off-by: Cosmin Popescu <gabrielcosmin.popescu@gmail.com >
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2019-03-06 12:13:01 -08:00
Adelin Dobre
1278089e84
initio.c: Add fix for potential leak memory
...
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com >
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2019-03-06 12:11:50 -08:00
Adelin Dobre
ba201fcad2
initio.c: Add fix for passing null as parameter
...
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com >
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2019-03-06 12:11:42 -08:00
Adelin Dobre
8ded6f1f6d
initio.c: Add fix for passing null pointer as argument
...
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com >
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2019-03-06 12:11:33 -08:00
Adelin Dobre
d0c884e67d
initio.c: Fix parse issue inside mraa_io_init
...
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com >
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2019-02-21 09:53:54 -08:00
Noel Eck
9a44283a93
initio.c: Clean up memory from a failed init
...
Delete allocated space if the string init fails.
Signed-off-by: Noel Eck <noel.eck@intel.com >
2018-07-23 22:00:27 -07:00
Noel Eck
b3c1c5ac3c
initio.c: Re-applied clang-format for source
...
Ran clang-format to conform to mraa's coding guide.
Signed-off-by: Noel Eck <noel.eck@intel.com >
2018-07-23 21:51:58 -07:00
Noel Eck
e772aec69d
initio: Handle no-conversion case in mraa_atoi_x
...
If strtol fails to process any characters, return a failure.
Added protocol chunk string to each parse_xxx method for completeness
when printing to syslog.
Added more tests - passing and failing cases.
Signed-off-by: Noel Eck <noel.eck@intel.com >
2018-07-23 21:40:45 -07:00
Noel Eck
6fe510a27f
Peripheralman: Remove IIO from ioinit for android
...
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-23 21:40:45 -07:00
Mihai Stefanescu
ae391fe9fe
String based IO initialization for MRAA
...
Signed-off-by: Mihai Stefanescu <mihai.stefanescu@rinftech.com >
Signed-off-by: Noel Eck <noel.eck@intel.com >
2018-07-23 21:40:12 -07:00