Skip to content

Commit

Permalink
Remove irq_get_enabled
Browse files Browse the repository at this point in the history
Note sure why it was added
  • Loading branch information
peterharperuk committed May 24, 2024
1 parent 97e334f commit afae4a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions src/rp2_common/hardware_irq/include/hardware/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
5 changes: 0 additions & 5 deletions src/rp2_common/hardware_irq/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afae4a9

Please sign in to comment.