Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
#endif
/**
+ * De-Initilise MRAA
+ *
+ * This is not a strict requirement but useful to test memory leaks and for
+ * people who like super clean code.
+ */
+void mraa_deinit();
+
+/**
* Checks if a pin is able to use the passed in mode.
*
* @param pin Physical Pin to be checked.
main(int argc, char **argv)
{
fprintf(stdout, "hello mraa\n Version: %s\n", mraa_get_version());
+ mraa_deinit();
return 0;
}
//! [Interesting]
return MRAA_SUCCESS;
}
+void
+mraa_deinit()
+{
+ free(plat->pins);
+ free(plat);
+}
+
int
mraa_set_priority(const unsigned int priority)
{