diff options
author | Karl Palsson <karlp@tweak.net.au> | 2017-01-08 23:20:46 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2017-03-31 00:48:07 +0300 |
commit | d964dcfca41cceb540204bf2cb42920fc27b8048 (patch) | |
tree | b9515e11da3a1c3e4824e725caa47c56c1a3be71 /include/libopencm3/stm32/common/usart_common_all.h | |
parent | f07b58c6d8cd1a580ac0039b553ea183d0197efc (diff) |
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
Diffstat (limited to 'include/libopencm3/stm32/common/usart_common_all.h')
-rw-r--r-- | include/libopencm3/stm32/common/usart_common_all.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/libopencm3/stm32/common/usart_common_all.h b/include/libopencm3/stm32/common/usart_common_all.h index 6eafdfdd..f838dfea 100644 --- a/include/libopencm3/stm32/common/usart_common_all.h +++ b/include/libopencm3/stm32/common/usart_common_all.h @@ -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 |