Diff of /rx_ringbuffer.c [f6f117] .. [8ad5a4] Maximize Restore

  Switch to side-by-side view

--- a/rx_ringbuffer.c
+++ b/rx_ringbuffer.c
@@ -31,8 +31,12 @@
   UART2_ITConfig(UART2_IT_RXNE_OR, ENABLE);
 }
 
+#if defined(__ICCSTM8__)
 #pragma vector = UART2_RX_vector
 __interrupt void UART_RX_vector(void)
+#elif defined(SDCC)
+void UART_RX_vector(void) __interrupt(UART2_RX_vector)
+#endif
 {
   
   rx_ring[rx_head] = UART2->DR;
@@ -59,4 +63,4 @@
   rx_tail++;
  
   return temp;
-}+}