Home
last modified time | relevance | path

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

1234

/hal_rpi_pico-latest/src/rp2_common/hardware_rtc/
Drtc.c41 static bool valid_datetime(const datetime_t *t) { in valid_datetime() argument
44 if (!(t->year >= 0 && t->year <= 4095)) return false; in valid_datetime()
45 if (!(t->month >= 1 && t->month <= 12)) return false; in valid_datetime()
46 if (!(t->day >= 1 && t->day <= 31)) return false; in valid_datetime()
47 if (!(t->dotw >= 0 && t->dotw <= 6)) return false; in valid_datetime()
48 if (!(t->hour >= 0 && t->hour <= 23)) return false; in valid_datetime()
49 if (!(t->min >= 0 && t->min <= 59)) return false; in valid_datetime()
50 if (!(t->sec >= 0 && t->sec <= 59)) return false; in valid_datetime()
54 bool rtc_set_datetime(const datetime_t *t) { in rtc_set_datetime() argument
55 if (!valid_datetime(t)) { in rtc_set_datetime()
[all …]
/hal_rpi_pico-latest/src/common/pico_base_headers/include/pico/
Dtypes.h52 static inline uint64_t to_us_since_boot(absolute_time_t t) { in to_us_since_boot() argument
54 return t._private_us_since_boot; in to_us_since_boot()
56 return t; in to_us_since_boot()
67 static inline void update_us_since_boot(absolute_time_t *t, uint64_t us_since_boot) { in update_us_since_boot() argument
70 t->_private_us_since_boot = us_since_boot; in update_us_since_boot()
72 *t = us_since_boot; in update_us_since_boot()
83 absolute_time_t t; in from_us_since_boot() local
84 update_us_since_boot(&t, us_since_boot); in from_us_since_boot()
85 return t; in from_us_since_boot()
/hal_rpi_pico-latest/cmake/
Dgeneric_board.cmake23 …if (LINE MATCHES "^[ \t\]*//[ \t\]*pico_cmake_set[ \t\]*([a-zA-Z_][a-zA-Z0-9_]*)[ \t\]*=[ \t\]*(.*…
26 …if (LINE MATCHES "^[ \t\]*//[ \t\]*pico_cmake_set_default[ \t\]*([a-zA-Z_][a-zA-Z0-9_]*)[ \t\]*=[ …
/hal_rpi_pico-latest/src/rp2_common/hardware_sync/include/hardware/
Dsync.h332 #define remove_volatile_cast(t, x) (t)(x) argument
333 #define remove_volatile_cast_no_barrier(t, x) (t)(x) argument
335 …le_cast(t, x) ({__compiler_memory_barrier(); Clang_Pragma("clang diagnostic push"); Clang_Pragma("… argument
336 …atile_cast_no_barrier(t, x) ({ Clang_Pragma("clang diagnostic push"); Clang_Pragma("clang diagnost… argument
/hal_rpi_pico-latest/src/common/pico_util/
Ddatetime.c46 void datetime_to_str(char *buf, uint buf_size, const datetime_t *t) { in datetime_to_str() argument
50 DATETIME_DOWS[t->dotw], in datetime_to_str()
51 t->day, in datetime_to_str()
52 DATETIME_MONTHS[t->month - 1], in datetime_to_str()
53 t->hour, in datetime_to_str()
54 t->min, in datetime_to_str()
55 t->sec, in datetime_to_str()
56 t->year); in datetime_to_str()
/hal_rpi_pico-latest/src/common/pico_time/include/pico/
Dtime.h67 absolute_time_t t; in get_absolute_time() local
68 update_us_since_boot(&t, time_us_64()); in get_absolute_time()
69 return t; in get_absolute_time()
87 static inline uint32_t to_ms_since_boot(absolute_time_t t) { in to_ms_since_boot() argument
88 uint64_t us = to_us_since_boot(t); in to_ms_since_boot()
99 static inline absolute_time_t delayed_by_us(const absolute_time_t t, uint64_t us) { in delayed_by_us() argument
101 uint64_t base = to_us_since_boot(t); in delayed_by_us()
118 static inline absolute_time_t delayed_by_ms(const absolute_time_t t, uint32_t ms) { in delayed_by_ms() argument
120 uint64_t base = to_us_since_boot(t); in delayed_by_ms()
189 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-latest/tools/
Dbazel_build.py185 return [t.replace("_actual", "") for t in all_tests]
199 t for t in default_build_targets if t not in config["exclusions"]
/hal_rpi_pico-latest/src/rp2_common/hardware_timer/
Dtimer.c96 absolute_time_t t; in timer_busy_wait_us() local
97 update_us_since_boot(&t, target); in timer_busy_wait_us()
98 timer_busy_wait_until(timer, t); in timer_busy_wait_us()
110 void timer_busy_wait_until(timer_hw_t *timer, absolute_time_t t) { in timer_busy_wait_until() argument
111 uint64_t target = to_us_since_boot(t); in timer_busy_wait_until()
142 void busy_wait_until(absolute_time_t t) { in busy_wait_until() argument
143 timer_busy_wait_until(PICO_DEFAULT_TIMER_INSTANCE(), t); in busy_wait_until()
218 uint64_t t = to_us_since_boot(target); in timer_hardware_alarm_set_target() local
219 if (now >= t) { in timer_hardware_alarm_set_target()
231 timer->alarm[alarm_num] = (uint32_t) t; in timer_hardware_alarm_set_target()
[all …]
/hal_rpi_pico-latest/src/rp2_common/hardware_rtc/include/hardware/
Drtc.h57 bool rtc_set_datetime(const datetime_t *t);
65 bool rtc_get_datetime(datetime_t *t);
79 void rtc_set_alarm(const datetime_t *t, rtc_callback_t user_callback);
/hal_rpi_pico-latest/src/rp2_common/hardware_timer/include/hardware/
Dtimer.h302 void timer_busy_wait_until(timer_hw_t *timer, absolute_time_t t);
310 void busy_wait_until(absolute_time_t t);
320 static inline bool timer_time_reached(timer_hw_t *timer, absolute_time_t t) { in timer_time_reached() argument
321 uint64_t target = to_us_since_boot(t); in timer_time_reached()
334 static inline bool time_reached(absolute_time_t t) { in time_reached() argument
335 return timer_time_reached(PICO_DEFAULT_TIMER_INSTANCE(), t); in time_reached()
488 bool timer_hardware_alarm_set_target(timer_hw_t *timer, uint alarm_num, absolute_time_t t);
501 bool hardware_alarm_set_target(uint alarm_num, absolute_time_t t);
/hal_rpi_pico-latest/test/hardware_sync_spin_lock_test/
Dhardware_sync_spin_lock_test.c207 const test_t *t = &tests[i]; in main() local
208 printf(">>> Starting test: %s\n", t->name); in main()
210 t->prepare(); in main()
211 multicore_fifo_push_blocking((uintptr_t)t->run_per_core); in main()
212 t->run_per_core(); in main()
214 printf(">>> Finished test: %s\n", t->name); in main()
215 if (t->check()) { in main()
/hal_rpi_pico-latest/src/host/hardware_timer/
Dtimer.c27 absolute_time_t t; in PICO_WEAK_FUNCTION_DEF() local
28 update_us_since_boot(&t, time_us_64() + delay_us); in PICO_WEAK_FUNCTION_DEF()
29 busy_wait_until(t); in PICO_WEAK_FUNCTION_DEF()
62 bool PICO_WEAK_FUNCTION_IMPL_NAME(time_reached)(absolute_time_t t) { in PICO_WEAK_FUNCTION_DEF()
63 uint64_t target = to_us_since_boot(t); in PICO_WEAK_FUNCTION_DEF()
/hal_rpi_pico-latest/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()
862 basic_symbol (typename Base::kind_type t, location_type&& l) in basic_symbol()
863 : Base (t) in basic_symbol()
867 basic_symbol (typename Base::kind_type t, const location_type& l) in basic_symbol()
868 : Base (t) in basic_symbol()
[all …]
/hal_rpi_pico-latest/src/host/hardware_timer/include/hardware/
Dtimer.h34 void busy_wait_until(absolute_time_t t);
35 bool time_reached(absolute_time_t t);
41 bool hardware_alarm_set_target(uint alarm_num, absolute_time_t t);
/hal_rpi_pico-latest/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-latest/
D.bazelignore1 # Don't accidentally pick up external CMake deps with Bazel build files.
3 # Don't treat submodules as part of this project.
/hal_rpi_pico-latest/test/pico_float_test/
Dm33.c20 static void checkf(ui32 r,ui32 t) { in checkf() argument
22 if(r!=t) { in checkf()
23 printf("M33CF test F%d: expected %08x got %08x\n",n,t,r); in checkf()
29 static void checkd(ui64 r,ui64 t) { in checkd() argument
31 if(r!=t) { in checkd()
34 (ui32)(t>>32),(ui32)t, in checkd()
Dhazard3_test_gen.c42 const uint64_t t = s[1] << 17; in xr256_next() local
49 s[2] ^= t; in xr256_next()
/hal_rpi_pico-latest/src/rp2_common/pico_flash/
DCMakeLists.txt9 # just include multicore headers, as we don't want to pull in the lib if it isn't pulled in already
/hal_rpi_pico-latest/test/pico_time_test/
DBUILD.bazel11 # Doesn't appear to work on host builds yet.
24 # Host doesn't support PICO_TIME_NO_ALARM_SUPPORT without pico_host_sdl.
/hal_rpi_pico-latest/bazel/util/
Dtransition.bzl18 Normally, if you set `defines` on a, they couldn't apply to b or c because
20 settings, because they don't even know a exists!
91 # This could be shared, but we don't in order to make it clearer that
99 # We don't want --custom_malloc to ever apply to the bootloader, so
119 # This could be shared, but we don't in order to make it clearer that
139 # This could be shared, but we don't in order to make it clearer that
158 # This could be shared, but we don't in order to make it clearer that
/hal_rpi_pico-latest/src/common/pico_time/
Dtime.c315 absolute_time_t t = get_absolute_time(); in alarm_pool_add_alarm_at() local
316 if (absolute_time_diff_us(t, time) < 0) return 0; in alarm_pool_add_alarm_at()
392 void sleep_until(absolute_time_t t) { in sleep_until() argument
399 uint64_t t_us = to_us_since_boot(t); in sleep_until()
416 sync_internal_yield_until_before(t); in sleep_until()
419 busy_wait_until(t); in sleep_until()
430 absolute_time_t t = make_timeout_time_us(us - PICO_TIME_SLEEP_OVERHEAD_ADJUST_US); in sleep_us()
431 sync_internal_yield_until_before(t); in sleep_us()
434 busy_wait_until(t); in sleep_us()
/hal_rpi_pico-latest/src/rp2_common/hardware_i2c/include/hardware/
Di2c.h281 absolute_time_t t = make_timeout_time_us(timeout_us); in i2c_write_timeout_us() local
282 return i2c_write_blocking_until(i2c, addr, src, len, nostop, t); in i2c_write_timeout_us()
300 absolute_time_t t = make_timeout_time_us(timeout_us); in i2c_read_timeout_us() local
301 return i2c_read_blocking_until(i2c, addr, dst, len, nostop, t); in i2c_read_timeout_us()
/hal_rpi_pico-latest/src/rp2040/boot_stage2/
DBUILD.bazel11 # There's a lot of implementation details in here that shouldn't be considered
32 # Define shouldn't be set for compile_time_choice.
148 # This isn't referenced as a symbol, so alwayslink is required to ensure
149 # it doesn't get dropped before the linker script can find it.
/hal_rpi_pico-latest/src/rp2350/boot_stage2/
DBUILD.bazel11 # There's a lot of implementation details in here that shouldn't be considered
32 # Define shouldn't be set for compile_time_choice.
148 # This isn't referenced as a symbol, so alwayslink is required to ensure
149 # it doesn't get dropped before the linker script can find it.

1234