summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-09-11 11:07:51 +0800
committerBernard Xiong <[email protected]>2021-09-11 11:07:51 +0800
commit8da9f78d7274f462852096ca2cae3d6e284fd51f (patch)
tree8670379786c53eda39610e0e3b03d5972bce0d10 /components/drivers
parent45440d2456e62bf223ff6df0bd8d9f92894f45b6 (diff)
[libc] remove rtlibc
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/rtc/rtc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c
index 35e7ddc3c4..bc75c83e7d 100644
--- a/components/drivers/rtc/rtc.c
+++ b/components/drivers/rtc/rtc.c
@@ -223,7 +223,7 @@ rt_err_t set_time(rt_uint32_t hour, rt_uint32_t minute, rt_uint32_t second)
/**
* get date and time or set (local timezone) [year month day hour min sec]
*/
-static void date(uint8_t argc, char **argv)
+static void date(int argc, char **argv)
{
if (argc == 1)
{
@@ -235,8 +235,9 @@ static void date(uint8_t argc, char **argv)
else if (argc >= 7)
{
/* set time and date */
- uint16_t year;
- uint8_t month, day, hour, min, sec;
+ rt_uint16_t year;
+ rt_uint8_t month, day, hour, min, sec;
+
year = atoi(argv[1]);
month = atoi(argv[2]);
day = atoi(argv[3]);