Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one rtc device is allowed #30

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading