Private
Public Access
2
0

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:
Thomas Ingleby
2014-05-06 15:01:44 +01:00
parent 5aa5aec661
commit 171f66208e
3 changed files with 54 additions and 6 deletions

View File

@@ -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