Remove hw_set_bits from pio->irq (#978)

It is not known if this is required. This is done for consistency purposes. Related to #974
This commit is contained in:
David Thacher 2022-08-18 09:14:40 -04:00 committed by GitHub
parent 0d872ea409
commit 89bce613ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -818,7 +818,7 @@ static inline bool pio_interrupt_get(PIO pio, uint pio_interrupt_num) {
static inline void pio_interrupt_clear(PIO pio, uint pio_interrupt_num) { static inline void pio_interrupt_clear(PIO pio, uint pio_interrupt_num) {
check_pio_param(pio); check_pio_param(pio);
invalid_params_if(PIO, pio_interrupt_num >= 8); invalid_params_if(PIO, pio_interrupt_num >= 8);
hw_set_bits(&pio->irq, (1u << pio_interrupt_num)); pio->irq = (1u << pio_interrupt_num);
} }
/*! \brief Return the current program counter for a state machine /*! \brief Return the current program counter for a state machine