Senior Design: Sound Monitor / OneHopeOnePrayer

Dependencies:   STM32L4xx_HAL_Driver CMSIS_DSP_401

Revision:
1:1ae4b642c533
Parent:
0:d4e5ad7ad71c
--- a/Main.c	Mon Nov 23 19:37:13 2015 +0000
+++ b/Main.c	Wed Nov 25 17:31:28 2015 +0000
@@ -1,6 +1,6 @@
 #include "main.h"
 
-
+int32_t delay=0;
 uint32_t AppStatus = 0x00;
 FlagStatus AppLaunched = RESET;
 uint8_t DemoIndex = 0;
@@ -409,44 +409,10 @@
     case DEMO_STATE_AUDIO_RECORD:
         switch(GPIO_Pin)
         {
-          case DOWN_JOY_PIN :
-            /* DOWN is used to decrease the audio record sample rate */
-            if (AudioRecordSampleRateChange == 0)
-            {
-              if (SampleRateIndex == 6)
-              {
-                SampleRateIndex = 0;
-              }
-              else
-              {
-                SampleRateIndex++;
-              }
-              AudioRecordSampleRateChange = 1;
-            }
-            break;
-          case UP_JOY_PIN :
-            /* UP is used to increase the audio record sample rate */
-            if (AudioRecordSampleRateChange == 0)
-            {
-              if (SampleRateIndex == 0)
-              {
-                SampleRateIndex = 6;
-              }
-              else
-              {
-                SampleRateIndex--;
-              }
-              AudioRecordSampleRateChange = 1;
-            }
-            break;
           case RIGHT_JOY_PIN :
             /* SEL is used to confirm audio record sample rate and start audio recording */
             AudioRecordSampleRateSelected = 1;
             break;
-          case LEFT_JOY_PIN :
-            /* Set AudioRecordExit flag */
-            AudioRecordExit = 1;
-            break;
         }
       break;
     }