diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-05-08 16:28:05 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-05-08 16:28:05 -0400 |
commit | 68f29ea554603ee0a39dbe1a15c4fbcdb0736ccb (patch) | |
tree | 856222af3701bca562fe5b801b365b32d731026d /libmaple | |
parent | 780552d65b4ab0a6a70eed3c2074547e3b1dc255 (diff) | |
download | librambutan-68f29ea554603ee0a39dbe1a15c4fbcdb0736ccb.tar.gz librambutan-68f29ea554603ee0a39dbe1a15c4fbcdb0736ccb.zip |
Make usart_irq() __always_inline.
Compiling with -Os can prevent this from inlining, and it's an IRQ
handler, so the space is worth spending.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/usart_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/usart_private.h b/libmaple/usart_private.h index a5cec83..8e8e11b 100644 --- a/libmaple/usart_private.h +++ b/libmaple/usart_private.h @@ -37,7 +37,7 @@ #include <libmaple/ring_buffer.h> #include <libmaple/usart.h> -static inline void usart_irq(ring_buffer *rb, usart_reg_map *regs) { +static __always_inline void usart_irq(ring_buffer *rb, usart_reg_map *regs) { #ifdef USART_SAFE_INSERT /* If the buffer is full and the user defines USART_SAFE_INSERT, * ignore new bytes. */ |