Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
wb committed Apr 3, 2024
1 parent d7d4bab commit 08ee280
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions demos/WB32/RT-WB32F3G71-RTC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
2 changes: 1 addition & 1 deletion demos/WB32/RT-WB32F3G71-RTC/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int main(void) {
while (true){
chThdSleepSeconds(2);
rtcGetTime(&RTCD1, &timespec);
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);
Expand Down

0 comments on commit 08ee280

Please sign in to comment.