aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-05-08 16:28:05 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-05-08 16:28:05 -0400
commit68f29ea554603ee0a39dbe1a15c4fbcdb0736ccb (patch)
tree856222af3701bca562fe5b801b365b32d731026d /libmaple
parent780552d65b4ab0a6a70eed3c2074547e3b1dc255 (diff)
downloadlibrambutan-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.h2
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. */