Merge pull request #5299 from mysterywolf/rtc
modify time.h to sys/time.h
This commit is contained in:
commit
e055a00778
@ -11,7 +11,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include <time.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#ifdef BSP_USING_ONCHIP_RTC
|
#ifdef BSP_USING_ONCHIP_RTC
|
||||||
|
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <drv_common.h>
|
#include <drv_common.h>
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
/// definition for rtc handle.
|
/// definition for rtc handle.
|
||||||
typedef void *rtc_handle_t;
|
typedef void *rtc_handle_t;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* ----- ------ -------- --------------------------------------
|
* ----- ------ -------- --------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "ft_i2c_hw.h"
|
#include "ft_i2c_hw.h"
|
||||||
#include "ft_i2c.h"
|
#include "ft_i2c.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "drv_rtc.h"
|
#include "drv_rtc.h"
|
||||||
#include "fsl_snvs_hp.h"
|
#include "fsl_snvs_hp.h"
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#if defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL
|
#if defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL
|
||||||
#error "Please don't define 'FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL'!"
|
#error "Please don't define 'FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL'!"
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
#include "bcm283x.h"
|
#include "bcm283x.h"
|
||||||
|
|
||||||
struct rt_rtc_device
|
struct rt_rtc_device
|
||||||
|
@ -169,7 +169,7 @@ MSH_CMD_EXPORT(pwm_sample, pwm sample);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_RTC
|
#ifdef RT_USING_RTC
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
static int rtc_sample(int argc, char *argv[])
|
static int rtc_sample(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
rt_err_t ret = RT_EOK;
|
rt_err_t ret = RT_EOK;
|
||||||
|
@ -169,7 +169,7 @@ MSH_CMD_EXPORT(pwm_sample, pwm sample);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_RTC
|
#ifdef RT_USING_RTC
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
static int rtc_sample(int argc, char *argv[])
|
static int rtc_sample(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
rt_err_t ret = RT_EOK;
|
rt_err_t ret = RT_EOK;
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
#ifndef __ALARM_H__
|
#ifndef __ALARM_H__
|
||||||
#define __ALARM_H__
|
#define __ALARM_H__
|
||||||
|
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
|
#include <rtdef.h>
|
||||||
|
|
||||||
#define RT_ALARM_TM_NOW -1 /* set the alarm tm_day,tm_mon,tm_sec,etc.
|
#define RT_ALARM_TM_NOW -1 /* set the alarm tm_day,tm_mon,tm_sec,etc.
|
||||||
to now.we also call it "don't care" value */
|
to now.we also call it "don't care" value */
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* 2021-07-30 Meco Man move rtc_core.c to rtc.c
|
* 2021-07-30 Meco Man move rtc_core.c to rtc.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* 一个线程定时发送事件 (事件5)
|
* 一个线程定时发送事件 (事件5)
|
||||||
*/
|
*/
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <time.h>
|
#include <sys/time.h>
|
||||||
#include "tc_comm.h"
|
#include "tc_comm.h"
|
||||||
|
|
||||||
/* 指向线程控制块的指针 */
|
/* 指向线程控制块的指针 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user