diff options
Diffstat (limited to 'peripheral/libmraa/api/mraa/common.h')
-rw-r--r-- | peripheral/libmraa/api/mraa/common.h | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/peripheral/libmraa/api/mraa/common.h b/peripheral/libmraa/api/mraa/common.h index c0467ba..0357f0c 100644 --- a/peripheral/libmraa/api/mraa/common.h +++ b/peripheral/libmraa/api/mraa/common.h @@ -64,7 +64,9 @@ typedef unsigned int mraa_boolean_t; * * Detects running platform and attempts to use included pinmap, this is run on * module/library init/load but is handy to rerun to check board initialised - * correctly. MRAA_SUCCESS inidicates correct initialisation. + * correctly. MRAA_SUCCESS inidicates correct (first time) initialisation + * whilst MRAA_ERROR_PLATFORM_ALREADY_INITIALISED indicates the board is + * already initialised correctly * * @return Result of operation */ @@ -159,7 +161,7 @@ const char* mraa_get_platform_version(int platform_offset); * @param priority Value from typically 0 to 99 * @return The priority value set */ -int mraa_set_priority(const int priority); +int mraa_set_priority(const unsigned int priority); /** Get the version string of mraa autogenerated from git tag * @@ -214,7 +216,7 @@ int mraa_get_i2c_bus_count(); * @param i2c_bus the logical I2C bus number * @return I2C adapter number in sysfs. Function will return -1 on failure */ -int mraa_get_i2c_bus_id(int i2c_bus); +int mraa_get_i2c_bus_id(unsigned int i2c_bus); /** * Get specified platform pincount, board must be initialised. @@ -274,37 +276,7 @@ int mraa_get_sub_platform_id(int pin_or_bus_index); */ int mraa_get_sub_platform_index(int pin_or_bus_id); -/** - * Add mraa subplatform - * - * @param subplatform type - * @param uart device subplatform is on - * - * @return mraa_result_t indicating success - */ -mraa_result_t mraa_add_subplatform(mraa_platform_t subplatformtype, const char* uart_dev); -/** - * Remove a mraa subplatform - * - * @param subplatform type - * - * @return mraa_result indicating success - */ -mraa_result_t mraa_remove_subplatform(mraa_platform_t subplatformtype); - -/** - * Create IO using a description in the format: - * [io]-[pin] - * [io]-[raw]-[pin] - * [io]-[raw]-[id]-[pin] - * [io]-[raw]-[path] - * - * @param IO description - * - * @return void* to IO context or NULL - */ -void* mraa_init_io(const char* desc); #ifdef __cplusplus } |