chardev: split up helper functions in gpio_chardev
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>
This commit is contained in:
@@ -50,6 +50,17 @@
|
||||
if (res != MRAA_SUCCESS) \
|
||||
return res;} while(0)
|
||||
|
||||
/**
|
||||
* Simple deprecated macro
|
||||
*/
|
||||
#ifdef __GNUC__
|
||||
#define DEPRECATED __attribute__((deprecated))
|
||||
#elif defined(_MSC_VER)
|
||||
#define DEPRECATED __declspec(deprecated)
|
||||
#else
|
||||
#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
|
||||
#define DEPRECATED
|
||||
#endif
|
||||
|
||||
/** @file
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user