From 6a5010dc55602cc8fee5b343cd69ea6b327ca838 Mon Sep 17 00:00:00 2001 From: Rob Riggs Date: Sun, 23 Jan 2022 15:08:45 -0600 Subject: [PATCH] Make the adcInputQueue size match the number of buffers allocated in AudioInput.hpp (8). --- Nucleo_L432KC_TNC.ioc | 2 +- Src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nucleo_L432KC_TNC.ioc b/Nucleo_L432KC_TNC.ioc index c23e191..bf57068 100644 --- a/Nucleo_L432KC_TNC.ioc +++ b/Nucleo_L432KC_TNC.ioc @@ -1,6 +1,6 @@ #MicroXplorer Configuration settings - do not modify VP_RCC_LSE.Signal=RCC_LSE -FREERTOS.Queues01=ioEventQueue,16,uint32_t,0,Static,ioEventQueueBuffer,ioEventQueueControlBlock;serialInputQueue,16,uint32_t,0,Static,serialInputQueueBuffer,serialInputQueueControlBlock;serialOutputQueue,16,uint32_t,0,Static,serialOutputQueueBuffer,serialOutputQueueControlBlock;audioInputQueue,8,uint32_t,0,Static,audioInputQueueBuffer,audioInputQueueControlBlock;hdlcInputQueue,3,uint32_t,0,Static,hdlcInputQueueBuffer,hdlcInputQueueControlBlock;hdlcOutputQueue,3,uint32_t,0,Static,hdlcOutputQueueBuffer,hdlcOutputQueueControlBlock;dacOutputQueue,128,uint8_t,0,Static,dacOutputQueueBuffer,dacOutputQueueControlBlock;adcInputQueue,3,uint32_t,0,Static,adcInputQueueBuffer,adcInputQueueControlBlock +FREERTOS.Queues01=ioEventQueue,16,uint32_t,0,Static,ioEventQueueBuffer,ioEventQueueControlBlock;serialInputQueue,16,uint32_t,0,Static,serialInputQueueBuffer,serialInputQueueControlBlock;serialOutputQueue,16,uint32_t,0,Static,serialOutputQueueBuffer,serialOutputQueueControlBlock;audioInputQueue,8,uint32_t,0,Static,audioInputQueueBuffer,audioInputQueueControlBlock;hdlcInputQueue,3,uint32_t,0,Static,hdlcInputQueueBuffer,hdlcInputQueueControlBlock;hdlcOutputQueue,3,uint32_t,0,Static,hdlcOutputQueueBuffer,hdlcOutputQueueControlBlock;dacOutputQueue,128,uint8_t,0,Static,dacOutputQueueBuffer,dacOutputQueueControlBlock;adcInputQueue,8,uint32_t,0,Static,adcInputQueueBuffer,adcInputQueueControlBlock VP_RCC_LSE.Mode=CRS SYNC Source LSE PA15\ (JTDI).GPIOParameters=GPIO_Label RCC.USART1Freq_Value=48000000 diff --git a/Src/main.c b/Src/main.c index 70815fa..a4a2c16 100644 --- a/Src/main.c +++ b/Src/main.c @@ -120,7 +120,7 @@ osMessageQId dacOutputQueueHandle; uint8_t dacOutputQueueBuffer[ 128 * sizeof( uint8_t ) ]; osStaticMessageQDef_t dacOutputQueueControlBlock; osMessageQId adcInputQueueHandle; -uint8_t adcInputQueueBuffer[ 3 * sizeof( uint32_t ) ]; +uint8_t adcInputQueueBuffer[ 8 * sizeof( uint32_t ) ]; osStaticMessageQDef_t adcInputQueueControlBlock; /* USER CODE BEGIN PV */