当前位置:网站首页>RTL8762DK RTC(五)
RTL8762DK RTC(五)
2022-08-01 00:32:00 【Ch_champion】
概述
本示例,只要介绍,RTC 如何实现 年/月/日 - 时/分/秒,又离成功进了一步 ^_^。
一、环境
1、硬件 (RTL8762DK + 128M Bits Falsh)
2、软件(keil IDE)
二、RTC的使用
1、创建examples_ble_rtc_clock工程,基于《examples_ble_led工程》来创建,创建步骤请参考第二篇文章。
2、新建rtc_clock文件夹,分别存放hub_clock.c与hub_clock.h这两个文件
2、打开examples_ble_rtc_clock工程
1)、hub_clock.h
#ifndef _WRISTBNAD_CLOCK_H_
#define _WRISTBNAD_CLOCK_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "board.h"
#define IsLeapYear(yr) (!((yr) % 400) || (((yr) % 100) && !((yr) % 4)))
#define YearLength(yr) (IsLeapYear(yr
边栏推荐
猜你喜欢
Application of integrated stepper motor in UAV automatic airport
Key Points Estimation and Point Instance
Matlab / ArcGIS 处理GPM全球月均降水数据
微信小程序之小程序页面语法
ECCV2022 Workshop | 复杂环境中的多目标跟踪和分割
WeChat applet page syntax
In 2022, the latest eight Chongqing construction members (electrical construction workers) simulation question bank and answers
TFC CTF 2022 WEB Diamand WriteUp
[AMEX] LGBM Optuna American Express Credit Card Fraud Contest kaggle
自动化机器学习pycaret: PyCaret Basic Auto Classification LightGBM
随机推荐
[AMEX] LGBM Optuna American Express Credit Card Fraud Contest kaggle
Google "Cloud Developer Quick Checklist"; Tsinghua 3D Human Body Dataset; SenseTime "Universal Vision Framework" open class; Web3 Minimalist Getting Started Guide; Free Books for Efficient Deep Learni
Recommendation system: Summary of common evaluation indicators [accuracy rate, precision rate, recall rate, hit rate, (normalized depreciation cumulative gain) NDCG, mean reciprocal ranking (MRR), ROC
Redis五种数据类型简介
精心总结十三条建议,帮你创建更合适的MySQL索引
Web API 介绍和类型
cobaltstrike
Likou Binary Tree
JS时间戳的意义是什么?知道sql会考虑加时间戳,JS的时间戳用于什么场景?
GDB 源码分析系列文章五:动态库延迟断点实现机制
mysql having的用法
Named Entity Recognition - Model: BERT-MRC
Rasa 3.x 学习系列- Rasa - Issues 4918 学习笔记
Introduction to the five data types of Redis
lua入门案例实战1234定义函数与标准函数库功能
leetcode:126. 单词接龙 II
Mysql environment installation under Linux (centos)
考研备考方案
Automated machine learning pycaret: PyCaret Basic Auto Classification LightGBM
设计消息队列存储消息数据的MySQL表格