summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-23 22:38:00 -0500
committerMeco Man <[email protected]>2021-11-23 22:38:00 -0500
commita1cc3d43e71819b3f12c3673187b6316d083ef6c (patch)
treefe100bed622711f6cb5251b540d2228d01cf68f4
parent7dabc3844cfcc00f11f13da86a8d875c79531700 (diff)
modify time.h to sys/time.h
-rw-r--r--bsp/bluetrum/libraries/hal_drivers/drv_rtc.c1
-rw-r--r--bsp/ck802/libraries/include/drv_rtc.h2
-rw-r--r--bsp/ft2004/libraries/bsp/ft_i2c/ft_i2c_selftest.c2
-rw-r--r--bsp/imxrt/libraries/drivers/drv_rtc.c2
-rw-r--r--bsp/lpc5410x/Libraries/lpc_chip/chip_common/rtc_ut.h2
-rw-r--r--bsp/raspberry-pi/raspi3-64/driver/drv_rtc.h2
-rw-r--r--bsp/swm320-lq100/applications/main.c2
-rw-r--r--bsp/swm320/applications/main.c2
-rw-r--r--components/drivers/include/drivers/alarm.h3
-rw-r--r--components/drivers/rtc/rtc.c2
-rw-r--r--examples/kernel/event_simple.c2
11 files changed, 11 insertions, 11 deletions
diff --git a/bsp/bluetrum/libraries/hal_drivers/drv_rtc.c b/bsp/bluetrum/libraries/hal_drivers/drv_rtc.c
index 56c75aae59..fab2d749a8 100644
--- a/bsp/bluetrum/libraries/hal_drivers/drv_rtc.c
+++ b/bsp/bluetrum/libraries/hal_drivers/drv_rtc.c
@@ -11,7 +11,6 @@
*/
#include "board.h"
-#include <time.h>
#include <sys/time.h>
#ifdef BSP_USING_ONCHIP_RTC
diff --git a/bsp/ck802/libraries/include/drv_rtc.h b/bsp/ck802/libraries/include/drv_rtc.h
index 182b3df843..b393f13fda 100644
--- a/bsp/ck802/libraries/include/drv_rtc.h
+++ b/bsp/ck802/libraries/include/drv_rtc.h
@@ -29,7 +29,7 @@ extern "C" {
#include <stdint.h>
#include <drv_common.h>
-#include <time.h>
+#include <sys/time.h>
/// definition for rtc handle.
typedef void *rtc_handle_t;
diff --git a/bsp/ft2004/libraries/bsp/ft_i2c/ft_i2c_selftest.c b/bsp/ft2004/libraries/bsp/ft_i2c/ft_i2c_selftest.c
index 4a43df0ce4..4be275e9ce 100644
--- a/bsp/ft2004/libraries/bsp/ft_i2c/ft_i2c_selftest.c
+++ b/bsp/ft2004/libraries/bsp/ft_i2c/ft_i2c_selftest.c
@@ -12,7 +12,7 @@
* ----- ------     --------    --------------------------------------
*/
-#include <time.h>
+#include <sys/time.h>
#include <string.h>
#include "ft_i2c_hw.h"
#include "ft_i2c.h"
diff --git a/bsp/imxrt/libraries/drivers/drv_rtc.c b/bsp/imxrt/libraries/drivers/drv_rtc.c
index 96ae1006fa..d3f86c5e42 100644
--- a/bsp/imxrt/libraries/drivers/drv_rtc.c
+++ b/bsp/imxrt/libraries/drivers/drv_rtc.c
@@ -20,7 +20,7 @@
#include "drv_rtc.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
#error "Please don't define 'FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL'!"
diff --git a/bsp/lpc5410x/Libraries/lpc_chip/chip_common/rtc_ut.h b/bsp/lpc5410x/Libraries/lpc_chip/chip_common/rtc_ut.h
index c88ca598ae..9caffc2dd6 100644
--- a/bsp/lpc5410x/Libraries/lpc_chip/chip_common/rtc_ut.h
+++ b/bsp/lpc5410x/Libraries/lpc_chip/chip_common/rtc_ut.h
@@ -36,7 +36,7 @@
#include "chip.h"
#include <stdlib.h>
-#include <time.h>
+#include <sys/time.h>
#ifdef __cplusplus
extern "C" {
diff --git a/bsp/raspberry-pi/raspi3-64/driver/drv_rtc.h b/bsp/raspberry-pi/raspi3-64/driver/drv_rtc.h
index 4af28efa17..35ccaf39d5 100644
--- a/bsp/raspberry-pi/raspi3-64/driver/drv_rtc.h
+++ b/bsp/raspberry-pi/raspi3-64/driver/drv_rtc.h
@@ -13,7 +13,7 @@
#include <rtthread.h>
#include <rtdevice.h>
-#include <time.h>
+#include <sys/time.h>
#include "bcm283x.h"
struct rt_rtc_device
diff --git a/bsp/swm320-lq100/applications/main.c b/bsp/swm320-lq100/applications/main.c
index 3761e8c14d..5685bf6745 100644
--- a/bsp/swm320-lq100/applications/main.c
+++ b/bsp/swm320-lq100/applications/main.c
@@ -169,7 +169,7 @@ MSH_CMD_EXPORT(pwm_sample, pwm sample);
#endif
#ifdef RT_USING_RTC
-#include <time.h>
+#include <sys/time.h>
static int rtc_sample(int argc, char *argv[])
{
rt_err_t ret = RT_EOK;
diff --git a/bsp/swm320/applications/main.c b/bsp/swm320/applications/main.c
index 4b42c4936a..0ebd6663f6 100644
--- a/bsp/swm320/applications/main.c
+++ b/bsp/swm320/applications/main.c
@@ -169,7 +169,7 @@ MSH_CMD_EXPORT(pwm_sample, pwm sample);
#endif
#ifdef RT_USING_RTC
-#include <time.h>
+#include <sys/time.h>
static int rtc_sample(int argc, char *argv[])
{
rt_err_t ret = RT_EOK;
diff --git a/components/drivers/include/drivers/alarm.h b/components/drivers/include/drivers/alarm.h
index 11637df949..56822b72e1 100644
--- a/components/drivers/include/drivers/alarm.h
+++ b/components/drivers/include/drivers/alarm.h
@@ -13,7 +13,8 @@
#ifndef __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.
to now.we also call it "don't care" value */
diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c
index 0658d2aaf4..39f82499f5 100644
--- a/components/drivers/rtc/rtc.c
+++ b/components/drivers/rtc/rtc.c
@@ -14,7 +14,7 @@
* 2021-07-30 Meco Man move rtc_core.c to rtc.c
*/
-#include <time.h>
+#include <sys/time.h>
#include <string.h>
#include <stdlib.h>
#include <rtthread.h>
diff --git a/examples/kernel/event_simple.c b/examples/kernel/event_simple.c
index 8b2f966d3d..78887b6aea 100644
--- a/examples/kernel/event_simple.c
+++ b/examples/kernel/event_simple.c
@@ -15,7 +15,7 @@
* 一个线程定时发送事件 (事件5)
*/
#include <rtthread.h>
-#include <time.h>
+#include <sys/time.h>
#include "tc_comm.h"
/* 指向线程控制块的指针 */