Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /rx_ringbuffer.h [8ad5a4] .. [1d4b9c] Maximize Restore

  Switch to side-by-side view

--- a/rx_ringbuffer.h
+++ b/rx_ringbuffer.h
@@ -21,11 +21,23 @@
 
 #define UART2_IsRX() (UART2->SR & UART2_SR_RXNE)
 #define UART2_HasError() (UART2->SR & (UART2_SR_OR | UART2_SR_FE | UART2_SR_PE | UART2_SR_NF))
+
+#if defined(__ICCSTM8__)
 #define UART2_RX_vector 0x17
+#elif defined(SDCC)
+#define UART2_RX_vector 21
+#endif
+
+
 
 extern void InitRXBuffer();
 extern unsigned char RXBuffer_HasBytes();
 extern unsigned char RXBuffer_ReadBytes();
+extern void UART2_WaitTX(void);
+
+#if defined(SDCC)
+extern void UART_RX_vector(void) __interrupt(UART2_RX_vector);
+#endif
 
 #endif