当前位置:网站首页>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
边栏推荐
- 游戏安全03:缓冲区溢出攻击简单解释
- Item 36: Specify std::launch::async if asynchronicity is essential.
- 谷歌『云开发者速查表』;清华3D人体数据集;商汤『通用视觉框架』公开课;Web3极简入门指南;高效深度学习免费书;前沿论文 | ShowMeAI资讯日报
- EntityFramework保存到SQLServer 小数精度丢失
- Inheritance and friend, static member relationship
- ROS2系列知识(4): 理解【服务】的概念
- 值传递还是引用传递(By Value or By Reference)
- MYSQL主从复制
- Force buckle 2326, 197
- Keil nRF52832下载失败
猜你喜欢
Carefully organize 16 MySQL usage specifications to reduce problems by 80% and recommend sharing with the team
WeChat applet page syntax
vector的基本实现
推荐系统:常用评价指标总结【准确率、精确率、召回率、命中率、(归一化折损累计增益)NDCG、平均倒数排名(MRR)、ROC曲线、AUC(ROC曲线下的面积)、P-R曲线、A/B测试】
Kyoto University:Masaki Waga | 黑箱环境中强化学习的动态屏蔽
[AMEX] LGBM Optuna美国运通信用卡欺诈赛 kaggle
MYSQL-批量插入数据
【MATLAB项目实战】LDPC-BP信道编码
MYSQL主从复制
[微服务]分布式事务解决方案-Seata
随机推荐
Basic use of vim - bottom line mode
MYSQL经典面试题
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
微信小程序之小程序页面语法
Automated machine learning pycaret: PyCaret Basic Auto Classification LightGBM
MYSQL查询截取优化分析
Keil nRF52832下载失败
虚继承的原理
逐步手撕轮播图3(保姆级教程)
力扣二叉树
Force buckle 2326, 197
The difference between /usr/local/bin and /usr/bin
一体化步进电机在无人机自动机场的应用
C# Rectangle基本用法和图片切割
命名实体识别-模型:BERT-MRC
pycaret源码分析:下载数据集\Lib\site-packages\pycaret\datasets.py
The role of /etc/resolv.conf
Rainbow share | how to use moving targets defense technology to guard against the unknown
JS时间戳的意义是什么?知道sql会考虑加时间戳,JS的时间戳用于什么场景?
助力数字政府建设,中科三方构建域名安全保障体系