Skip to content

Commit

Permalink
f4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Feb 19, 2018
1 parent ae7e981 commit 9492f90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions targets/stm32/jshardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@ USART_TypeDef* getUsartFromDevice(IOEventFlags device) {
switch (device) {
case EV_SERIAL1 : return USART1;
case EV_SERIAL2 : return USART2;
#if USART_COUNT>=3
#if USART_COUNT>=3 && defined(USART3)
case EV_SERIAL3 : return USART3;
#endif
#if USART_COUNT>=4
#if USART_COUNT>=4 && defined(UART4)
case EV_SERIAL4 : return UART4;
#endif
#if USART_COUNT>=5
#if USART_COUNT>=5 && defined(UART5)
case EV_SERIAL5 : return UART5;
#endif
#if USART_COUNT>=6
Expand Down

0 comments on commit 9492f90

Please sign in to comment.