From 15e29ee7aa638729376e5a9de6ccbdbb6414717c Mon Sep 17 00:00:00 2001 From: MacRsh Date: Fri, 8 Dec 2023 21:33:18 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8Dmr=5Fprintf=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kconfig | 4 ++-- document/device/timer.md | 2 +- source/service.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Kconfig b/Kconfig index 81b71e8..bdb53d9 100644 --- a/Kconfig +++ b/Kconfig @@ -56,10 +56,10 @@ menu "Device configure" "Enable or disable non-blocking read/write for the console device." endmenu - config MR_USING_PRINTF_BUFSZ + config MR_CFG_PRINTF_BUFSZ int "Size of printf buffer" default 128 - range 16 2147483647 + range 32 2147483647 help "This option sets the size of the buffer used for printf operations." diff --git a/document/device/timer.md b/document/device/timer.md index 58f1740..622787f 100644 --- a/document/device/timer.md +++ b/document/device/timer.md @@ -167,7 +167,7 @@ int timer_init(void) /* 打印TIMER描述符 */ mr_printf("TIMER desc: %d\r\n", timer_ds); /* 设置超时回调函数 */ - mr_dev_ioctl(led_ds, MR_CTL_TIMER_SET_TIMEOUT_CALL, timeout_call); + mr_dev_ioctl(timer_ds, MR_CTL_TIMER_SET_TIMEOUT_CALL, timeout_call); /* 设置定时时间 */ uint32_t timeout = TIMEOUT; int ret = mr_dev_write(timer_ds, &timeout, sizeof(timeout)); diff --git a/source/service.c b/source/service.c index fbc9d3a..920a1c3 100644 --- a/source/service.c +++ b/source/service.c @@ -375,10 +375,10 @@ MR_WEAK int mr_printf_output(const char *buf, size_t size) */ int mr_printf(const char *fmt, ...) { -#ifndef MR_USING_PRINTF_BUFSZ +#ifndef MR_CFG_PRINTF_BUFSZ #define MR_USING_PRINTF_BUFSZ (128) -#endif /* MR_USING_PRINTF_BUFSZ */ - char buf[MR_USING_PRINTF_BUFSZ] = {0}; +#endif /* MR_CFG_PRINTF_BUFSZ */ + char buf[MR_CFG_PRINTF_BUFSZ] = {0}; va_list args; va_start(args, fmt);