maa: hide and rename internal maa functions
Based on feedback received. All check functions renamed to setup. Update all modules to use new name and header. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
37
api/maa.h
37
api/maa.h
@@ -184,43 +184,6 @@ maa_result_t maa_init() __attribute__((constructor));
|
||||
maa_result_t maa_init();
|
||||
#endif
|
||||
|
||||
/** Check GPIO
|
||||
*
|
||||
* Will check input is valid for gpio and will also setup required multiplexers.
|
||||
* @param pin the pin as read from the board surface. i.e IO3 would be 3/
|
||||
* @return the pin as found in the pinmap
|
||||
*/
|
||||
unsigned int maa_check_gpio(int pin);
|
||||
|
||||
/** Check AIO
|
||||
*
|
||||
* Will check input is valid for aio and will also setup required multiplexers.
|
||||
* @param pin the pin as read from the board surface. i.e A3 would be 3/
|
||||
* @return the pin as found in the pinmap
|
||||
*/
|
||||
unsigned int maa_check_aio(int pin);
|
||||
|
||||
/** Check i2c interface, sets up multiplexer on device.
|
||||
*
|
||||
* @return unsigned int if using /dev/i2c-2 returned would be 2
|
||||
*/
|
||||
unsigned int maa_check_i2c();
|
||||
|
||||
/** Check spi interface, sets up multiplexer on device.
|
||||
*
|
||||
* @return spi bus type
|
||||
*/
|
||||
maa_spi_bus_t* maa_check_spi(int bus);
|
||||
|
||||
/** 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
|
||||
|
||||
Reference in New Issue
Block a user