/hal_rpi_pico-latest/src/common/hardware_claim/ |
D | claim.c | 17 inline bool hw_is_claimed(const uint8_t *bits, uint bit_index) { in hw_is_claimed() argument 18 return (bits[bit_index >> 3u] & (1u << (bit_index & 7u))); in hw_is_claimed() 21 void hw_claim_or_assert(uint8_t *bits, uint bit_index, const char *message) { in hw_claim_or_assert() argument 23 if (hw_is_claimed(bits, bit_index)) { in hw_claim_or_assert() 26 bits[bit_index >> 3u] |= (uint8_t)(1u << (bit_index & 7u)); in hw_claim_or_assert() 31 int hw_claim_unused_from_range(uint8_t *bits, bool required, uint bit_lsb, uint bit_msb, const char… in hw_claim_unused_from_range() argument 36 if (!hw_is_claimed(bits, bit)) { in hw_claim_unused_from_range() 37 bits[bit >> 3u] |= (uint8_t)(1u << (bit & 7u)); in hw_claim_unused_from_range() 49 void hw_claim_clear(uint8_t *bits, uint bit_index) { in hw_claim_clear() argument 51 assert(hw_is_claimed(bits, bit_index)); in hw_claim_clear() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/hardware_resets/include/hardware/ |
D | resets.h | 92 static __force_inline void reset_block_mask(uint32_t bits) { in reset_block_mask() argument 93 reset_block_reg_mask(&resets_hw->reset, bits); in reset_block_mask() 101 static __force_inline void unreset_block_mask(uint32_t bits) { in unreset_block_mask() argument 102 unreset_block_reg_mask(&resets_hw->reset, bits); in unreset_block_mask() 110 static __force_inline void unreset_block_mask_wait_blocking(uint32_t bits) { in unreset_block_mask_wait_blocking() argument 111 unreset_block_reg_mask_wait_blocking(&resets_hw->reset, &resets_hw->reset_done, bits); in unreset_block_mask_wait_blocking() 121 static __force_inline void reset_block(uint32_t bits) { in reset_block() argument 122 reset_block_mask(bits); in reset_block() 125 static __force_inline void unreset_block(uint32_t bits) { in unreset_block() argument 126 unreset_block_mask(bits); in unreset_block() [all …]
|
/hal_rpi_pico-latest/src/common/hardware_claim/include/hardware/ |
D | claim.h | 47 void hw_claim_or_assert(uint8_t *bits, uint bit_index, const char *message); 59 int hw_claim_unused_from_range(uint8_t *bits, bool required, uint bit_lsb, uint bit_msb, const char… 70 bool hw_is_claimed(const uint8_t *bits, uint bit_index); 80 void hw_claim_clear(uint8_t *bits, uint bit_index);
|
/hal_rpi_pico-latest/src/rp2_common/hardware_powman/include/hardware/ |
D | powman.h | 106 static inline void powman_set_bits(volatile uint32_t *reg, uint32_t bits) { in powman_set_bits() argument 107 invalid_params_if(HARDWARE_POWMAN, bits >> 16); in powman_set_bits() 108 hw_set_bits(reg, POWMAN_PASSWORD_BITS | bits); in powman_set_bits() 120 static inline void powman_clear_bits(volatile uint32_t *reg, uint32_t bits) { in powman_clear_bits() argument 121 invalid_params_if(HARDWARE_POWMAN, bits >> 16); in powman_clear_bits() 122 hw_clear_bits(reg, POWMAN_PASSWORD_BITS | bits); in powman_clear_bits()
|
/hal_rpi_pico-latest/src/common/pico_bit_ops_headers/include/pico/ |
D | bit_ops.h | 31 uint32_t __rev(uint32_t bits); 39 uint64_t __revll(uint64_t bits);
|
/hal_rpi_pico-latest/src/rp2_common/pico_float/ |
D | float_conv_m33.S | 30 @ convert signed 64-bit fix to float, rounding; number of r0:r1 bits after point in r2 41 lsls r12,r0,r3 @ bits that will be lost 56 lsls r12,r1,r3 @ rounding bit in carry, sticky bits in r12 57 orrs r12,r12,r0 @ all of low word into sticky bits: affects Z but not C 89 @ convert signed 32-bit fix to float, rounding; number of r0 bits after point in r1 110 lsls r12,r0,r3 @ rounding bit in carry, sticky bits in r12 139 @ convert unsigned 32-bit fix to float, rounding; number of r0 bits after point in r1 158 lsls r12,r0,r3 @ rounding bit in carry, sticky bits in r12 190 @ convert unsigned 64-bit fix to float, rounding; number of r0:r1 bits after point in r2 198 lsls r12,r0,r3 @ bits that will be lost [all …]
|
D | float_v1_rom_shim_rp2040.S | 65 @ convert unsigned 64-bit fix to float, rounding; number of r0:r1 bits after point in r2 70 lsls r5,r1,#31 @ contribution to sticky bits 80 @ convert signed 64-bit fix to float, rounding; number of r0:r1 bits after point in r2 87 asrs r5,r1,#31 @ sign bits 89 asrs r4,r1,#24 @ try shifting 7 bits at a time 264 @ r3 mantissa sign extension bits 306 movs r0,r3 @ result very near zero: use sign extension bits 312 bne 1f @ sign extension bits fail to match sign of result? 330 lsrs r1,#4 @ exponent and top 20 bits of mantissa 334 lsls r0,#29 @ bottom 3 bits of mantissa
|
D | float_aeabi_rp2040.S | 399 … tripped carry? then have leading 1 in C as required (and result is even so can ignore sticky bits) 401 lsls r3,r1,#24 @ check bottom 8 bits of r1
|
/hal_rpi_pico-latest/src/rp2_common/pico_double/ |
D | double_fma_dcp.S | 144 WXMS r0,r1 @ write sticky bits 145 WXMO r2,r3 @ write sticky+result bits 156 WXMS r0,r1 @ write sticky bits 157 WXMO r2,r3 @ write sticky+result bits 167 WXMS r0,r1 @ write sticky bits 168 WXMO r2,r3 @ write sticky+result bits 185 WXMS r0,r1 @ write sticky bits 186 WXMO r2,r3 @ write sticky+result bits 198 orr r0,r0,r4 @ contribution from a to sticky bits 199 WXMS r0,r1 @ write sticky bits [all …]
|
D | double_v1_rom_shim_rp2040.S | 66 @ rx:ry means the concatenation of rx and ry with rx having the less significant bits 92 @ mantissa in ra:rb 12Q52 (53 significant bits) with implied 1 set 118 @ signed mantissa in ra:rb 12Q52 (53 significant bits) with implied 1 187 lsls r4,r4,r7 @ rounding bit + sticky bits 198 …unnormalised signed result (possibly 0) is in r0:r1 with exponent r12, rounding + sticky bits in r4 200 @ cannot have not gone via the xrgty/yrgtx paths. There will therefore always be enough high bits i… 234 cmp r4,#0 @ sticky bits zero? 291 lsls r4,r4,r7 @ these would be shifted off the bottom of the sticky bits 310 lsls r4,r4,r6 @ rounding bit + sticky bits 326 lsls r4,r4,r6 @ these would be shifted off the bottom of the sticky bits [all …]
|
D | double_conv_m33.S | 30 @ convert unsigned 64-bit fix to double, rounding; number of r0:r1 bits after point in r2 60 lsls r12,r0,r3 @ rounding bit in carry, sticky bits in Z 101 @ convert unsigned 64-bit fix to double, rounding; number of r0:r1 bits after point in r2 127 lsls r12,r0,r3 @ rounding bit in carry, sticky bits in Z
|
D | double_sci_m33.S | 187 @ r2:r3 θ Q64 (with r12 bits of loss of precision) 626 @ r0:r1 x, double (only mantissa bits used) 864 lsls r3,r3,#24 @ check 8 bits of mantissa
|
/hal_rpi_pico-latest/src/rp2_common/hardware_interp/include/hardware/ |
D | interp.h | 250 static inline void interp_config_set_force_bits(interp_config *c, uint bits) { in interp_config_set_force_bits() argument 251 invalid_params_if(HARDWARE_INTERP, bits > 3); in interp_config_set_force_bits() 254 (bits << SIO_INTERP0_CTRL_LANE0_FORCE_MSB_LSB); in interp_config_set_force_bits() 302 static inline void interp_set_force_bits(interp_hw_t *interp, uint lane, uint bits) { in interp_set_force_bits() argument 304 interp->ctrl[lane] = interp->ctrl[lane] | (bits << SIO_INTERP0_CTRL_LANE0_FORCE_MSB_LSB); in interp_set_force_bits()
|
/hal_rpi_pico-latest/src/rp2_common/pico_multicore/ |
D | multicore.c | 323 static inline bool is_bit_claimed(const uint8_t *bits, uint bit_index) { in is_bit_claimed() argument 324 return (bits[bit_index >> 3u] & (1u << (bit_index & 7u))); in is_bit_claimed() 327 static inline void set_claimed_bit(uint8_t *bits, uint bit_index) { in set_claimed_bit() argument 328 bits[bit_index >> 3u] |= ( uint8_t ) ( 1u << ( bit_index & 7u )); in set_claimed_bit() 331 static inline void clear_claimed_bit(uint8_t *bits, uint bit_index) { in clear_claimed_bit() argument 332 bits[bit_index >> 3u] &= ( uint8_t ) ~( 1u << ( bit_index & 7u )); in clear_claimed_bit()
|
/hal_rpi_pico-latest/src/rp2_common/pico_divider/ |
D | divider_hardware.S | 344 bne y64 @ y fits in 32 bits? 385 @ here y occupies more than 32 bits 390 b y64_x48 @ if x does not fit in 32 bits, go to 48- and 64-bit cases 393 bne y64_x32 @ jump if x is 17..32 bits 395 @ here x is at most 16 bits 434 @ here x is 17..32 bits 458 @ now 2^31<=x0<2^32, 0<=xsh<16 (amount x is shifted in x0); number of quotient bits to be calculate… 523 lsrs r2,#9 @ x0>>9: this shift loses no bits 525 @ bits (at most 6 bits) times x, and so fits in one word 640 @ here x is 33..64 bits [all …]
|
/hal_rpi_pico-latest/tools/pioasm/ |
D | pio_assembler.cpp | 210 int bits = sideset.value->resolve(*this); in finalize() local 211 if (bits < 0) { in finalize() 214 sideset_max = (1u << bits) - 1; in finalize() 215 if (sideset_opt) bits++; in finalize() 216 sideset_bits_including_opt = bits; in finalize() 217 if (bits > 5) { in finalize() 223 delay_max = (1u << (5 - bits)) - 1; in finalize()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_gpio/include/hardware/ |
D | gpio.h | 1192 uint32_t bits = gpio < 32 ? sio_hw->gpio_out : sio_hw->gpio_hi_out; in gpio_get_out_level() 1193 return bits & (1u << (gpio & 0x1fu)); in gpio_get_out_level() 1377 uint32_t bits = gpio < 32 ? sio_hw->gpio_oe : sio_hw->gpio_hi_oe; in gpio_is_dir_out() 1378 return bits & (1u << (gpio & 0x1fu)); in gpio_is_dir_out()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_clocks/include/hardware/ |
D | clocks.h | 406 #error unsupported number of fractional bits in clock_gpio_init()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_clocks/ |
D | clocks.c | 257 #error unsupported number of fractional bits in clock_gpio_init_int_frac16()
|