Private
Public Access
2
0

Merge branch 'master' of github.com:tingleby/maa into tingleby-master

This commit is contained in:
Brendan Le Foll
2014-05-07 14:49:53 +01:00
4 changed files with 117 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ typedef enum {
MAA_ERROR_NO_DATA_AVAILABLE = 9, /**< No data available */
MAA_ERROR_INVALID_PLATFORM = 10, /**< Platform not recognised */
MAA_ERROR_PLATFORM_NOT_INITIALISED = 11, /**< Board information not initialised */
MAA_ERROR_PLATFORM_ALREADY_INITIALISED = 12, /**< Board is already initialised
MAA_ERROR_PLATFORM_ALREADY_INITIALISED = 12, /**< Board is already initialised */
MAA_ERROR_UNSPECIFIED = 99 /**< Unknown Error */
} maa_result_t;
@@ -185,6 +185,15 @@ unsigned int maa_check_aio(int pin);
*/
unsigned int maa_check_i2c();
/** Check PWM
*
* Will check input is valid for pwm and will also setup required multiplexers.
* IF the pin also does gpio (strong chance), DO NOTHING, REV D is strange.
* @param pin the pin as read from the board surface.
* @return the pwm pin_info_t of that IO pin
*/
maa_pin_t* maa_check_pwm(int pin);
/** Get the version string of maa autogenerated from git tag
*
* The version returned may not be what is expected however it is a reliable
@@ -193,6 +202,12 @@ unsigned int maa_check_i2c();
*/
const char* maa_get_version();
/** Print a textual representation of the maa_result_t
*
* @param result the result to print,
*/
void maa_result_print(maa_result_t result);
#ifdef __cplusplus
}
#endif