chenlh
2025-11-13 123d3197c6d91a64931cb19dc669736b6ae5a35c
inc/config.h
@@ -1,13 +1,18 @@
#ifndef CORE_CONFIG_H_
#define CORE_CONFIG_H_
//#ifndef CORE_CONFIG_H_
//#define CORE_CONFIG_H_
#pragma once
#include "../drv/board.h"
//全局宏定义.
#define MP_OFFSET  0x28000000
#define SPI_BUFFER_SIZE (1024)
#define SAMPLE_RATE 48000
//#define SAMPLE_RATE 48000
//process block sample size.
extern unsigned int SAMPLE_NUM;
//extern unsigned int SAMPLE_RATE;
//extern unsigned int SAMPLE_NUM;
//f2f.c use physical input & output
#define PHY_INPUT_NUM 64
@@ -15,6 +20,14 @@
#define LEVEL_REPORT_TIME(x) \
      (x*SAMPLE_RATE/(1000*SAMPLE_NUM))
//#define DEBUG
#ifdef DEBUG
#define dbg_printf printf
#else
#define dbg_printf
#endif
//#endif