| /hal_rpi_pico-latest/src/rp2_common/hardware_exception/ |
| D | exception.c | 34 static void set_raw_exception_handler_and_restore_interrupts(enum exception_number num, exception_h… in set_raw_exception_handler_and_restore_interrupts() argument 36 get_exception_table()[num] = handler; in set_raw_exception_handler_and_restore_interrupts() 41 static inline void check_exception_param(__unused enum exception_number num) { in check_exception_param() argument 42 invalid_params_if(HARDWARE_EXCEPTION, num < MIN_EXCEPTION_NUM || num > MAX_EXCEPTION_NUM); in check_exception_param() 45 exception_handler_t exception_get_vtable_handler(enum exception_number num) { in exception_get_vtable_handler() argument 46 check_exception_param(num); in exception_get_vtable_handler() 47 return get_exception_table()[num]; in exception_get_vtable_handler() 50 exception_handler_t exception_set_exclusive_handler(enum exception_number num, exception_handler_t … in exception_set_exclusive_handler() argument 51 check_exception_param(num); in exception_set_exclusive_handler() 54 exception_handler_t current = exception_get_vtable_handler(num); in exception_set_exclusive_handler() [all …]
|
| /hal_rpi_pico-latest/src/host/hardware_irq/include/hardware/ |
| D | irq.h | 130 static inline void check_irq_param(__unused uint num) { in check_irq_param() argument 131 invalid_params_if(HARDWARE_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); 210 void irq_set_exclusive_handler(uint num, irq_handler_t handler); 223 irq_handler_t irq_get_exclusive_handler(uint num); 249 void irq_add_shared_handler(uint num, irq_handler_t handler, uint8_t order_priority); 267 void irq_remove_handler(uint num, irq_handler_t handler); [all …]
|
| /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 56 get_vtable()[VTABLE_FIRST_IRQ + num] = handler; in set_raw_irq_handler_and_unlock() 61 void irq_set_enabled(uint num, bool enabled) { in irq_set_enabled() argument 62 check_irq_param(num); in irq_set_enabled() 64 irq_set_mask_n_enabled(num / 32, 1u << (num % 32), enabled); in irq_set_enabled() 67 bool pico_irq_is_enabled(uint num) { in pico_irq_is_enabled() argument 68 check_irq_param(num); in pico_irq_is_enabled() 70 return 0 != ((1u << num) & *((io_rw_32 *) (PPB_BASE + M0PLUS_NVIC_ISER_OFFSET))); in pico_irq_is_enabled() 72 return 0 != (hazard3_irqarray_read(RVCSR_MEIEA_OFFSET, num / 16) & (1u << (num % 16))); in pico_irq_is_enabled() 74 return 0 != (nvic_hw->iser[num/32] & (1 << num % 32)); in pico_irq_is_enabled() [all …]
|
| /hal_rpi_pico-latest/src/rp2_common/hardware_irq/include/hardware/ |
| D | irq.h | 197 static inline void check_irq_param(__unused uint num) { in check_irq_param() argument 198 invalid_params_if(HARDWARE_IRQ, num >= NUM_IRQS); in check_irq_param() 221 void irq_set_priority(uint num, uint8_t hardware_priority); 244 uint irq_get_priority(uint num); 252 void irq_set_enabled(uint num, bool enabled); 260 bool pico_irq_is_enabled(uint num); 293 void irq_set_exclusive_handler(uint num, irq_handler_t handler); 306 irq_handler_t irq_get_exclusive_handler(uint num); 332 void irq_add_shared_handler(uint num, irq_handler_t handler, uint8_t order_priority); 350 void irq_remove_handler(uint num, irq_handler_t handler); [all …]
|
| /hal_rpi_pico-latest/src/host/hardware_irq/ |
| D | irq.c | 25 void PICO_WEAK_FUNCTION_IMPL_NAME(irq_set_enabled)(uint num, bool enabled) { in PICO_WEAK_FUNCTION_DEF() 30 bool PICO_WEAK_FUNCTION_IMPL_NAME(irq_is_enabled)(uint num) { in PICO_WEAK_FUNCTION_DEF() 45 void PICO_WEAK_FUNCTION_IMPL_NAME(irq_set_pending)(uint num) { in PICO_WEAK_FUNCTION_DEF() 55 irq_handler_t PICO_WEAK_FUNCTION_IMPL_NAME(irq_get_vtable_handler)(uint num) { in PICO_WEAK_FUNCTION_DEF() 60 void PICO_WEAK_FUNCTION_IMPL_NAME(irq_set_exclusive_handler)(uint num, irq_handler_t handler) { in PICO_WEAK_FUNCTION_DEF() 65 irq_handler_t PICO_WEAK_FUNCTION_IMPL_NAME(irq_get_exclusive_handler)(uint num) { in PICO_WEAK_FUNCTION_DEF() 70 void PICO_WEAK_FUNCTION_IMPL_NAME(irq_add_shared_handler)(uint num, irq_handler_t handler, uint8_t … in PICO_WEAK_FUNCTION_DEF() 75 void PICO_WEAK_FUNCTION_IMPL_NAME(irq_remove_handler)(uint num, irq_handler_t handler) { in PICO_WEAK_FUNCTION_DEF() 80 void PICO_WEAK_FUNCTION_IMPL_NAME(irq_set_priority)(uint num, uint8_t hardware_priority) { in PICO_WEAK_FUNCTION_DEF() 85 uint PICO_WEAK_FUNCTION_IMPL_NAME(irq_get_priority)(uint num) { in PICO_WEAK_FUNCTION_DEF()
|
| /hal_rpi_pico-latest/src/rp2_common/hardware_exception/include/hardware/ |
| D | exception.h | 136 exception_handler_t exception_set_exclusive_handler(enum exception_number num, exception_handler_t … 149 void exception_restore_handler(enum exception_number num, exception_handler_t original_handler); 158 exception_handler_t exception_get_vtable_handler(enum exception_number num); 179 bool exception_set_priority(uint num, uint8_t hardware_priority); 199 uint exception_get_priority(uint num);
|
| /hal_rpi_pico-latest/src/rp2_common/pico_i2c_slave/ |
| D | i2c_slave.c | 75 uint num = I2C0_IRQ + i2c_index; in i2c_slave_init() local 76 irq_set_exclusive_handler(num, i2c_slave_irq_handler); in i2c_slave_init() 77 irq_set_enabled(num, true); in i2c_slave_init() 90 uint num = I2C0_IRQ + i2c_index; in i2c_slave_deinit() local 91 irq_set_enabled(num, false); in i2c_slave_deinit() 92 irq_remove_handler(num, i2c_slave_irq_handler); in i2c_slave_deinit()
|
| /hal_rpi_pico-latest/src/rp2_common/cmsis/stub/CMSIS/Core/Include/m-profile/ |
| D | armv8m_pmu.h | 174 __STATIC_INLINE void ARM_PMU_Set_EVTYPER(uint32_t num, uint32_t type); 183 __STATIC_INLINE uint32_t ARM_PMU_Get_EVCNTR(uint32_t num); 214 __STATIC_INLINE void ARM_PMU_Set_EVTYPER(uint32_t num, uint32_t type) in ARM_PMU_Set_EVTYPER() argument 216 PMU->EVTYPER[num] = type; in ARM_PMU_Set_EVTYPER() 273 __STATIC_INLINE uint32_t ARM_PMU_Get_EVCNTR(uint32_t num) in ARM_PMU_Get_EVCNTR() argument 275 return PMU_EVCNTR_CNT_Msk & PMU->EVCNTR[num]; in ARM_PMU_Get_EVCNTR()
|
| /hal_rpi_pico-latest/src/rp2_common/hardware_i2c/include/hardware/ |
| D | i2c.h | 179 #define I2C_INSTANCE(num) ((num) ? i2c1 : i2c0) argument 229 static inline i2c_inst_t *i2c_get_instance(uint num) { in i2c_get_instance() argument 230 invalid_params_if(HARDWARE_I2C, num >= NUM_I2CS); in i2c_get_instance() 231 return I2C_INSTANCE(num); in i2c_get_instance()
|
| /hal_rpi_pico-latest/src/rp2_common/hardware_uart/include/hardware/ |
| D | uart.h | 135 #define UART_INSTANCE(num) ((num) ? uart1 : uart0) argument 229 static inline uart_inst_t *uart_get_instance(uint num) { in uart_get_instance() argument 230 invalid_params_if(HARDWARE_UART, num >= NUM_UARTS); in uart_get_instance() 231 return UART_INSTANCE(num); in uart_get_instance()
|
| /hal_rpi_pico-latest/src/rp2_common/hardware_timer/include/hardware/ |
| D | timer.h | 91 #define TIMER_INSTANCE(num) timer_hw argument 93 #define TIMER_INSTANCE(num) ((num) ? timer1_hw : timer0_hw)
|
| /hal_rpi_pico-latest/.github/ |
| D | pull_request_template.md | 3 …- _please make sure there is an associated issue for your PR, and reference it via "Fixes #num" in…
|
| /hal_rpi_pico-latest/src/rp2_common/hardware_spi/include/hardware/ |
| D | spi.h | 119 #define SPI_INSTANCE(num) ((num) ? spi1 : spi0) argument
|
| /hal_rpi_pico-latest/src/rp2_common/pico_crt0/ |
| D | crt0.S | 55 .macro if_irq_word num func 56 .if \num < NUM_IRQS 191 .macro if_irq_decl num func 192 .if \num < NUM_IRQS
|
| /hal_rpi_pico-latest/tools/pioasm/ |
| D | pio_types.h | 469 rvalue num; member 472 instr_irq(const yy::location &l, const enum irq &modifiers, rvalue num, int irq_type = 0) : 473 instruction(l), modifiers(modifiers), num(std::move(num)), irq_type(irq_type) {} in instruction()
|
| D | pio_assembler.cpp | 433 uint arg2 = num->resolve(program); in raw_encode() 434 if (arg2 > 7) throw syntax_error(num->location, "irq number must be must be >= 0 and <= 7"); in raw_encode()
|