stm32:usart: drop usart_get_interrupt_source()
It was never complete, even for F1 family code, and went on to be even less complete for f0 and f3. The usefulness of a library function to check for both the irq being enabled _and_ the status flag is highly questionable, and caused known user confusion. The existing, much simpler, and fully functional usart_get_flag() is a good replacement in almost all sane use cases. Fixes https://github.com/libopencm3/libopencm3/issues/734
This commit is contained in:
@@ -127,7 +127,6 @@ void usart_disable_tx_interrupt(uint32_t usart);
|
||||
void usart_enable_error_interrupt(uint32_t usart);
|
||||
void usart_disable_error_interrupt(uint32_t usart);
|
||||
bool usart_get_flag(uint32_t usart, uint32_t flag);
|
||||
bool usart_get_interrupt_source(uint32_t usart, uint32_t flag);
|
||||
|
||||
END_DECLS
|
||||
|
||||
|
||||
@@ -326,7 +326,6 @@ void usart_disable_tx_interrupt(uint32_t usart);
|
||||
void usart_enable_error_interrupt(uint32_t usart);
|
||||
void usart_disable_error_interrupt(uint32_t usart);
|
||||
bool usart_get_flag(uint32_t usart, uint32_t flag);
|
||||
bool usart_get_interrupt_source(uint32_t usart, uint32_t flag);
|
||||
|
||||
END_DECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user