mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
speaker: fix some incorrect comments/documentation
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
cdb75e8c13
commit
2e97aa9979
@ -84,6 +84,7 @@ static speaker_context _common_init()
|
|||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialization in GPIO mode
|
||||||
speaker_context speaker_init(int pin)
|
speaker_context speaker_init(int pin)
|
||||||
{
|
{
|
||||||
speaker_context dev = NULL;
|
speaker_context dev = NULL;
|
||||||
@ -109,7 +110,7 @@ speaker_context speaker_init(int pin)
|
|||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialization of PWM uasage
|
// initialization in PWM mode
|
||||||
speaker_context speaker_init_pwm(int pin)
|
speaker_context speaker_init_pwm(int pin)
|
||||||
{
|
{
|
||||||
speaker_context dev = NULL;
|
speaker_context dev = NULL;
|
||||||
|
@ -130,7 +130,6 @@ namespace upm {
|
|||||||
* with setFrequency() or emit(). This function only operates
|
* with setFrequency() or emit(). This function only operates
|
||||||
* when in PWM mode.
|
* when in PWM mode.
|
||||||
*
|
*
|
||||||
* @param dev Device context
|
|
||||||
*/
|
*/
|
||||||
void on();
|
void on();
|
||||||
|
|
||||||
@ -138,7 +137,6 @@ namespace upm {
|
|||||||
* Turn the speaker off. This function only operates when in
|
* Turn the speaker off. This function only operates when in
|
||||||
* PWM mode.
|
* PWM mode.
|
||||||
*
|
*
|
||||||
* @param dev Device context
|
|
||||||
*/
|
*/
|
||||||
void off();
|
void off();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user