Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 37) sorted by relevance

12

/hal_rpi_pico-3.4.0/src/rp2_common/hardware_rtc/
Drtc.c42 static bool valid_datetime(datetime_t *t) { in valid_datetime() argument
45 if (!(t->year >= 0 && t->year <= 4095)) return false; in valid_datetime()
46 if (!(t->month >= 1 && t->month <= 12)) return false; in valid_datetime()
47 if (!(t->day >= 1 && t->day <= 31)) return false; in valid_datetime()
48 if (!(t->dotw >= 0 && t->dotw <= 6)) return false; in valid_datetime()
49 if (!(t->hour >= 0 && t->hour <= 23)) return false; in valid_datetime()
50 if (!(t->min >= 0 && t->min <= 59)) return false; in valid_datetime()
51 if (!(t->sec >= 0 && t->sec <= 59)) return false; in valid_datetime()
55 bool rtc_set_datetime(datetime_t *t) { in rtc_set_datetime() argument
56 if (!valid_datetime(t)) { in rtc_set_datetime()
[all …]
/hal_rpi_pico-3.4.0/src/common/pico_util/
Ddatetime.c30 void datetime_to_str(char *buf, uint buf_size, const datetime_t *t) { in datetime_to_str() argument
34 DATETIME_DOWS[t->dotw], in datetime_to_str()
35 t->day, in datetime_to_str()
36 DATETIME_MONTHS[t->month - 1], in datetime_to_str()
37 t->hour, in datetime_to_str()
38 t->min, in datetime_to_str()
39 t->sec, in datetime_to_str()
40 t->year); in datetime_to_str()
/hal_rpi_pico-3.4.0/src/common/pico_base/include/pico/
Dtypes.h44 static inline uint64_t to_us_since_boot(absolute_time_t t) { in to_us_since_boot() argument
46 return t; in to_us_since_boot()
48 return t._private_us_since_boot; in to_us_since_boot()
59 static inline void update_us_since_boot(absolute_time_t *t, uint64_t us_since_boot) { in update_us_since_boot() argument
61 *t = us_since_boot; in update_us_since_boot()
64 t->_private_us_since_boot = us_since_boot; in update_us_since_boot()
75 absolute_time_t t; in from_us_since_boot() local
76 update_us_since_boot(&t, us_since_boot); in from_us_since_boot()
77 return t; in from_us_since_boot()
/hal_rpi_pico-3.4.0/src/common/pico_time/include/pico/
Dtime.h62 absolute_time_t t; in get_absolute_time() local
63 update_us_since_boot(&t, time_us_64()); in get_absolute_time()
64 return t; in get_absolute_time()
82 static inline uint32_t to_ms_since_boot(absolute_time_t t) { in to_ms_since_boot() argument
83 uint64_t us = to_us_since_boot(t); in to_ms_since_boot()
94 static inline absolute_time_t delayed_by_us(const absolute_time_t t, uint64_t us) { in delayed_by_us() argument
96 uint64_t base = to_us_since_boot(t); in delayed_by_us()
113 static inline absolute_time_t delayed_by_ms(const absolute_time_t t, uint32_t ms) { in delayed_by_ms() argument
115 uint64_t base = to_us_since_boot(t); in delayed_by_ms()
184 static inline bool is_at_the_end_of_time(absolute_time_t t) { in is_at_the_end_of_time() argument
[all …]
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_rtc/include/hardware/
Drtc.h57 bool rtc_set_datetime(datetime_t *t);
65 bool rtc_get_datetime(datetime_t *t);
79 void rtc_set_alarm(datetime_t *t, rtc_callback_t user_callback);
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_timer/
Dtimer.c80 absolute_time_t t; in busy_wait_us() local
81 update_us_since_boot(&t, target); in busy_wait_us()
82 busy_wait_until(t); in busy_wait_us()
94 void busy_wait_until(absolute_time_t t) { in busy_wait_until() argument
95 uint64_t target = to_us_since_boot(t); in busy_wait_until()
178 uint64_t t = to_us_since_boot(target); in hardware_alarm_set_target() local
179 if (now >= t) { in hardware_alarm_set_target()
190 timer_hw->alarm[alarm_num] = (uint32_t) t; in hardware_alarm_set_target()
192 target_hi[alarm_num] = (uint32_t)(t >> 32u); in hardware_alarm_set_target()
199 if (time_us_64() >= t) { in hardware_alarm_set_target()
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_timer/include/hardware/
Dtimer.h106 void busy_wait_until(absolute_time_t t);
114 static inline bool time_reached(absolute_time_t t) { in time_reached() argument
115 uint64_t target = to_us_since_boot(t); in time_reached()
194 bool hardware_alarm_set_target(uint alarm_num, absolute_time_t t);
/hal_rpi_pico-3.4.0/src/host/hardware_timer/include/hardware/
Dtimer.h29 void busy_wait_until(absolute_time_t t);
30 bool time_reached(absolute_time_t t);
36 bool hardware_alarm_set_target(uint alarm_num, absolute_time_t t);
/hal_rpi_pico-3.4.0/src/host/hardware_timer/
Dtimer.c26 absolute_time_t t; in PICO_WEAK_FUNCTION_DEF() local
27 update_us_since_boot(&t, time_us_64() + delay_us); in PICO_WEAK_FUNCTION_DEF()
28 busy_wait_until(t); in PICO_WEAK_FUNCTION_DEF()
52 bool PICO_WEAK_FUNCTION_IMPL_NAME(time_reached)(absolute_time_t t) { in PICO_WEAK_FUNCTION_DEF()
53 uint64_t target = to_us_since_boot(t); in PICO_WEAK_FUNCTION_DEF()
DCMakeLists.txt8 # we don't have alarm pools in the basic host support, though pico_host_sdl adds it
/hal_rpi_pico-3.4.0/tools/pioasm/gen/
Dparser.hpp219 semantic_type (YY_RVREF (T) t) in semantic_type() argument
222 new (yyas_<T> ()) T (YY_MOVE (t)); in semantic_type()
256 emplace (const T& t) in emplace() argument
258 return *new (yyas_<T> ()) T (t); in emplace()
275 build (const T& t) in build() argument
277 return emplace<T> (t); in build()
774 basic_symbol (typename Base::kind_type t, location_type&& l) in basic_symbol()
775 : Base (t) in basic_symbol()
779 basic_symbol (typename Base::kind_type t, const location_type& l) in basic_symbol()
780 : Base (t) in basic_symbol()
[all …]
/hal_rpi_pico-3.4.0/src/host/pico_stdio/
Dstdio.c11 absolute_time_t t = make_timeout_time_us(timeout_us); in getchar_timeout_us() local
13 if (absolute_time_diff_us(t, get_absolute_time()) > 0) { in getchar_timeout_us()
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_i2c/include/hardware/
Di2c.h209 absolute_time_t t = make_timeout_time_us(timeout_us); in i2c_write_timeout_us() local
210 return i2c_write_blocking_until(i2c, addr, src, len, nostop, t); in i2c_write_timeout_us()
228 absolute_time_t t = make_timeout_time_us(timeout_us); in i2c_read_timeout_us() local
229 return i2c_read_blocking_until(i2c, addr, dst, len, nostop, t); in i2c_read_timeout_us()
/hal_rpi_pico-3.4.0/src/common/pico_util/include/pico/util/
Ddatetime.h29 void datetime_to_str(char *buf, uint buf_size, const datetime_t *t);
/hal_rpi_pico-3.4.0/src/common/pico_usb_reset_interface/
DCMakeLists.txt1 # don't use pico_add_library here as picotool includes it directly
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_uart/
Duart.c111 uint32_t t = time_us_32(); in uart_is_readable_within_us() local
114 } while ((time_us_32() - t) <= us); in uart_is_readable_within_us()
/hal_rpi_pico-3.4.0/src/common/pico_time/
Dtime.c381 void sleep_until(absolute_time_t t) { in sleep_until() argument
388 uint64_t t_us = to_us_since_boot(t); in sleep_until()
405 sync_internal_yield_until_before(t); in sleep_until()
408 busy_wait_until(t); in sleep_until()
419 absolute_time_t t = make_timeout_time_us(us - PICO_TIME_SLEEP_OVERHEAD_ADJUST_US); in sleep_us()
420 sync_internal_yield_until_before(t); in sleep_us()
423 busy_wait_until(t); in sleep_us()
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_sync/include/hardware/
Dsync.h393 #define remove_volatile_cast(t, x) ({__mem_fence_acquire(); (t)(x); }) argument
/hal_rpi_pico-3.4.0/src/rp2_common/pico_double/
Ddouble_math.c352 double t,rt,u,v,v0,v1,w,ry;
373 t=a*v0;
374 rt=round(t);
376 w=t-rt;
377 t=a*v1;
378 w+=t;
379 t=u*b;
380 rt=round(t);
382 w+=t-rt;
/hal_rpi_pico-3.4.0/src/
DCMakeLists.txt98 # create an INTERFACE library named hardware_NAME_headers INTERFACE library if it doesn't already e…
113 # create an INTERFACE library named hardware_NAME if it doesn't exist, along with a hardware_NAME_h…
118 …# Choosing not to add LIB_HARDWARE_ defines to avoid command line bloat pending a need (they aren't
136 # create an INTERFACE library named hardware_NAME if it doesn't exist, dependent on a pre-existing …
140 …# Choosing not to add LIB_HARDWARE_ defines to avoid command line bloat pending a need (they aren't
/hal_rpi_pico-3.4.0/cmake/preload/toolchains/
Dset_flags.cmake14 # functions like _exit. So pass -nostdlib so it doesn't link in an exit()
/hal_rpi_pico-3.4.0/test/pico_float_test/
DCMakeLists.txt29 # handy for testing we aren't pulling in extra stuff
/hal_rpi_pico-3.4.0/test/pico_time_test/
Dpico_time_test.c57 static bool repeating_timer_callback(struct repeating_timer *t) { in repeating_timer_callback() argument
59 uint i = (uintptr_t)t->user_data; in repeating_timer_callback()
60 hard_assert(i == (t - repeating_timers)); in repeating_timer_callback()
/hal_rpi_pico-3.4.0/src/host/
DREADME.md9 that don't access hardware directly.
/hal_rpi_pico-3.4.0/tools/pioasm/
Dlexer.ll30 blank [ \t\r]
73 tmp = tmp.erase(0, tmp.find_first_not_of(" \t"));
74 tmp = tmp.erase(tmp.find_last_not_of(" \t") + 1);
99 [^ \t\n\"=]+ return yy::parser::make_NON_WS(yytext, loc);

12