Skip to content

Commit

Permalink
Only one rtc device is allowed and update sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
kurisaW authored and Rbb666 committed Dec 20, 2024
1 parent 5f37d86 commit c6622a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion projects/etherkit_basic_rtc/.config
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ CONFIG_RT_SERIAL_USING_DMA=y
# CONFIG_RT_USING_PM is not set
CONFIG_RT_USING_RTC=y
CONFIG_RT_USING_ALARM=y
CONFIG_RT_USING_SOFT_RTC=y
# CONFIG_RT_USING_SOFT_RTC is not set
# CONFIG_RT_USING_SDIO is not set
# CONFIG_RT_USING_SPI is not set
# CONFIG_RT_USING_WDT is not set
Expand Down
1 change: 0 additions & 1 deletion projects/etherkit_basic_rtc/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
#define RT_SERIAL_USING_DMA
#define RT_USING_RTC
#define RT_USING_ALARM
#define RT_USING_SOFT_RTC
#define RT_USING_PIN

/* Using USB */
Expand Down
4 changes: 1 addition & 3 deletions rt-thread/components/drivers/rtc/soft_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ static int rt_soft_rtc_init(void)

rt_device_register(&soft_rtc_dev, "rtc", RT_DEVICE_FLAG_RDWR);

source_device = &soft_rtc_dev;

init_ok = RT_TRUE;

return 0;
Expand Down Expand Up @@ -322,7 +320,7 @@ static void cmd_rtc_sync(int argc, char **argv)
rt_kprintf("local time: %.*s", 25, ctime(&now));
rt_kprintf("timestamps: %ld\n", (long)tv.tv_sec);
}
MSH_CMD_EXPORT_ALIAS(cmd_rtc_sync, rtc_sync, Update time by soft rtc);
MSH_CMD_EXPORT_ALIAS(cmd_rtc_sync, rtc_sync, Update time by rtc);
#endif

#endif /* RT_USING_SYSTEM_WORKQUEUE */
Expand Down
4 changes: 2 additions & 2 deletions sdk-bsp-rzn2l-etherkit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ board:
sale_contact_global: https://www.rt-thread.org/
small_image: docs/figures/small.png
vendor: Renesas
version: 1.1.0
version: 1.1.1
chip:
chip_name: R9A07G084
clock_source: HSE
Expand Down Expand Up @@ -78,7 +78,7 @@ features_zh:
- 电压:核心 1.1V,I/O 3.3V,1.8V
pkg_type: Board_Support_Packages
pkg_vendor: RealThread
pkg_version: 1.1.0
pkg_version: 1.1.1
example_projects:
- project_name: etherkit_blink_led
project_description: LED闪烁示例
Expand Down

0 comments on commit c6622a8

Please sign in to comment.