freeRTOS操作系统机器人实现
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

96 lines
2.8 KiB

/******************************************************************************
版权所有 (C), 2018-2099, Radkil
******************************************************************************
文 件 名 : rd_time.h
版 本 号 : 初稿
作 者 : Radkil
生成日期 : 2026年2月24日星期二
最近修改 :
功能描述 : rd_time.c 的头文件
修改历史 :
1.日 期 : 2026年2月24日星期二
作 者 : Radkil
修改内容 : 创建文件
******************************************************************************/
/*----------------------------------------------*
* 外部变量说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 外部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 内部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 全局变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 模块级变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 常量定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 宏定义 *
*----------------------------------------------*/
#ifndef __RD_TIME_H__
#define __RD_TIME_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
/*==============================================*
* include header files *
*----------------------------------------------*/
#include "common.h"
#include <time.h>
#include <stdlib.h>
/*==============================================*
* constants or macros define *
*----------------------------------------------*/
/*==============================================*
* project-wide global variables *
*----------------------------------------------*/
/*==============================================*
* routines' or functions' implementations *
*----------------------------------------------*/
time_t rd_time(time_t *tloc);
struct tm *rd_localtime_r(const time_t *timep, struct tm *result);
size_t rd_strftime(char *s, size_t max, const char *format, const struct tm *tm);
void rd_srand(unsigned int seed);
int rd_rand(void);
uint32_t Rd_GetTime(void);
void Rd_Delay(uint32_t Delay);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __RD_TIME_H__ */