Implemented beeps on MD-UV3x0 platform driver.
This commit is contained in:
parent
32fd910e64
commit
0298aa897b
|
|
@ -545,6 +545,7 @@ void vp_beep(uint16_t freq, uint16_t duration)
|
|||
duration=2000;
|
||||
|
||||
currentBeepDuration=duration;
|
||||
audio_enableAmp();
|
||||
|
||||
platform_beepStart(freq);
|
||||
// See BeepTick for termination.
|
||||
|
|
|
|||
|
|
@ -184,13 +184,12 @@ void platform_ledOff(led_t led)
|
|||
|
||||
void platform_beepStart(uint16_t freq)
|
||||
{
|
||||
/* TODO */
|
||||
(void) freq;
|
||||
toneGen_beepOn((float)freq, 255, 0);
|
||||
}
|
||||
|
||||
void platform_beepStop()
|
||||
{
|
||||
/* TODO */
|
||||
toneGen_beepOff();
|
||||
}
|
||||
|
||||
const void *platform_getCalibrationData()
|
||||
|
|
|
|||
Loading…
Reference in New Issue