当前位置:网站首页>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
边栏推荐
- 欧拉系统(euleros):升级Mysql
- 500 miles
- C# Rectangle basic usage and picture cutting
- /usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2*解决办法
- 什么是动态规划,什么是背包问题
- Unity3D学习笔记10——纹理数组
- Automated machine learning pycaret: PyCaret Basic Auto Classification LightGBM
- /etc/sysconfig/network-scripts configure the network card
- vim的基本使用概念
- Carefully organize 16 MySQL usage specifications to reduce problems by 80% and recommend sharing with the team
猜你喜欢
什么是动态规划,什么是背包问题
SVN server construction + SVN client + TeamCity integrated environment construction + VS2019 development
/etc/sysconfig/network-scripts configure the network card
VPGNet
cobaltstrike
leetcode:126. 单词接龙 II
【MATLAB项目实战】LDPC-BP信道编码
Introduction to the five data types of Redis
清华大学陈建宇教授团队 | 基于接触丰富机器人操作的接触安全强化学习框架
自动化机器学习pycaret: PyCaret Basic Auto Classification LightGBM
随机推荐
Matlab/Arcgis processing nc data
js 实现复制功能
Pylint检查规则中文版
MYSQL-批量插入数据
Force buckle 2326, 197
Design the message queue storage MySQL form of message data
/etc/sysconfig/network-scripts configure the network card
对象缓存服务的思考和实现
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
/usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2*解决办法
How to Design High Availability and High Performance Middleware - Homework
vector的基本实现
Rasa 3.x 学习系列- Rasa - Issues 4898 学习笔记
简单的vim配置
MYSQL二阶段提交
值传递还是引用传递(By Value or By Reference)
Classes and Objects: Medium
字符编码和浮点型计算精度丢失问题
The difference between /usr/local/bin and /usr/bin
微信小程序之小程序页面语法