zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.09k stars 6.2k forks source link

ATMEL SAM family UART and USART - functions u(s)art_sam_irq_is_pending doesn't respect IRQ settings #13624

Closed kubiaj closed 5 years ago

kubiaj commented 5 years ago

The function usart_sam_irq_is_pending (uart_sam_irq_is_pending) return only the masked value of US_CSR register but it doesn't respect if the IRQ is enabled or not. For proper function it must check if the IRQ is enabled for the event.

Expected behavior: Return 0 when values in US_CSR are set and IRQs are disabled.

Impact: Some drivers are not working because they are trying to clear the pending IRQs.

Environment :

PR in progress.

kubiaj commented 5 years ago

PR: #13636

galak commented 5 years ago

Closing as we merged #13636