2023-11-11 02:07:22 +08:00
|
|
|
/*
|
|
|
|
|
* @copyright (c) 2023, MR Development Team
|
|
|
|
|
*
|
|
|
|
|
* @license SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*
|
|
|
|
|
* @date 2023-10-18 MacRsh First version
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _MR_CONFIG_H_
|
|
|
|
|
#define _MR_CONFIG_H_
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
2023-11-25 00:34:07 +08:00
|
|
|
#define MR_CFG_NAME_MAX (10)
|
|
|
|
|
#define MR_CFG_DESC_MAX (32)
|
2023-11-11 02:07:22 +08:00
|
|
|
|
|
|
|
|
#define MR_USING_RDWR_CTRL
|
|
|
|
|
#define MR_USING_ADC
|
|
|
|
|
#define MR_USING_DAC
|
2023-11-25 00:34:07 +08:00
|
|
|
#define MR_USING_PIN
|
2023-11-11 02:07:22 +08:00
|
|
|
#define MR_USING_I2C
|
2023-11-12 00:33:40 +08:00
|
|
|
#define MR_USING_SPI
|
2023-11-25 00:34:07 +08:00
|
|
|
#define MR_USING_SERIAL
|
|
|
|
|
#define MR_USING_TIMER
|
|
|
|
|
#define MR_USING_CAN
|
2023-11-11 02:07:22 +08:00
|
|
|
|
2023-11-25 00:34:07 +08:00
|
|
|
#define MR_CFG_HEAP_SIZE (4 * 1024)
|
2023-11-11 02:07:22 +08:00
|
|
|
#define MR_CFG_CONSOLE_NAME "uart1"
|
2023-11-25 00:34:07 +08:00
|
|
|
#define MR_CFG_SERIAL_RD_BUFSZ (32)
|
|
|
|
|
#define MR_CFG_SERIAL_WR_BUFSZ (0)
|
|
|
|
|
#define MR_CFG_SPI_RD_BUFSZ (32)
|
|
|
|
|
#define MR_CFG_I2C_RD_BUFSZ (32)
|
2023-11-11 02:07:22 +08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
#endif /* _MR_CONFIG_H_ */
|