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;
|
duration=2000;
|
||||||
|
|
||||||
currentBeepDuration=duration;
|
currentBeepDuration=duration;
|
||||||
|
audio_enableAmp();
|
||||||
|
|
||||||
platform_beepStart(freq);
|
platform_beepStart(freq);
|
||||||
// See BeepTick for termination.
|
// See BeepTick for termination.
|
||||||
|
|
|
||||||
|
|
@ -184,13 +184,12 @@ void platform_ledOff(led_t led)
|
||||||
|
|
||||||
void platform_beepStart(uint16_t freq)
|
void platform_beepStart(uint16_t freq)
|
||||||
{
|
{
|
||||||
/* TODO */
|
toneGen_beepOn((float)freq, 255, 0);
|
||||||
(void) freq;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void platform_beepStop()
|
void platform_beepStop()
|
||||||
{
|
{
|
||||||
/* TODO */
|
toneGen_beepOff();
|
||||||
}
|
}
|
||||||
|
|
||||||
const void *platform_getCalibrationData()
|
const void *platform_getCalibrationData()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue