Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 45) sorted by relevance

12

/lk-master/lib/pool/
A Dpool.c11 assert(pool); in pool_init()
12 assert(!object_count || storage); in pool_init()
13 assert((intptr_t) storage % POOL_STORAGE_ALIGN(object_size, object_align) == 0); in pool_init()
23 assert(pool); in pool_alloc()
34 assert(pool); in pool_free()
35 assert(object); in pool_free()
/lk-master/external/platform/pico/rp2_common/hardware_pio/include/hardware/
A Dpio.h121 assert(out_base < 32); in sm_config_set_out_pins()
122 assert(out_count <= 32); in sm_config_set_out_pins()
138 assert(set_base < 32); in sm_config_set_set_pins()
139 assert(set_count <= 5); in sm_config_set_set_pins()
154 assert(in_base < 32); in sm_config_set_in_pins()
182 assert(bit_count <= 32); in sm_config_set_sideset()
251 assert(pin < 32); in sm_config_set_jmp_pin()
673 assert(out_base < 32); in pio_sm_set_out_pins()
693 assert(set_base < 32); in pio_sm_set_set_pins()
694 assert(set_count <= 5); in pio_sm_set_set_pins()
[all …]
/lk-master/external/platform/pico/rp2_common/hardware_pll/
A Dpll.c26 assert(fbdiv >= 16 && fbdiv <= 320); in pll_init()
29 assert((post_div1 >= 1 && post_div1 <= 7) && (post_div2 >= 1 && post_div2 <= 7)); in pll_init()
35 assert(post_div2 <= post_div1); in pll_init()
39 assert(ref_mhz <= (vco_freq / 16)); in pll_init()
/lk-master/external/platform/pico/common/pico_base/include/pico/
A Dassert.h34 #define invalid_params_if(x, test) ({if (PARAM_ASSERTIONS_ENABLED(x)) assert(!(test));})
35 #define valid_params_if(x, test) ({if (PARAM_ASSERTIONS_ENABLED(x)) assert(test);})
45 #define hard_assert assert
/lk-master/external/platform/pico/common/pico_util/include/pico/util/
A Dpheap.h77 assert(id && id <= heap->max_nodes); in ph_get_node()
83 assert(parent_id); in ph_add_child_node()
84 assert(child_id); in ph_add_child_node()
85 assert(parent_id != child_id); in ph_add_child_node()
119 assert(id); in ph_insert()
143 assert(id && !ph_contains(heap, id)); in ph_add_to_free_list()
/lk-master/external/platform/pico/common/pico_time/
A Dtime.c53 assert(default_alarm_pool); in alarm_pool_get_default()
59 assert(id && id <= pool->heap->max_nodes); in get_entry()
64 assert(id && id <= pool->heap->max_nodes); in get_entry_id_high()
81 assert(!ph_contains(pool->heap, reuse_id)); in add_alarm_under_lock()
120 assert(removed_id == next_id); // will be true under lock in alarm_pool_alarm_callback()
124 assert(callback); in alarm_pool_alarm_callback()
139 assert(pool->alarm_in_progress == make_public_id(id_high, next_id)); in alarm_pool_alarm_callback()
142 assert(pool->alarm_in_progress == make_public_id(id_high, next_id)); in alarm_pool_alarm_callback()
173 assert(pools[pool->hardware_alarm_num] == pool); in alarm_pool_destroy()
224assert(alarm_id != pool->alarm_in_progress); // it shouldn't be in the heap if it is in progress in alarm_pool_cancel_alarm()
[all …]
/lk-master/external/lib/heap/dlmalloc/
A Ddlmalloc.c1471 #undef assert
1477 #ifndef assert
1478 #define assert(x) macro
3281 assert(sp != 0); in do_check_top_chunk()
3285 assert(sz > 0); in do_check_top_chunk()
3410 assert(empty); in do_check_treebin()
3421 assert(empty); in do_check_smallbin()
3646 assert(P != B);\
3647 assert(P != F);\
3670 assert(P != B);\
[all …]
/lk-master/external/platform/pico/rp2_common/hardware_irq/
A Dirq.c141 assert(!(delta >> 11u)); in make_branch()
149 assert(!(delta >> 11u)); in insert_branch_and_link()
155 assert(0x1c == (*inst)>>11u); in resolve_branch()
209assert(!((((uintptr_t)vtable_handler) - ((uintptr_t)irq_handler_chain_slots) - 1)%sizeof(struct ir… in irq_add_shared_handler()
337 assert(false); // not found in irq_remove_handler()
342 assert(false); // not found in irq_remove_handler()
366 assert(is_shared_irq_raw_handler(slot_handler)); in irq_add_tail_to_free_list()
369 assert(exception); in irq_add_tail_to_free_list()
386 assert(found); in irq_add_tail_to_free_list()
/lk-master/external/platform/pico/common/pico_util/
A Dpheap.c51 assert(root_id); in ph_remove_any_head()
53 assert(!ph_get_node(heap, root_id)->sibling); in ph_remove_any_head()
54 assert(!ph_get_node(heap, root_id)->parent); in ph_remove_any_head()
99 assert(found); in ph_delete()
105 assert(new_sub_tree != heap->root_id); in ph_delete()
/lk-master/external/platform/pico/common/pico_sync/
A Dmutex.c21 assert(mtx->core.spin_lock); in __time_critical_func()
55 assert(mtx->core.spin_lock); in __time_critical_func()
75 assert(mtx->owner >= 0); in __time_critical_func()
A Dlock_core.c10 assert(lock_num >= 0 && lock_num < NUM_SPIN_LOCKS); in lock_init()
/lk-master/external/platform/pico/rp2_common/pico_platform/
A Dplatform.c34 assert(manufacturer == MANUFACTURER_RPI); in rp2040_chip_version()
35 assert(part == PART_RP2); in rp2040_chip_version()
/lk-master/external/platform/pico/rp2_common/hardware_flash/
A Dflash.c56 assert(flash_enter_cmd_xip); in __no_inline_not_in_flash_func()
76 assert(connect_internal_flash && flash_exit_xip && flash_range_erase && flash_flush_cache); in __no_inline_not_in_flash_func()
100 assert(connect_internal_flash && flash_exit_xip && flash_range_program && flash_flush_cache); in __no_inline_not_in_flash_func()
134 assert(connect_internal_flash && flash_exit_xip && flash_flush_cache); in __no_inline_not_in_flash_func()
/lk-master/external/platform/pico/rp2_common/hardware_pio/
A Dpio.c55 assert(load_offset + prog_len <= PIO_INSTRUCTION_COUNT); in pio_load_program()
63 assert(program->length < PIO_INSTRUCTION_COUNT); in _pio_find_offset_for_program()
88 assert(offset < PIO_INSTRUCTION_COUNT); in _pio_can_add_program_at_offset()
89 assert(offset + program->length <= PIO_INSTRUCTION_COUNT); in _pio_can_add_program_at_offset()
137 assert(program_mask == (_used_instruction_space[pio_get_index(pio)] & program_mask)); in pio_remove_program()
199 assert(pin < 32u); in pio_sm_set_consecutive_pindirs()
/lk-master/external/platform/pico/rp2_common/pico_multicore/
A Dmulticore.c118 assert(!(stack_size_bytes & 3u)); in multicore_launch_core1_with_stack()
243 assert(mutex_is_initialzed(&lockout_mutex)); in multicore_lockout_end_block_until()
247 assert(lockout_in_progress); in multicore_lockout_end_block_until()
/lk-master/external/platform/pico/rp2_common/hardware_dma/include/hardware/
A Ddma.h160 assert(dreq <= DREQ_FORCE); in channel_config_set_dreq()
174 assert(chain_to <= NUM_DMA_CHANNELS); in channel_config_set_chain_to()
188 assert(size == DMA_SIZE_8 || size == DMA_SIZE_16 || size == DMA_SIZE_32); in channel_config_set_transfer_data_size()
208 assert(size_bits < 32); in channel_config_set_ring()
/lk-master/external/platform/pico/rp2_common/hardware_clocks/
A Dclocks.c46 assert(src_freq >= freq); in clock_configure()
260 assert(clocks_hw->resus.status & CLOCKS_CLK_SYS_RESUS_STATUS_RESUSSED_BITS); in clocks_handle_resus()
267 assert(!(clocks_hw->resus.status & CLOCKS_CLK_SYS_RESUS_STATUS_RESUSSED_BITS)); in clocks_handle_resus()
/lk-master/app/cdcserialtest/
A Dcdcserialtest.c28 assert(cdc_chan != NULL); in cdctest_entry()
/lk-master/external/platform/pico/rp2_common/hardware_xosc/
A Dxosc.c18 assert(XOSC_MHZ <= 15); in xosc_init()
/lk-master/app/mdebug/
A Dswd-m0sub.c202 void swd_hw_reset(int assert) { in swd_hw_reset() argument
203 if (assert) { in swd_hw_reset()
A Dswd.h28 void swd_hw_reset(int assert);
/lk-master/external/platform/pico/rp2_common/pico_double/
A Ddouble_init_rom.c48assert(*((uint8_t *)(((void *)rom_data_lookup(rom_table_code('S', 'F')))-2)) * 4 >= SF_TABLE_V2_SI… in __aeabi_double_init()
/lk-master/external/platform/pico/rp2_common/hardware_rtc/
A Drtc.c25 assert(rtc_freq != 0); in rtc_init()
36 assert(rtc_freq <= RTC_CLKDIV_M1_BITS); in rtc_init()
/lk-master/external/platform/pico/rp2_common/pico_float/
A Dfloat_init_rom.c66 assert(*((uint8_t *)(rom_table-2)) * 4 >= SF_TABLE_V2_SIZE); in __aeabi_float_init()
/lk-master/external/platform/pico/rp2_common/hardware_sync/
A Dsync.c25 assert(lock_num >= 0 && lock_num < NUM_SPIN_LOCKS); in spin_lock_init()

Completed in 71 milliseconds

12