diff --git a/src/rp2_common/hardware_irq/include/hardware/irq.h b/src/rp2_common/hardware_irq/include/hardware/irq.h index 13baf63eb..85caf6719 100644 --- a/src/rp2_common/hardware_irq/include/hardware/irq.h +++ b/src/rp2_common/hardware_irq/include/hardware/irq.h @@ -176,13 +176,6 @@ void irq_set_enabled(uint num, bool enabled); */ bool irq_is_enabled(uint num); -/*! \brief Determine which interrupts are currently enabled - * \ingroup hardware_irq - * - * \return 32-bit mask of the interrupt enabled status - */ -uint32_t irq_get_enabled(void); - /*! \brief Enable/disable multiple interrupts on the executing core * \ingroup hardware_irq * diff --git a/src/rp2_common/hardware_irq/irq.c b/src/rp2_common/hardware_irq/irq.c index 273aad429..f3398c400 100644 --- a/src/rp2_common/hardware_irq/irq.c +++ b/src/rp2_common/hardware_irq/irq.c @@ -56,11 +56,6 @@ bool irq_is_enabled(uint num) { return 0 != ((1u << num) & *((io_rw_32 *) (PPB_BASE + M0PLUS_NVIC_ISER_OFFSET))); } -uint32_t irq_get_enabled(void) -{ - return *((io_rw_32 *)(PPB_BASE + M0PLUS_NVIC_ISER_OFFSET)); -} - void irq_set_mask_enabled(uint32_t mask, bool enabled) { if (enabled) { // Clear pending before enable