From 68f29ea554603ee0a39dbe1a15c4fbcdb0736ccb Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 8 May 2012 16:28:05 -0400 Subject: 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 --- libmaple/usart_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmaple/usart_private.h') 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 #include -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. */ -- cgit v1.2.3