Skip to content

Commit

Permalink
- PDM 마이크 주파수 변경 1.028Mhz -> 1.536Mhz
Browse files Browse the repository at this point in the history
- 로그 버퍼 증가
  • Loading branch information
chcbaram committed Aug 25, 2023
1 parent fe19505 commit 9cb6f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion firmware/stm32h7-gfx-fw/src/hw/driver/pdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ typedef struct

#define PDM_SAMPLERATE_HZ 16000
#define PDM_BUF_MS (PDM_FILTER_MS)
#define PDM_DECIMATION (64)
#define PDM_DECIMATION (96)
#define PDM_GET_MS_TO_LEN(x) ((PDM_SAMPLERATE_HZ * (PDM_DECIMATION/8) * (x)) / 1000)
#define PDM_BUF_FRAME_LEN PDM_GET_MS_TO_LEN(PDM_BUF_MS) // 16Khz, 2 mics, 10ms
#define PDM_BUF_LEN (PDM_BUF_FRAME_LEN * 2)
Expand Down
6 changes: 3 additions & 3 deletions firmware/stm32h7-gfx-fw/src/hw/hw_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "bsp.h"


#define _DEF_FIRMWATRE_VERSION "V230811R1"
#define _DEF_FIRMWATRE_VERSION "V230825R1"
#define _DEF_BOARD_NAME "STM32H7-GFX-FW"


Expand Down Expand Up @@ -44,8 +44,8 @@

#define _USE_HW_LOG
#define HW_LOG_CH _DEF_UART1
#define HW_LOG_BOOT_BUF_MAX 1024
#define HW_LOG_LIST_BUF_MAX 1024
#define HW_LOG_BOOT_BUF_MAX 2048
#define HW_LOG_LIST_BUF_MAX 4096

#define _USE_HW_GPIO
#define HW_GPIO_MAX_CH 8
Expand Down

0 comments on commit 9cb6f2f

Please sign in to comment.