Home
last modified time | relevance | path

Searched refs:num (Results 1 – 8 of 8) sorted by relevance

/hal_rpi_pico-3.4.0/src/rp2_common/hardware_exception/
Dexception.c26 static void set_raw_exception_handler_and_restore_interrupts(enum exception_number num, exception_h… in set_raw_exception_handler_and_restore_interrupts() argument
28 get_vtable()[16 + num] = handler; in set_raw_exception_handler_and_restore_interrupts()
33 static inline void check_exception_param(__unused enum exception_number num) { in check_exception_param() argument
34 invalid_params_if(EXCEPTION, num < NMI_EXCEPTION || num >=0); in check_exception_param()
37 exception_handler_t exception_get_vtable_handler(enum exception_number num) { in exception_get_vtable_handler() argument
38 check_exception_param(num); in exception_get_vtable_handler()
39 return get_vtable()[16 + num]; in exception_get_vtable_handler()
42 exception_handler_t exception_set_exclusive_handler(enum exception_number num, exception_handler_t … in exception_set_exclusive_handler() argument
43 check_exception_param(num); in exception_set_exclusive_handler()
46 exception_handler_t current = exception_get_vtable_handler(num); in exception_set_exclusive_handler()
[all …]
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_irq/include/hardware/
Dirq.h130 static inline void check_irq_param(__unused uint num) { in check_irq_param() argument
131 invalid_params_if(IRQ, num >= NUM_IRQS); 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);
[all …]
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_irq/
Dirq.c42 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
44 get_vtable()[VTABLE_FIRST_IRQ + num] = handler; in set_raw_irq_handler_and_unlock()
49 void irq_set_enabled(uint num, bool enabled) { in irq_set_enabled() argument
50 check_irq_param(num); in irq_set_enabled()
51 irq_set_mask_enabled(1u << num, enabled); in irq_set_enabled()
54 bool pico_irq_is_enabled(uint num) { in pico_irq_is_enabled() argument
55 check_irq_param(num); in pico_irq_is_enabled()
56 return 0 != ((1u << num) & *((io_rw_32 *) (PPB_BASE + M0PLUS_NVIC_ISER_OFFSET))); in pico_irq_is_enabled()
70 void irq_set_pending(uint num) { in irq_set_pending() argument
71 check_irq_param(num); in irq_set_pending()
[all …]
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_exception/include/hardware/
Dexception.h79 exception_handler_t exception_set_exclusive_handler(enum exception_number num, exception_handler_t …
92 void exception_restore_handler(enum exception_number num, exception_handler_t original_handler);
101 exception_handler_t exception_get_vtable_handler(enum exception_number num);
/hal_rpi_pico-3.4.0/src/rp2_common/pico_i2c_slave/
Di2c_slave.c80 uint num = I2C0_IRQ + i2c_index; in i2c_slave_init() local
81 irq_set_exclusive_handler(num, i2c_slave_irq_handler); in i2c_slave_init()
82 irq_set_enabled(num, true); in i2c_slave_init()
95 uint num = I2C0_IRQ + i2c_index; in i2c_slave_deinit() local
96 irq_set_enabled(num, false); in i2c_slave_deinit()
97 irq_remove_handler(num, i2c_slave_irq_handler); in i2c_slave_deinit()
/hal_rpi_pico-3.4.0/.github/
Dpull_request_template.md3 …- _please make sure there is an associated issue for your PR, and reference it via "Fixes #num" in…
/hal_rpi_pico-3.4.0/tools/pioasm/
Dpio_types.h374 rvalue num; member
377 instr_irq(const yy::location &l, const enum irq &modifiers, rvalue num, bool relative = false) :
378 instruction(l), modifiers(modifiers), num(std::move(num)), relative(relative) {} in instruction()
Dpio_assembler.cpp304 uint arg2 = num->resolve(program); in raw_encode()
305 if (arg2 > 7) throw syntax_error(num->location, "irq number must be must be >= 0 and <= 7"); in raw_encode()