/hal_rpi_pico-latest/src/common/pico_sync/ |
D | sem.c | 28 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func() local 31 spin_unlock(sem->core.spin_lock, save); in __time_critical_func() 34 lock_internal_spin_unlock_with_wait(&sem->core, save); in __time_critical_func() 48 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func() local 51 spin_unlock(sem->core.spin_lock, save); in __time_critical_func() 54 if (lock_internal_spin_unlock_with_best_effort_wait_or_timeout(&sem->core, save, until)) { in __time_critical_func() 61 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func() local 64 spin_unlock(sem->core.spin_lock, save); in __time_critical_func() 67 spin_unlock(sem->core.spin_lock, save); in __time_critical_func() 73 uint32_t save = spin_lock_blocking(sem->core.spin_lock); in __time_critical_func() local [all …]
|
D | mutex.c | 71 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func() local 74 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func() 77 lock_internal_spin_unlock_with_wait(&mtx->core, save); in __time_critical_func() 84 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func() local 88 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func() 92 lock_internal_spin_unlock_with_wait(&mtx->core, save); in __time_critical_func() 104 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func() local 112 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func() 130 uint32_t save = spin_lock_blocking(mtx->core.spin_lock); in __time_critical_func() local 140 spin_unlock(mtx->core.spin_lock, save); in __time_critical_func() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_atomic/ |
D | atomic.c | 18 static inline void atomic_unlock(__unused const volatile void *ptr, uint32_t save) { in atomic_unlock() argument 19 spin_unlock(spin_lock_instance(PICO_SPINLOCK_ID_ATOMIC), save); in atomic_unlock() 25 uint32_t save = atomic_lock(mem); in __atomic_test_and_set_c() local 28 atomic_unlock(mem, save); in __atomic_test_and_set_c() 61 uint32_t save = atomic_lock(src); in __atomic_load_c() local 63 atomic_unlock(src, save); in __atomic_load_c() 69 uint32_t save = atomic_lock(src); in __atomic_store_c() local 71 atomic_unlock(src, save); in __atomic_store_c() 81 uint32_t save = atomic_lock(ptr); in __atomic_compare_exchange_c() local 84 atomic_unlock(ptr, save); in __atomic_compare_exchange_c() [all …]
|
/hal_rpi_pico-latest/src/common/hardware_claim/ |
D | claim.c | 13 void hw_claim_unlock(uint32_t save) { in hw_claim_unlock() argument 14 spin_unlock(spin_lock_instance(PICO_SPINLOCK_ID_HARDWARE_CLAIM), save); in hw_claim_unlock() 22 uint32_t save = hw_claim_lock(); in hw_claim_or_assert() local 28 hw_claim_unlock(save); in hw_claim_or_assert() 33 uint32_t save = hw_claim_lock(); in hw_claim_unused_from_range() local 42 hw_claim_unlock(save); in hw_claim_unused_from_range() 50 uint32_t save = hw_claim_lock(); in hw_claim_clear() local 53 hw_claim_unlock(save); in hw_claim_clear()
|
/hal_rpi_pico-latest/src/common/pico_util/ |
D | queue.c | 46 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_add_internal() local 50 lock_internal_spin_unlock_with_notify(&q->core, save); in queue_add_internal() 54 lock_internal_spin_unlock_with_wait(&q->core, save); in queue_add_internal() 56 spin_unlock(q->core.spin_lock, save); in queue_add_internal() 64 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_remove_internal() local 70 lock_internal_spin_unlock_with_notify(&q->core, save); in queue_remove_internal() 74 lock_internal_spin_unlock_with_wait(&q->core, save); in queue_remove_internal() 76 spin_unlock(q->core.spin_lock, save); in queue_remove_internal() 84 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_peek_internal() local 89 lock_internal_spin_unlock_with_notify(&q->core, save); in queue_peek_internal() [all …]
|
/hal_rpi_pico-latest/src/common/pico_sync/include/pico/ |
D | lock_core.h | 128 #define lock_internal_spin_unlock_with_wait(lock, save) spin_unlock((lock)->spin_lock, save), __wfe… argument 151 #define lock_internal_spin_unlock_with_notify(lock, save) spin_unlock((lock)->spin_lock, save), __s… argument 177 #define lock_internal_spin_unlock_with_best_effort_wait_or_timeout(lock, save, until) ({ \ argument 178 spin_unlock((lock)->spin_lock, save); \
|
D | critical_section.h | 31 uint32_t save; member 62 crit_sec->save = spin_lock_blocking(crit_sec->spin_lock); in critical_section_enter_blocking() 71 spin_unlock(crit_sec->spin_lock, crit_sec->save); in critical_section_exit()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_exception/ |
D | exception.c | 34 …ler_and_restore_interrupts(enum exception_number num, exception_handler_t handler, uint32_t save) { in set_raw_exception_handler_and_restore_interrupts() argument 38 restore_interrupts_from_disabled(save); in set_raw_exception_handler_and_restore_interrupts() 53 uint32_t save = save_and_disable_interrupts(); in exception_set_exclusive_handler() local 56 set_raw_exception_handler_and_restore_interrupts(num, handler, save); in exception_set_exclusive_handler() 66 uint32_t save = save_and_disable_interrupts(); in exception_restore_handler() local 67 set_raw_exception_handler_and_restore_interrupts(num, original_handler, save); in exception_restore_handler()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_timer/ |
D | timer.c | 161 uint32_t save = spin_lock_blocking(lock); in hardware_alarm_irq_handler() local 182 spin_unlock(lock, save); in hardware_alarm_irq_handler() 200 uint32_t save = spin_lock_blocking(lock); in timer_hardware_alarm_set_callback() local 208 spin_unlock(lock, save); in timer_hardware_alarm_set_callback() 227 uint32_t save = spin_lock_blocking(lock); in timer_hardware_alarm_set_target() local 259 spin_unlock(lock, save); in timer_hardware_alarm_set_target() 273 uint32_t save = spin_lock_blocking(lock); in timer_hardware_alarm_cancel() local 276 spin_unlock(lock, save); in timer_hardware_alarm_cancel() 286 uint32_t save = spin_lock_blocking(lock); in timer_hardware_alarm_force_irq() local 288 spin_unlock(lock, save); in timer_hardware_alarm_force_irq()
|
/hal_rpi_pico-latest/src/rp2_common/pico_multicore/ |
D | multicore.c | 215 uint32_t save = save_and_disable_interrupts(); in __not_in_flash_func() local 220 restore_interrupts_from_disabled(save); in __not_in_flash_func() 228 uint32_t save = hw_claim_lock(); in check_lockout_mutex_init() local 232 hw_claim_unlock(save); in check_lockout_mutex_init() 357 uint32_t save = hw_claim_lock(); in multicore_doorbell_claim() local 359 hw_claim_unlock(save); in multicore_doorbell_claim() 364 uint32_t save = hw_claim_lock(); in multicore_doorbell_claim_unused() local 374 hw_claim_unlock(save); in multicore_doorbell_claim_unused() 380 uint32_t save = hw_claim_lock(); in multicore_doorbell_unclaim() local 387 hw_claim_unlock(save); in multicore_doorbell_unclaim()
|
/hal_rpi_pico-latest/src/common/pico_time/ |
D | time.c | 208 uint32_t save = spin_lock_blocking(pool->lock); in alarm_pool_irq_handler() local 211 spin_unlock(pool->lock, save); in alarm_pool_irq_handler() 217 uint32_t save = spin_lock_blocking(pool->lock); in alarm_pool_irq_handler() local 222 spin_unlock(pool->lock, save); in alarm_pool_irq_handler() 324 uint32_t save = spin_lock_blocking(pool->lock); in alarm_pool_add_alarm_at_force_in_context() local 331 spin_unlock(pool->lock, save); in alarm_pool_add_alarm_at_force_in_context() 344 save = spin_lock_blocking(pool->lock); in alarm_pool_add_alarm_at_force_in_context() 347 spin_unlock(pool->lock, save); in alarm_pool_add_alarm_at_force_in_context() 360 uint32_t save = spin_lock_blocking(pool->lock); in alarm_pool_cancel_alarm() local 370 spin_unlock(pool->lock, save); in alarm_pool_cancel_alarm() [all …]
|
/hal_rpi_pico-latest/src/common/pico_util/include/pico/util/ |
D | queue.h | 98 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_get_level() local 100 spin_unlock(q->core.spin_lock, save); in queue_get_level() 124 uint32_t save = spin_lock_blocking(q->core.spin_lock); in queue_reset_max_level() local 126 spin_unlock(q->core.spin_lock, save); in queue_reset_max_level()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_pio/ |
D | pio.c | 100 uint32_t save = hw_claim_lock(); in pio_set_gpio_base() local 102 hw_claim_unlock(save); in pio_set_gpio_base() 146 uint32_t save = hw_claim_lock(); in pio_can_add_program() local 149 hw_claim_unlock(save); in pio_can_add_program() 154 uint32_t save = hw_claim_lock(); in pio_can_add_program_at_offset() local 156 hw_claim_unlock(save); in pio_can_add_program_at_offset() 174 uint32_t save = hw_claim_lock(); in pio_add_program() local 179 hw_claim_unlock(save); in pio_add_program() 184 uint32_t save = hw_claim_lock(); in pio_add_program_at_offset() local 186 hw_claim_unlock(save); in pio_add_program_at_offset() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_rand/ |
D | rand.c | 133 uint32_t save = spin_lock_blocking(lock); in capture_additional_trng_samples() local 170 spin_unlock(lock, save); in capture_additional_trng_samples() 208 uint32_t save = spin_lock_blocking(lock); in capture_additional_rosc_samples() local 222 spin_unlock(lock, save); in capture_additional_rosc_samples() 295 uint32_t save = spin_lock_blocking(lock); in initialise_rand() local 317 spin_unlock(lock, save); in initialise_rand() 358 uint32_t save = spin_lock_blocking(lock); in get_rand_64() local 369 spin_unlock(lock, save); in get_rand_64()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_irq/ |
D | irq.c | 54 static void set_raw_irq_handler_and_unlock(uint num, irq_handler_t handler, uint32_t save) { in set_raw_irq_handler_and_unlock() argument 58 spin_unlock(spin_lock_instance(PICO_SPINLOCK_ID_IRQ), save); in set_raw_irq_handler_and_unlock() 223 uint32_t save = spin_lock_blocking(lock); in irq_set_exclusive_handler() local 226 set_raw_irq_handler_and_unlock(num, handler, save); in irq_set_exclusive_handler() 236 uint32_t save = spin_lock_blocking(lock); in irq_get_exclusive_handler() local 238 spin_unlock(lock, save); in irq_get_exclusive_handler() 364 uint32_t save = spin_lock_blocking(lock); in irq_add_shared_handler() local 448 set_raw_irq_handler_and_unlock(num, vtable_handler, save); in irq_add_shared_handler() 473 uint32_t save = spin_lock_blocking(lock); in irq_remove_handler() local 575 set_raw_irq_handler_and_unlock(num, vtable_handler, save); in irq_remove_handler() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_aon_timer/ |
D | aon_timer.c | 110 uint32_t save = save_and_disable_interrupts(); in aon_timer_enable_alarm() 133 restore_interrupts_from_disabled(save); in aon_timer_enable_alarm() 143 uint32_t save = save_and_disable_interrupts(); in aon_timer_enable_alarm_calendar() local 149 restore_interrupts_from_disabled(save); in aon_timer_enable_alarm_calendar()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_boot_lock/include/hardware/ |
D | boot_lock.h | 97 uint32_t save = save_and_disable_interrupts(); in boot_lock_blocking() local 99 return save; in boot_lock_blocking()
|
/hal_rpi_pico-latest/src/rp2_common/pico_flash/ |
D | flash.c | 124 uint32_t save = save_and_disable_interrupts(); in __not_in_flash_func() local 130 restore_interrupts(save); in __not_in_flash_func()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_sync_spin_lock/include/hardware/sync/ |
D | spin_lock.h | 302 uint32_t save = save_and_disable_interrupts(); in spin_lock_blocking() local 304 return save; in spin_lock_blocking()
|
/hal_rpi_pico-latest/src/rp2_common/cmsis/stub/CMSIS/Core/Include/m-profile/ |
D | cmsis_iccarm_m.h | 188 #pragma language=save 200 #pragma language=save 211 #pragma language=save 222 #pragma language=save 233 #pragma language=save
|
/hal_rpi_pico-latest/src/rp2_common/cmsis/stub/CMSIS/Core/Include/ |
D | cmsis_iccarm.h | 181 #pragma language=save 193 #pragma language=save 204 #pragma language=save 215 #pragma language=save 226 #pragma language=save
|
/hal_rpi_pico-latest/src/rp2_common/pico_divider/ |
D | divider_hardware.S | 50 #error register layout has changed - we rely on this order to make sure we save/restore in the righ… 411 …str r2,[r7,#SIO_DIV_UDIVISOR_OFFSET] @ must set divisor again, as we do not save/restore regs at … 419 …str r2,[r7,#SIO_DIV_UDIVISOR_OFFSET] @ must set divisor again, as we do not save/restore regs at … 436 mov r12,r2 @ save x 641 push {r4-r7,r14} @ save a copy of x 646 push {r2-r3} @ save a copy of x 702 mov r14,r7 @ save q<<13
|
/hal_rpi_pico-latest/ |
D | CONTRIBUTING.md | 9 …d fork the original repository to your own account. You can make changes, save them in your reposi…
|
/hal_rpi_pico-latest/src/rp2_common/pico_double/ |
D | double_fma_dcp.S | 66 @ cf saving_func macro: but here we need to record the SP before the state save possibly changes it 77 mov r12,sp @ save the SP 311 mvn r14,r5,lsr#31 @ save complement of sign of a 388 @ r14b0: save complement of sign of a 586 @ cf saving_func macro: but here we need to record the SP before the state save possibly changes it 596 mov r12,sp @ save the SP
|
D | CMakeLists.txt | 54 …PICO_PRINTF_SUPPORT_FLOAT=0 # printing floats/doubles won't work, so we can save space by removing…
|