#ifndef __SR_CONFIG_H_
#define __SR_CONFIG_H_

//#define   SR_USE_OS    //若使用RTOS，则使能该宏；裸机环境不使能该宏

/* 调试配置 */
//#define SR_USE_ASSERT          /*!< 是否使用ASSERT断言 */

#define SR_USE_SHELL           /*!< 是否启动SHELL命令行工具 */
#define SR_USE_LOG             /*!< 是否启动LOG */
#define SR_LOG_LEVEL_DEFAULT   DEBUG
#define SR_LOG_COMPILE_LEVEL   (7) 

#ifdef  SR_USE_LOG
#define SR_LOG_UART_ID             SR_UART2    /*!< LOG串口ID */
#define SR_LOG_UART_RBUF_LEN       512         /*!< LOG串口内部接收缓存长度 */
#define SR_LOG_UART_TBUF_LEN       512         /*!< LOG串口内部发送缓存长度 */

#endif



/* 组件配置 */
//注：led具体引脚绑定在board_config.h中
//#define  SR_USE_LED   

//注：key具体引脚绑定在board_config.h中
#define  SR_USE_KEY
#define  SR_KEY_SCAN_PERIOD    10  // 扫描周期10ms



//FAL
/*	part name,	 flash name,	  offset,	  size*/
#define SR_FAL_PART_DEF    {  \
    { "devParam",    "w25x",    0x00000000,    0x0002E000}, \
    { "otaParam",    "w25x",    0x0002E000,    0x00001000}, \
    { "otaFW",       "w25x",    0x0002F000,    32*1024}, \
}



/* HAL&BSP配置 */

#define SR_USE_GPIO

#define SR_USE_UART1
#define SR_USE_UART2
#define SR_USE_UART4

#define SR_USE_LUART0

#define SR_USE_RCC


/* 其它 */
#define PROJECT_ULTRASOUND

#endif

