欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 健康 > 养生 > 13.100ASK_T113-PRO RTC实验

13.100ASK_T113-PRO RTC实验

2025/2/24 12:56:30 来源:https://blog.csdn.net/weixin_43756274/article/details/143824742  浏览:    关键词:13.100ASK_T113-PRO RTC实验

这个实验太简单了,驱动已经在内核中做好了,不需要做什么.

测试:

# ls /dev/
block            random           tty23            tty51
bus              rfkill           tty24            tty52
cedar_dev        root             tty25            tty53
char             rtc              tty26            tty54
console          rtc0             tty27            tty55
cpu_dma_latency  shm              tty28            tty56
disk             snd              tty29            tty57
disp             stderr           tty3             tty58
fb0              stdin            tty30            tty59
fd               stdout           tty31            tty6
full             sunxi-reg        tty32            tty60
fuse             sunxi-wlan       tty33            tty61
g2d              sunxi_pwm0       tty34            tty62
gpiochip0        sunxi_soc_info   tty35            tty63
i2c-2            tty              tty36            tty7
input            tty0             tty37            tty8
ion              tty1             tty38            tty9
kmem             tty10            tty39            ttyS1
kmsg             tty11            tty4             ttyS3
log              tty12            tty40            ubi_ctrl
mem              tty13            tty41            urandom
mmcblk0          tty14            tty42            usb-ffs
mmcblk0p1        tty15            tty43            vcs
mmcblk0p2        tty16            tty44            vcs1
mmcblk0p3        tty17            tty45            vcsa
mmcblk0p4        tty18            tty46            vcsa1
mmcblk0p5        tty19            tty47            vcsu
mmcblk0p6        tty2             tty48            vcsu1
null             tty20            tty49            watchdog
ptmx             tty21            tty5             watchdog0
pts              tty22            tty50            zero
#

可以看到 "RTC0"这个设备,驱动已经挂载好了.

看看时间吧,

# date
Sat Nov 16 22:28:08 UTC 2024
#

设备时间

#date -s "2024-11-16 22:29"

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com