From 7fc57d561bb8a264dc2c3b30d41cfead6a147b9b Mon Sep 17 00:00:00 2001 From: Kevin Rosenberg Date: Sun, 6 Jun 2010 11:56:22 -0600 Subject: [PATCH] Move C ISR code to a static function --- serial_lcd.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/serial_lcd.c b/serial_lcd.c index b611fa1..bef0e8c 100644 --- a/serial_lcd.c +++ b/serial_lcd.c @@ -419,14 +419,9 @@ unsigned char LcdBusyWait (void) { return (LCDStatus); } -#if defined(__IMAGECRAFT__) -#pragma interrupt_handler usart_rx_handler:iv_USART0_RXC -void usart_rx_handler(void) -#else -ISR(USART_RX_vect) -#endif -{ - unsigned char rx, tmphead; +INLINE_FUNC_DECLARE(static void UartStoreRx (uint8_t rx)); +static inline void UartStoreRx (uint8_t rx) { + unsigned char tmphead; if (UCSRA & (1<