Home
last modified time | relevance | path

Searched refs:uint (Results 1 – 25 of 94) sorted by relevance

1234

/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/hardware_gpio/
Dgpio.c10 void gpio_set_function(uint gpio, enum gpio_function fn) { in gpio_set_function()
14 void gpio_pull_up(uint gpio) { in gpio_pull_up()
18 void gpio_pull_down(uint gpio) { in gpio_pull_down()
22 void gpio_disable_pulls(uint gpio) { in gpio_disable_pulls()
26 void gpio_set_pulls(uint gpio, bool up, bool down) { in gpio_set_pulls()
30 void gpio_set_irqover(uint gpio, uint value) { in gpio_set_irqover()
34 void gpio_set_outover(uint gpio, uint value) { in gpio_set_outover()
38 void gpio_set_inover(uint gpio, uint value) { in gpio_set_inover()
42 void gpio_set_oeover(uint gpio, uint value) { in gpio_set_oeover()
46 void gpio_set_input_hysteresis_enabled(uint gpio, bool enabled){ in gpio_set_input_hysteresis_enabled()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_pio/include/hardware/
Dpio_instructions.h78 static inline uint _pio_major_instr_bits(uint instr) { in _pio_major_instr_bits()
82 static inline uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uint arg1, uint arg2)… in _pio_encode_instr_and_args()
95 static inline uint _pio_encode_instr_and_src_dest(enum pio_instr_bits instr_bits, enum pio_src_dest… in _pio_encode_instr_and_src_dest()
110 static inline uint pio_encode_delay(uint cycles) { in pio_encode_delay()
128 static inline uint pio_encode_sideset(uint sideset_bit_count, uint value) { in pio_encode_sideset()
146 static inline uint pio_encode_sideset_opt(uint sideset_bit_count, uint value) { in pio_encode_sideset_opt()
161 static inline uint pio_encode_jmp(uint addr) { in pio_encode_jmp()
174 static inline uint pio_encode_jmp_not_x(uint addr) { in pio_encode_jmp_not_x()
187 static inline uint pio_encode_jmp_x_dec(uint addr) { in pio_encode_jmp_x_dec()
200 static inline uint pio_encode_jmp_not_y(uint addr) { in pio_encode_jmp_not_y()
[all …]
Dpio.h109 static inline void check_sm_param(__unused uint sm) { in check_sm_param()
113 static inline void check_sm_mask(__unused uint mask) { in check_sm_mask()
131 static inline void sm_config_set_out_pins(pio_sm_config *c, uint out_base, uint out_count) { in sm_config_set_out_pins()
148 static inline void sm_config_set_set_pins(pio_sm_config *c, uint set_base, uint set_count) { in sm_config_set_set_pins()
164 static inline void sm_config_set_in_pins(pio_sm_config *c, uint in_base) { in sm_config_set_in_pins()
178 static inline void sm_config_set_sideset_pins(pio_sm_config *c, uint sideset_base) { in sm_config_set_sideset_pins()
192 static inline void sm_config_set_sideset(pio_sm_config *c, uint bit_count, bool optional, bool pind… in sm_config_set_sideset()
219 (((uint)div_frac) << PIO_SM0_CLKDIV_FRAC_LSB) | in sm_config_set_clkdiv_int_frac()
220 (((uint)div_int) << PIO_SM0_CLKDIV_INT_LSB); in sm_config_set_clkdiv_int_frac()
263 static inline void sm_config_set_wrap(pio_sm_config *c, uint wrap_target, uint wrap) { in sm_config_set_wrap()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/hardware_gpio/include/hardware/
Dgpio.h52 void gpio_set_function(uint gpio, enum gpio_function fn);
54 enum gpio_function gpio_get_function(uint gpio);
56 void gpio_pull_up(uint gpio);
58 void gpio_pull_down(uint gpio);
60 void gpio_disable_pulls(uint gpio);
62 void gpio_set_pulls(uint gpio, bool up, bool down);
64 void gpio_set_irqover(uint gpio, uint value);
66 void gpio_set_outover(uint gpio, uint value);
68 void gpio_set_inover(uint gpio, uint value);
70 void gpio_set_oeover(uint gpio, uint value);
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_irq/include/hardware/
Dirq.h130 static inline void check_irq_param(__unused uint num) { in check_irq_param()
146 void irq_set_priority(uint num, uint8_t hardware_priority);
161 uint irq_get_priority(uint num);
169 void irq_set_enabled(uint num, bool enabled);
177 bool pico_irq_is_enabled(uint num);
201 void irq_set_exclusive_handler(uint num, irq_handler_t handler);
214 irq_handler_t irq_get_exclusive_handler(uint num);
240 void irq_add_shared_handler(uint num, irq_handler_t handler, uint8_t order_priority);
258 void irq_remove_handler(uint num, irq_handler_t handler);
266 bool irq_has_shared_handler(uint num);
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_gpio/include/hardware/
Dgpio.h137 typedef void (*gpio_irq_callback_t)(uint gpio, uint32_t event_mask);
171 static inline void check_gpio_param(__unused uint gpio) { in check_gpio_param()
186 void gpio_set_function(uint gpio, enum gpio_function fn);
194 enum gpio_function gpio_get_function(uint gpio);
206 void gpio_set_pulls(uint gpio, bool up, bool down);
213 static inline void gpio_pull_up(uint gpio) { in gpio_pull_up()
223 static inline bool gpio_is_pulled_up(uint gpio) { in gpio_is_pulled_up()
232 static inline void gpio_pull_down(uint gpio) { in gpio_pull_down()
242 static inline bool gpio_is_pulled_down(uint gpio) { in gpio_is_pulled_down()
251 static inline void gpio_disable_pulls(uint gpio) { in gpio_disable_pulls()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_gpio/
Dgpio.c22 int gpio_get_pad(uint gpio) { in gpio_get_pad()
32 void gpio_set_function(uint gpio, enum gpio_function fn) { in gpio_set_function()
46 enum gpio_function gpio_get_function(uint gpio) { in gpio_get_function()
53 void gpio_set_pulls(uint gpio, bool up, bool down) { in gpio_set_pulls()
63 void gpio_set_irqover(uint gpio, uint value) { in gpio_set_irqover()
72 void gpio_set_inover(uint gpio, uint value) { in gpio_set_inover()
80 void gpio_set_outover(uint gpio, uint value) { in gpio_set_outover()
88 void gpio_set_oeover(uint gpio, uint value) { in gpio_set_oeover()
96 void gpio_set_input_hysteresis_enabled(uint gpio, bool enabled) { in gpio_set_input_hysteresis_enabled()
105 bool gpio_is_input_hysteresis_enabled(uint gpio) { in gpio_is_input_hysteresis_enabled()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_pwm/include/hardware/
Dpwm.h69 static inline void check_slice_num_param(__unused uint slice_num) { in check_slice_num_param()
78 static inline uint pwm_gpio_to_slice_num(uint gpio) { in pwm_gpio_to_slice_num()
90 static inline uint pwm_gpio_to_channel(uint gpio) { in pwm_gpio_to_channel()
138 c->div = (((uint)integer) << PWM_CH0_DIV_INT_LSB) | (((uint)fract) << PWM_CH0_DIV_FRAC_LSB); in pwm_config_set_clkdiv_int_frac()
151 static inline void pwm_config_set_clkdiv_int(pwm_config *c, uint div) { in pwm_config_set_clkdiv_int()
172 | (((uint)mode) << PWM_CH0_CSR_DIVMODE_LSB); in pwm_config_set_clkdiv_mode()
210 static inline void pwm_init(uint slice_num, pwm_config *c, bool start) { in pwm_init()
254 static inline void pwm_set_wrap(uint slice_num, uint16_t wrap) { in pwm_set_wrap()
274 static inline void pwm_set_chan_level(uint slice_num, uint chan, uint16_t level) { in pwm_set_chan_level()
278 ((uint)level) << (chan ? PWM_CH0_CC_B_LSB : PWM_CH0_CC_A_LSB), in pwm_set_chan_level()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_dma/include/hardware/
Ddma.h49 static inline void check_dma_channel_param(__unused uint channel) { in check_dma_channel_param()
52 extern void check_dma_channel_param_impl(uint channel); in check_dma_channel_param()
57 static inline void check_dma_timer_param(__unused uint timer_num) { in check_dma_timer_param()
61 inline static dma_channel_hw_t *dma_channel_hw_addr(uint channel) { in dma_channel_hw_addr()
75 void dma_channel_claim(uint channel);
93 void dma_channel_unclaim(uint channel);
118 bool dma_channel_is_claimed(uint channel);
180 static inline void channel_config_set_dreq(dma_channel_config *c, uint dreq) { in channel_config_set_dreq()
194 static inline void channel_config_set_chain_to(dma_channel_config *c, uint chain_to) { in channel_config_set_chain_to()
210 …c->ctrl = (c->ctrl & ~DMA_CH0_CTRL_TRIG_DATA_SIZE_BITS) | (((uint)size) << DMA_CH0_CTRL_TRIG_DATA_… in channel_config_set_transfer_data_size()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_clocks/include/hardware/
Dclocks.h138 uint32_t frequency_count_khz(uint src);
145 void clock_set_reported_hz(enum clock_index clk_index, uint hz);
148 static inline float frequency_count_mhz(uint src) { in frequency_count_mhz()
178 void clock_gpio_init_int_frac(uint gpio, uint src, uint32_t div_int, uint8_t div_frac);
187 static inline void clock_gpio_init(uint gpio, uint src, float div) in clock_gpio_init()
189 uint div_int = (uint)div; in clock_gpio_init()
202 bool clock_configure_gpin(enum clock_index clk_index, uint gpio, uint32_t src_freq, uint32_t freq);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_pio/
Dpio.c23 void pio_sm_claim(PIO pio, uint sm) { in pio_sm_claim()
25 uint which = pio_get_index(pio); in pio_sm_claim()
33 void pio_claim_sm_mask(PIO pio, uint sm_mask) { in pio_claim_sm_mask()
34 for(uint i = 0; sm_mask; i++, sm_mask >>= 1u) { in pio_claim_sm_mask()
39 void pio_sm_unclaim(PIO pio, uint sm) { in pio_sm_unclaim()
41 uint which = pio_get_index(pio); in pio_sm_unclaim()
47 uint which = pio_get_index(pio); in pio_claim_unused_sm()
48 uint base = which * NUM_PIO_STATE_MACHINES; in pio_claim_unused_sm()
54 bool pio_sm_is_claimed(PIO pio, uint sm) { in pio_sm_is_claimed()
56 uint which = pio_get_index(pio); in pio_sm_is_claimed()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/hardware_timer/include/hardware/
Dtimer.h21 static inline void check_hardware_alarm_num_param(uint alarm_num) { in check_hardware_alarm_num_param()
31 typedef void (*hardware_alarm_callback_t)(uint alarm_num);
32 void hardware_alarm_claim(uint alarm_num);
33 void hardware_alarm_unclaim(uint alarm_num);
35 void hardware_alarm_set_callback(uint alarm_num, hardware_alarm_callback_t callback);
36 bool hardware_alarm_set_target(uint alarm_num, absolute_time_t t);
37 void hardware_alarm_cancel(uint alarm_num);
38 void hardware_alarm_force_irq(uint alarm_num);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/pico_stdlib/
Dstdlib.c39 void set_sys_clock_pll(uint32_t vco_freq, uint post_div1, uint post_div2) { in set_sys_clock_pll()
72 bool check_sys_clock_khz(uint32_t freq_khz, uint *vco_out, uint *postdiv1_out, uint *postdiv_out) { in check_sys_clock_khz()
73 uint crystal_freq_khz = clock_get_hz(clk_ref) / 1000; in check_sys_clock_khz()
74 for (uint fbdiv = 320; fbdiv >= 16; fbdiv--) { in check_sys_clock_khz()
75 uint vco = fbdiv * crystal_freq_khz; in check_sys_clock_khz()
77 for (uint postdiv1 = 7; postdiv1 >= 1; postdiv1--) { in check_sys_clock_khz()
78 for (uint postdiv2 = postdiv1; postdiv2 >= 1; postdiv2--) { in check_sys_clock_khz()
79 uint out = vco / (postdiv1 * postdiv2); in check_sys_clock_khz()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_timer/include/hardware/
Dtimer.h53 static inline void check_hardware_alarm_num_param(__unused uint alarm_num) { in check_hardware_alarm_num_param()
130 typedef void (*hardware_alarm_callback_t)(uint alarm_num, void *data);
140 void hardware_alarm_claim(uint alarm_num);
158 void hardware_alarm_unclaim(uint alarm_num);
167 bool hardware_alarm_is_claimed(uint alarm_num);
185 void hardware_alarm_set_callback(uint alarm_num, hardware_alarm_callback_t callback);
197 bool hardware_alarm_set_target(uint alarm_num, absolute_time_t t);
205 void hardware_alarm_cancel(uint alarm_num);
219 void hardware_alarm_force_irq(uint alarm_num);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_interp/include/hardware/
Dinterp.h57 static inline uint interp_index(interp_hw_t *interp) { in interp_index()
72 void interp_claim_lane(interp_hw_t *interp, uint lane);
82 void interp_claim_lane_mask(interp_hw_t *interp, uint lane_mask);
90 void interp_unclaim_lane(interp_hw_t *interp, uint lane);
103 bool interp_lane_is_claimed(interp_hw_t *interp, uint lane);
111 void interp_unclaim_lane_mask(interp_hw_t *interp, uint lane_mask);
121 static inline void interp_config_set_shift(interp_config *c, uint shift) { in interp_config_set_shift()
136 static inline void interp_config_set_mask(interp_config *c, uint mask_lsb, uint mask_msb) { in interp_config_set_mask()
245 static inline void interp_config_set_force_bits(interp_config *c, uint bits) { in interp_config_set_force_bits()
275 static inline void interp_set_config(interp_hw_t *interp, uint lane, interp_config *config) { in interp_set_config()
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_sync/
Dsync.c14 static void check_lock_num(uint __unused lock_num) { in check_lock_num()
19 for (uint i = 0; i < NUM_SPIN_LOCKS; i++) { in spin_locks_reset()
24 spin_lock_t *spin_lock_init(uint lock_num) { in spin_lock_init()
31 uint next_striped_spin_lock_num() { in next_striped_spin_lock_num()
32 uint rc = striped_spin_lock_num++; in next_striped_spin_lock_num()
39 void spin_lock_claim(uint lock_num) { in spin_lock_claim()
45 for(uint i = 0; mask; i++, mask >>= 1u) { in spin_lock_claim_mask()
50 void spin_lock_unclaim(uint lock_num) { in spin_lock_unclaim()
60 bool spin_lock_is_claimed(uint lock_num) { in spin_lock_is_claimed()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/hardware_sync/include/hardware/
Dsync.h20 static inline void atomic_thread_fence(uint x) {} in atomic_thread_fence()
75 uint spin_lock_get_num(spin_lock_t *lock);
77 spin_lock_t *spin_lock_instance(uint lock_num);
89 spin_lock_t *spin_lock_init(uint lock_num);
93 uint next_striped_spin_lock_num();
95 void spin_lock_claim(uint lock_num);
97 void spin_lock_unclaim(uint lock_num);
99 uint spin_lock_num(spin_lock_t *lock);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_sync/include/hardware/
Dsync.h230 __force_inline static spin_lock_t *spin_lock_instance(uint lock_num) { in spin_lock_instance()
241 __force_inline static uint spin_lock_get_num(spin_lock_t *lock) { in spin_lock_get_num()
242 invalid_params_if(SYNC, (uint) lock < SIO_BASE + SIO_SPINLOCK0_OFFSET || in spin_lock_get_num()
243 … (uint) lock >= NUM_SPIN_LOCKS * sizeof(spin_lock_t) + SIO_BASE + SIO_SPINLOCK0_OFFSET || in spin_lock_get_num()
244 … ((uint) lock - SIO_BASE + SIO_SPINLOCK0_OFFSET) % sizeof(spin_lock_t) != 0); in spin_lock_get_num()
245 return (uint) (lock - (spin_lock_t *) (SIO_BASE + SIO_SPINLOCK0_OFFSET)); in spin_lock_get_num()
292 uint lock_num = spin_lock_get_num(lock); in is_spin_locked()
320 spin_lock_t *spin_lock_init(uint lock_num);
342 uint next_striped_spin_lock_num(void);
353 void spin_lock_claim(uint lock_num);
[all …]
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/common/pico_stdlib/include/pico/
Dstdlib.h102 void set_sys_clock_pll(uint32_t vco_freq, uint post_div1, uint post_div2);
113 bool check_sys_clock_khz(uint32_t freq_khz, uint *vco_freq_out, uint *post_div1_out, uint *post_div…
127 uint vco, postdiv1, postdiv2; in set_sys_clock_khz()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/common/pico_util/include/pico/util/
Dqueue.h52 void queue_init_with_spinlock(queue_t *q, uint element_size, uint element_count, uint spinlock_num);
61 static inline void queue_init(queue_t *q, uint element_size, uint element_count) { in queue_init()
83 static inline uint queue_get_level_unsafe(queue_t *q) { in queue_get_level_unsafe()
88 return (uint)rc; in queue_get_level_unsafe()
97 static inline uint queue_get_level(queue_t *q) { in queue_get_level()
99 uint level = queue_get_level_unsafe(q); in queue_get_level()
112 static inline uint queue_get_max_level(queue_t *q) { in queue_get_max_level()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/pico_stdlib/
Dstdlib.c17 bool check_sys_clock_khz(uint32_t freq_khz, uint *vco_out, uint *postdiv1_out, uint *postdiv2_out) { in check_sys_clock_khz()
24 void set_sys_clock_pll(__unused uint32_t vco_freq, __unused uint post_div1, __unused uint post_div2… in set_sys_clock_pll()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/tools/pioasm/
Dpio_disassembler.h14 typedef unsigned int uint; typedef
16 std::string disassemble(uint16_t inst, uint sideset_bits, bool sideset_opt);
17 extern "C" void disassemble(char *buf, int buf_len, uint16_t inst, uint sideset_bits, bool sideset_…
19 void disassemble(char *buf, int buf_len, uint inst, uint sideset_bits, bool sideset_opt);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_claim/include/hardware/
Dclaim.h48 void hw_claim_or_assert(uint8_t *bits, uint bit_index, const char *message);
60 int hw_claim_unused_from_range(uint8_t *bits, bool required, uint bit_lsb, uint bit_msb, const char…
71 bool hw_is_claimed(const uint8_t *bits, uint bit_index);
81 void hw_claim_clear(uint8_t *bits, uint bit_index);
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/rp2_common/hardware_dma/
Ddma.c23 void dma_channel_claim(uint channel) { in dma_channel_claim()
29 for(uint i = 0; mask; i++, mask >>= 1u) { in dma_claim_mask()
34 void dma_channel_unclaim(uint channel) { in dma_channel_unclaim()
40 for(uint i = 0; mask; i++, mask >>= 1u) { in dma_unclaim_mask()
49 bool dma_channel_is_claimed(uint channel) { in dma_channel_is_claimed()
54 void dma_timer_claim(uint timer) { in dma_timer_claim()
59 void dma_timer_unclaim(uint timer) { in dma_timer_unclaim()
68 bool dma_timer_is_claimed(uint timer) { in dma_timer_is_claimed()
79 (uint) ctrl, in print_dma_ctrl()
97 void check_dma_channel_param_impl(uint __unused channel) { in check_dma_channel_param_impl()
/hal_rpi_pico-3.7.0-3.6.0-3.5.0/src/host/hardware_sync/
Dsync_core0_only.c31 spin_lock_t *PICO_WEAK_FUNCTION_IMPL_NAME(spin_lock_instance)(uint lock_num) { in PICO_WEAK_FUNCTION_DEF()
38 uint PICO_WEAK_FUNCTION_IMPL_NAME(spin_lock_get_num)(spin_lock_t *lock) { in PICO_WEAK_FUNCTION_DEF()
44 spin_lock_t *PICO_WEAK_FUNCTION_IMPL_NAME(spin_lock_init)(uint lock_num) { in PICO_WEAK_FUNCTION_DEF()
103 uint PICO_WEAK_FUNCTION_IMPL_NAME(get_core_num)() { in PICO_WEAK_FUNCTION_DEF()
110 for (uint i = 0; i < NUM_SPIN_LOCKS; i++) { in PICO_WEAK_FUNCTION_DEF()
116 uint PICO_WEAK_FUNCTION_IMPL_NAME(next_striped_spin_lock_num)() { in PICO_WEAK_FUNCTION_DEF()
121 void PICO_WEAK_FUNCTION_IMPL_NAME(spin_lock_claim)(uint lock_num) { in PICO_WEAK_FUNCTION_DEF()
129 void PICO_WEAK_FUNCTION_IMPL_NAME(spin_lock_unclaim)(uint lock_num) { in PICO_WEAK_FUNCTION_DEF()
138 uint PICO_WEAK_FUNCTION_IMPL_NAME(spin_lock_num)(spin_lock_t *lock) { in PICO_WEAK_FUNCTION_DEF()

1234