change(lp-core): Update LP I2C and LP UART drivers to use raw interrupt status

This commit updates the LP I2C and LP UART drivers to use the raw
interrupt status without enabling the interrupts.
This commit is contained in:
Sudeep Mohanty
2025-05-13 15:43:39 +02:00
parent 8a4f94faf4
commit 0f45b6c6c3
7 changed files with 75 additions and 29 deletions
@@ -291,6 +291,19 @@ static inline void i2c_ll_get_intr_mask(i2c_dev_t *hw, uint32_t *intr_status)
*intr_status = hw->int_status.val;
}
/**
* @brief Get I2C raw interrupt status
*
* @param hw Beginning address of the peripheral registers
*
* @return I2C raw interrupt status
*/
__attribute__((always_inline))
static inline void i2c_ll_get_intr_raw_mask(i2c_dev_t *hw, uint32_t *intr_status)
{
*intr_status = hw->int_raw.val;
}
/**
* @brief Configure I2C memory access mode, FIFO mode or non-FIFO mode
*