Skip to content

Commit b2816c2

Browse files
committed
fw/apps/prf: add microphone test application
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent 58ae3c3 commit b2816c2

4 files changed

Lines changed: 457 additions & 1 deletion

File tree

src/fw/apps/prf_apps/mfg_menu_app.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "apps/prf_apps/mfg_certification_app.h"
2828
#include "apps/prf_apps/mfg_display_app.h"
2929
#include "apps/prf_apps/mfg_hrm_app.h"
30+
#include "apps/prf_apps/mfg_mic_app.h"
3031
#include "apps/prf_apps/mfg_program_color_app.h"
3132
#include "apps/prf_apps/mfg_runin_app.h"
3233
#include "apps/prf_apps/mfg_speaker_app.h"
@@ -108,6 +109,10 @@ static void prv_select_als(int index, void *context) {
108109
static void prv_select_speaker(int index, void *context) {
109110
launcher_task_add_callback(prv_launch_app_cb, (void*) mfg_speaker_app_get_info());
110111
}
112+
113+
static void prv_select_mic(int index, void *context) {
114+
launcher_task_add_callback(prv_launch_app_cb, (void*) mfg_mic_app_get_info());
115+
}
111116
#endif
112117

113118
#if !PLATFORM_SILK && !PLATFORM_ASTERIX
@@ -217,6 +222,7 @@ static size_t prv_create_menu_items(SimpleMenuItem** out_menu_items) {
217222
#endif
218223
#if PLATFORM_ASTERIX
219224
{ .title = "Test Speaker", .callback = prv_select_speaker },
225+
{ .title = "Test Microphone", .callback = prv_select_mic },
220226
#endif
221227
{ .title = "Certification", .callback = prv_select_certification },
222228
{ .title = "Program Color", .callback = prv_select_program_color },

0 commit comments

Comments
 (0)