công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

UM0851 bảng dữ liệu(PDF) 42 Page - STMicroelectronics

tên linh kiện UM0851
Giải thích chi tiết về linh kiện  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 bảng dữ liệu(HTML) 42 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 38Page - STMicroelectronics UM0851 Datasheet HTML 39Page - STMicroelectronics UM0851 Datasheet HTML 40Page - STMicroelectronics UM0851 Datasheet HTML 41Page - STMicroelectronics UM0851 Datasheet HTML 42Page - STMicroelectronics UM0851 Datasheet HTML 43Page - STMicroelectronics UM0851 Datasheet HTML 44Page - STMicroelectronics UM0851 Datasheet HTML 45Page - STMicroelectronics UM0851 Datasheet HTML 46Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 42 / 245 page
background image
Platform section
UM0851
42/245
Doc ID 16604 Rev 2
fd = open("/dev/rtc", O_RDONLY, 0);
ret = ioctl(fd, RTC_ALM_SET, &rtc_tm);
/* call the read function to wait the Alarm interrupt */
ret = read(fd, &data, sizeof(unsigned long));
...
close(fd);
Closing the device
The close function is used to disconnect the RTC device with the relevant file descriptor.
int fd;
fd = open("/dev/rtc", O_RDONLY, 0);
...
close(fd);
3.3.3
RTC driver usage
●
hwclock
hwclock is a shell utility for accessing the RTC clock. You can use it to display the
current time, set the hardware clock to a specified time, set the hardware clock to the
system time, and set the system time from the hardware clock. You can also run
hwclock periodically to insert or remove time from the hardware clock in order to
compensate for systematic drift (where the clock consistently gains or loses time at a
certain rate if left to run).
Example:
#hwclock --set --date="9/22/96 16:45:05"
●
rtcwake
rtcwakeup is a shell utility which can be used to program RTC for the next alarm
interrupt. It accepts an argument in seconds, which is the programmed alarm time.
Example:
#rtcwake -s 10
Configuration options
3.3.4
References
●
Refer linux-2.6.27/Documentation/timers/, for the time keeping and tick generation
architecture of Linux.
Table 14.
RTC menuconfig kernel options
Configuration option
Comment
CONFIG_RTC
This option enables the RTC driver.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com