Private
Public Access
2
0

maa: change the linking of maa and make gpio functions match maa_ spec

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-04-27 23:11:31 +01:00
parent a28d538321
commit ed0a1f6085
14 changed files with 79 additions and 57 deletions

View File

@@ -24,10 +24,21 @@
#pragma once
#include "i2c.h"
#include "gpio.h"
#include "pwm.h"
#define MAA_LIBRARY_VERSION 1
int maa_get_version();
typedef enum {
MAA_SUCCESS = 0,
MAA_ERROR_FEATURE_NOT_IMPLEMENTED = 1,
MAA_ERROR_FEATURE_NOT_SUPPORTED = 2,
MAA_ERROR_INVALID_VERBOSITY_LEVEL = 3,
MAA_ERROR_INVALID_PARAMETER = 4,
MAA_ERROR_INVALID_HANDLE = 5,
MAA_ERROR_NO_RESOURCES = 6,
MAA_ERROR_INVALID_RESOURCE = 7,
MAA_ERROR_INVALID_QUEUE_TYPE = 8,
MAA_ERROR_NO_DATA_AVAILABLE = 9,
MAA_ERROR_UNSPECIFIED = 99
} maa_result_t;
maa_result_t maa_get_version();