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.

97 lines
2.8 KiB

3 days ago
/******************************************************************************
(C), 2018-2099, Radkil
******************************************************************************
: rd_time.h
: 稿
: Radkil
: 2026224
:
: rd_time.c
:
1. : 2026224
: 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__ */