https://github.com/mysterywolf/uc-clk-for-rt-thread
Micrium uC/Clk for RT-Thread
https://github.com/mysterywolf/uc-clk-for-rt-thread
calendar clk clock rt-thread timestamps uc-clk ucos ucos-iii
Last synced: 8 months ago
JSON representation
Micrium uC/Clk for RT-Thread
- Host: GitHub
- URL: https://github.com/mysterywolf/uc-clk-for-rt-thread
- Owner: mysterywolf
- License: apache-2.0
- Created: 2020-11-12T17:57:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-01T02:29:41.000Z (almost 4 years ago)
- Last Synced: 2025-01-10T07:51:44.757Z (10 months ago)
- Topics: calendar, clk, clock, rt-thread, timestamps, uc-clk, ucos, ucos-iii
- Language: C
- Homepage: https://github.com/weston-embedded/uC-Clk
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# μC/Clk for RT-Thread
### µC/Clk Time/Calendar Management
µC/Clk is a module that implements a Year 2000 compliant clock/calendar module. The clock/calendar module offers the following features:
* Maintains time in seconds starting from 2000/01/01 (January 1st, 2000) at 00:00:00 UTC until 2134/12/31 (December 31st, 2134) 23:59:59 UTC; but supports conversions to/from two other timestamps:
* NTP (Network Time Protocol) timestamps, starting from 1900/01/01 (January 1st, 1900) at 00:00:00 UTC until 2034/12/31 (December 31st, 2034) 23:59:59 UTC;
* Unix timestamps, starting from 1970/01/01 (January 1st, 1970) at 00:00:00 UTC until 2104/12/31 (December 31st, 2104) 23:59:59 UTC.
* Allows your application to obtain timestamps to mark the occurrence of events. A µC/Clk timestamp is a copy of its internal timestamp.
* Allows your application to get the current date and time into a structured data type named CLK_DATE_TIME containing Year, Month, Day, Day-of-Year, Day-of-Week, Hour, Minute, Second, and Timezone Offset. Can convert timestamps to dates/times or vice versa.
* Allows your application to get and set the clock date/time using any of the supported timestamps or a CLK_DATE_TIME structure and allows conversion to/from all supported timestamps and the CLK_DATE_TIME structure.
## 配置文件 `clk_cfg.h`
## Env配置
本软件包可以选择是否在启动时,由RT-Thread自动完成初始化 (INIT_DEVICE_EXPORT)
```
RT-Thread online packages
system packages --->
[*] Micrium: Micrium software products porting for RT-Thread --->
[*] uC/Clk for RT-Thread --->
(10) The priority level value of uC/Clk task
(80) The stack size of UC/Clk task (sizeof(CPU_STK))
[*] Enable uC/Clk automatical initialization
Version (latest) --->
```## 依赖项
本软件包会自动开启以下软件包作为依赖项,用户无需介入:
- [RT-Thread的uCOS-III兼容层软件包](https://github.com/mysterywolf/RT-Thread-wrapper-of-uCOS-III) (系统会自动初始化兼容层)
## 参考文档
| 文档 | 说明 |
| :----------------------------------------------------------: | :--: |
| [uC/Clk官方文档](https://doc.micrium.com/pages/viewpage.action?pageId=10753188) | 必读 |## 维护
Meco Man
jiantingman@foxmail.com