pwm: Use pinmap functions for setting up pwm.
* Intended function of check_pwm also checks for conflicting gpio, due * to quirk on galileo rev d, functionality commented. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user