| /bsp/acm32/acm32f0x0-nucleo/drivers/ |
| A D | drv_rtc.c | 52 struct tm now; in set_rtc_time_stamp() local 54 gmtime_r(&time_stamp, &now); in set_rtc_time_stamp() 55 if (now.tm_year < 100) in set_rtc_time_stamp() 60 RTC_TimeStruct.u8_Seconds = dec2hex(now.tm_sec); in set_rtc_time_stamp() 61 RTC_TimeStruct.u8_Minutes = dec2hex(now.tm_min); in set_rtc_time_stamp() 62 RTC_TimeStruct.u8_Hours = dec2hex(now.tm_hour); in set_rtc_time_stamp() 63 RTC_DateStruct.u8_Date = dec2hex(now.tm_mday); in set_rtc_time_stamp() 64 RTC_DateStruct.u8_Month = dec2hex(now.tm_mon + 1); in set_rtc_time_stamp() 65 RTC_DateStruct.u8_Year = dec2hex(now.tm_year - 100); in set_rtc_time_stamp() 66 RTC_DateStruct.u8_WeekDay = dec2hex(now.tm_wday) + 1; in set_rtc_time_stamp()
|
| /bsp/nxp/mcx/mcxn/Libraries/drivers/ |
| A D | drv_rtc.c | 59 struct tm now; in mcx_rtc_set_time() local 62 gmtime_r(ts, &now); in mcx_rtc_set_time() 64 rtc_date.second = now.tm_sec ; in mcx_rtc_set_time() 65 rtc_date.minute = now.tm_min ; in mcx_rtc_set_time() 66 rtc_date.hour = now.tm_hour; in mcx_rtc_set_time() 68 rtc_date.weekDay = now.tm_wday; in mcx_rtc_set_time() 69 rtc_date.day = now.tm_mday; in mcx_rtc_set_time() 70 rtc_date.month = now.tm_mon + 1; in mcx_rtc_set_time() 71 rtc_date.year = now.tm_year + 1900; in mcx_rtc_set_time()
|
| /bsp/nxp/imx/imxrt/libraries/drivers/ |
| A D | drv_rtc.c | 52 struct tm now; in imxrt_hp_set_timestamp() local 55 gmtime_r(×tamp, &now); in imxrt_hp_set_timestamp() 57 srtcDate.second = now.tm_sec; in imxrt_hp_set_timestamp() 58 srtcDate.minute = now.tm_min; in imxrt_hp_set_timestamp() 59 srtcDate.hour = now.tm_hour; in imxrt_hp_set_timestamp() 61 srtcDate.day = now.tm_mday; in imxrt_hp_set_timestamp() 62 srtcDate.month = now.tm_mon + 1; in imxrt_hp_set_timestamp() 63 srtcDate.year = now.tm_year + 1900; in imxrt_hp_set_timestamp() 179 time_t now; in rtc_sample() local 211 now = time(RT_NULL); in rtc_sample() [all …]
|
| /bsp/nxp/mcx/mcxn/frdm-mcxn947/board/ports/ |
| A D | wifi_weather_sample.c | 89 cJSON *now = cJSON_GetObjectItem(data, "now"); in parse_weather_data() local 90 if (now == NULL) { in parse_weather_data() 99 cJSON *precipitation = cJSON_GetObjectItem(now, "precipitation"); in parse_weather_data() 100 cJSON *temperature = cJSON_GetObjectItem(now, "temperature"); in parse_weather_data() 101 cJSON *pressure = cJSON_GetObjectItem(now, "pressure"); in parse_weather_data() 102 cJSON *humidity = cJSON_GetObjectItem(now, "humidity"); in parse_weather_data() 103 cJSON *windDirection = cJSON_GetObjectItem(now, "windDirection"); in parse_weather_data() 104 cJSON *windDirectionDegree = cJSON_GetObjectItem(now, "windDirectionDegree"); in parse_weather_data() 105 cJSON *windSpeed = cJSON_GetObjectItem(now, "windSpeed"); in parse_weather_data() 106 cJSON *windScale = cJSON_GetObjectItem(now, "windScale"); in parse_weather_data()
|
| /bsp/nxp/lpc/lpc55sxx/Libraries/drivers/ |
| A D | drv_rtc.c | 44 struct tm now; in lpc_set_timestamp() local 47 gmtime_r(×tamp, &now); in lpc_set_timestamp() 49 rtcDate.second = now.tm_sec ; in lpc_set_timestamp() 50 rtcDate.minute = now.tm_min ; in lpc_set_timestamp() 51 rtcDate.hour = now.tm_hour; in lpc_set_timestamp() 53 rtcDate.day = now.tm_mday; in lpc_set_timestamp() 54 rtcDate.month = now.tm_mon + 1; in lpc_set_timestamp() 55 rtcDate.year = now.tm_year + 1900; in lpc_set_timestamp()
|
| /bsp/renesas/libraries/HAL_Drivers/ |
| A D | drv_rtc.c | 86 struct tm now; in set_rtc_time_stamp() local 88 gmtime_r(&time_stamp, &now); in set_rtc_time_stamp() 89 if (now.tm_year < 100) in set_rtc_time_stamp() 94 g_current_time.tm_sec = now.tm_sec ; in set_rtc_time_stamp() 95 g_current_time.tm_min = now.tm_min ; in set_rtc_time_stamp() 96 g_current_time.tm_hour = now.tm_hour; in set_rtc_time_stamp() 97 g_current_time.tm_mday = now.tm_mday; in set_rtc_time_stamp() 98 g_current_time.tm_mon = now.tm_mon; in set_rtc_time_stamp() 99 g_current_time.tm_year = now.tm_year; in set_rtc_time_stamp() 100 g_current_time.tm_wday = now.tm_wday; in set_rtc_time_stamp() [all …]
|
| /bsp/wch/risc-v/Libraries/ch32_drivers/ |
| A D | drv_common.c | 21 rt_uint64_t total_delay_ticks, us_ticks, start, now, delta, reload; in rt_hw_us_delay() local 33 now = SysTick->CNT; in rt_hw_us_delay() 34 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/loongson/ls1cdev/drivers/ |
| A D | drv_rtc.c | 53 struct tm now; in set_timestamp() local 56 gmtime_r(×tamp, &now); in set_timestamp() 58 rtcDate.Seconds= now.tm_sec ; in set_timestamp() 59 rtcDate.Minutes= now.tm_min ; in set_timestamp() 60 rtcDate.Hours= now.tm_hour; in set_timestamp() 62 rtcDate.Date= now.tm_mday; in set_timestamp() 63 rtcDate.Month= now.tm_mon + 1; in set_timestamp() 64 rtcDate.Year= now.tm_year + 1900 - 2000; in set_timestamp()
|
| /bsp/hc32l136/board/ |
| A D | board.c | 90 uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local 96 now = SysTick->VAL; in rt_hw_us_delay() 97 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/maxim/max32660-evsys/board/ |
| A D | board.c | 71 rt_uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local 77 now = SysTick->VAL; in rt_hw_us_delay() 78 delta = start >= now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/wch/arm/Libraries/ch32_drivers/ |
| A D | drv_common.c | 35 rt_uint32_t start, now, delta, reload, us_tick; in MSH_CMD_EXPORT() local 41 now = SysTick->VAL; in MSH_CMD_EXPORT() 42 delta = start > now ? start - now : reload + start - now; in MSH_CMD_EXPORT()
|
| /bsp/synwit/libraries/SWM320_drivers/ |
| A D | drv_rtc.c | 67 struct tm now; in swm_set_rtc_time_stamp() local 69 gmtime_r(&time_stamp, &now); in swm_set_rtc_time_stamp() 70 set_datetime.Second = now.tm_sec; in swm_set_rtc_time_stamp() 71 set_datetime.Minute = now.tm_min; in swm_set_rtc_time_stamp() 72 set_datetime.Hour = now.tm_hour; in swm_set_rtc_time_stamp() 73 set_datetime.Date = now.tm_mday; in swm_set_rtc_time_stamp() 74 set_datetime.Month = now.tm_mon + 1; in swm_set_rtc_time_stamp() 75 set_datetime.Year = now.tm_year + 1900; in swm_set_rtc_time_stamp()
|
| /bsp/synwit/libraries/SWM341_drivers/ |
| A D | drv_rtc.c | 66 struct tm now; in swm_set_rtc_time_stamp() local 68 gmtime_r(&time_stamp, &now); in swm_set_rtc_time_stamp() 69 set_datetime.Second = now.tm_sec; in swm_set_rtc_time_stamp() 70 set_datetime.Minute = now.tm_min; in swm_set_rtc_time_stamp() 71 set_datetime.Hour = now.tm_hour; in swm_set_rtc_time_stamp() 72 set_datetime.Date = now.tm_mday; in swm_set_rtc_time_stamp() 73 set_datetime.Month = now.tm_mon + 1; in swm_set_rtc_time_stamp() 74 set_datetime.Year = now.tm_year + 1900; in swm_set_rtc_time_stamp()
|
| /bsp/Infineon/libraries/HAL_Drivers/ |
| A D | drv_common.c | 74 rt_uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local 81 now = SysTick->VAL; in rt_hw_us_delay() 82 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/fm33lc026/libraries/HAL_Drivers/ |
| A D | drv_common.c | 78 rt_uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local 84 now = SysTick->VAL; in rt_hw_us_delay() 85 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/hc32/libraries/hc32_drivers/ |
| A D | drv_common.c | 112 uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local 119 now = SysTick->VAL; in rt_hw_us_delay() 120 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/essemi/es32vf2264/drivers/ |
| A D | board.c | 131 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local 137 now = CORET->MTIME; in rt_hw_us_delay() 138 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/hc32l196/board/ |
| A D | board.c | 116 uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local 123 now = SysTick->VAL; in rt_hw_us_delay() 124 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/essemi/es32f0654/drivers/ |
| A D | board.c | 191 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local 197 now = SysTick->VAL; in rt_hw_us_delay() 198 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/hc32/tests/ |
| A D | test_rtc.c | 80 time_t now; in rtc_sample() local 161 now = time(NULL); in rtc_sample() 162 rt_kprintf("GMT time is: %s\n", ctime(&now)); in rtc_sample() 167 now = time(NULL); in rtc_sample() 168 rt_kprintf("GMT time is: \n%s\n", ctime(&now)); in rtc_sample() 169 now += 60; in rtc_sample() 170 gmtime_r(&now, &p_tm); in rtc_sample()
|
| /bsp/essemi/es32f365x/drivers/ |
| A D | board.c | 206 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local 212 now = SysTick->VAL; in rt_hw_us_delay() 213 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/essemi/es32f369x/drivers/ |
| A D | board.c | 206 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local 212 now = SysTick->VAL; in rt_hw_us_delay() 213 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
|
| /bsp/at32/libraries/rt_drivers/ |
| A D | drv_rtc.c | 89 struct tm now; in set_rtc_time_stamp() local 91 gmtime_r(&time_stamp, &now); in set_rtc_time_stamp() 92 if (now.tm_year < 100) in set_rtc_time_stamp() 98 if(ertc_time_set(now.tm_hour, now.tm_min, now.tm_sec, ERTC_AM) != SUCCESS) in set_rtc_time_stamp() 104 if(ertc_date_set(now.tm_year - 100, now.tm_mon + 1, now.tm_mday, now.tm_wday + 1) != SUCCESS) in set_rtc_time_stamp()
|
| /bsp/rockchip/common/rk_hal/lib/hal/src/ |
| A D | hal_base.c | 120 uint64_t count, from, now, pass; in TimerDelayUs() local 126 now = HAL_TIMER_GetCount(SYS_TIMER); in TimerDelayUs() 127 pass = now > from ? now - from : from - now; in TimerDelayUs()
|
| /bsp/nuvoton/numaker-hmi-ma35d1/nuwriter_scripts/ |
| A D | nuwriter.py | 1185 now = datetime.now() 1190 os.mkdir(now.strftime("%m%d-%H%M%S%f")) 1214 now = datetime.now() 1228 os.mkdir(now.strftime("%m%d-%H%M%S%f")) 1243 shutil.rmtree(now.strftime("%m%d-%H%M%S%f")) 1267 now = datetime.now() 1281 os.mkdir(now.strftime("%m%d-%H%M%S%f")) 1296 shutil.rmtree(now.strftime("%m%d-%H%M%S%f")) 1306 shutil.rmtree(now.strftime("%m%d-%H%M%S%f")) 1395 now = datetime.now() [all …]
|