From 08ee2808e24e7620b01c823f62b2eac01fb8f4c7 Mon Sep 17 00:00:00 2001 From: wb Date: Wed, 3 Apr 2024 10:40:12 +0800 Subject: [PATCH] Update --- demos/WB32/RT-WB32F3G71-RTC/Makefile | 5 +++-- demos/WB32/RT-WB32F3G71-RTC/main.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/demos/WB32/RT-WB32F3G71-RTC/Makefile b/demos/WB32/RT-WB32F3G71-RTC/Makefile index e23442dd31..92711c3f92 100644 --- a/demos/WB32/RT-WB32F3G71-RTC/Makefile +++ b/demos/WB32/RT-WB32F3G71-RTC/Makefile @@ -126,13 +126,14 @@ LDSCRIPT= $(STARTUPLD_CONTRIB)/WB32F3G71xC.ld CSRC = $(ALLCSRC) \ $(TESTSRC) \ $(CHIBIOS)/os/various/syscalls.c \ - $(CHIBIOS)/os/common/lib/src/chprintf.c \ + $(CHIBIOS)/os/hal/lib/streams/chprintf.c \ debug.c \ main.c ALLINC += ./ \ $(CHIBIOS)/os/common/lib/include \ - $(CHIBIOS)/os/common/oop/include + $(CHIBIOS)/os/common/oop/include \ + $(CHIBIOS)/os/hal/lib/streams diff --git a/demos/WB32/RT-WB32F3G71-RTC/main.c b/demos/WB32/RT-WB32F3G71-RTC/main.c index 44d63e6c2b..534b0f94c2 100644 --- a/demos/WB32/RT-WB32F3G71-RTC/main.c +++ b/demos/WB32/RT-WB32F3G71-RTC/main.c @@ -121,7 +121,7 @@ int main(void) { while (true){ chThdSleepSeconds(2); rtcGetTime(&RTCD1, ×pec); - chprintf((sequential_stream_i *)&SERIAL_DEBUG_DRIVER, + chprintf((BaseSequentialStream *)&SERIAL_DEBUG_DRIVER, "lsi sleep %ds year = %d month = %d dstflag=%d dayofweek = %d day = %d millisecond = %d\r\n", RTC_ALARMPERIOD, timespec.year, timespec.month, timespec.dstflag, timespec.dayofweek, timespec.day, timespec.millisecond); chThdSleepSeconds(3);