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);