From: Kevin Rosenberg Date: Sun, 6 Jun 2010 17:56:22 +0000 (-0600) Subject: Move C ISR code to a static function X-Git-Url: http://git.kpe.io/?p=avr_serial_lcd.git;a=commitdiff_plain;h=7fc57d561bb8a264dc2c3b30d41cfead6a147b9b Move C ISR code to a static function --- 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<