Subversion Repositories libSerial

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2.  
  3. #include "libSerial/serial.h"
  4.  
  5. /// @brief Interrupt handler generic wrapper
  6. /// @param instance Pointer to usart_ctl structure
  7. extern void UART_IRQHandler(struct usart_ctl *instance);
  8.  
  9. /////////////////////////////////////////////////////////
  10. /// Moved from generated code  to avoid crappy HAL handler
  11. #if defined SERIAL_UART1
  12.  
  13. struct usart_ctl uc1;
  14. void USART1_IRQHandler(void)
  15. {
  16.   UART_IRQHandler(&uc1);
  17. }
  18. #endif
  19. #if defined SERIAL_UART2
  20. struct usart_ctl uc2;
  21. void USART2_IRQHandler(void)
  22. {
  23.   UART_IRQHandler(&uc2);
  24. }
  25. #endif
  26. #if defined SERIAL_UART3
  27. struct usart_ctl uc3;
  28. void USART3_IRQHandler(void)
  29. {
  30.   UART_IRQHandler(&uc3);
  31. }
  32. #endif
  33. #if defined SERIAL_UART4
  34. struct usart_ctl uc5;
  35. void UART4_IRQHandler(void)
  36. {
  37.   UART_IRQHandler(&uc4);
  38. }
  39. #endif
  40. #if defined SERIAL_UART5
  41. struct usart_ctl uc5;
  42. void UART5_IRQHandler(void)
  43. {
  44.   UART_IRQHandler(&uc5);
  45. }
  46. #endif
  47.