File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 33
33
#if defined(HAL_UART_MODULE_ENABLED)
34
34
#if defined(HAVE_HWSERIAL1) || defined(HAVE_HWSERIAL2) || defined(HAVE_HWSERIAL3) ||\
35
35
defined (HAVE_HWSERIAL4) || defined(HAVE_HWSERIAL5) || defined(HAVE_HWSERIAL6) ||\
36
- defined(HAVE_HWSERIAL7) || defined(HAVE_HWSERIAL8) || defined(HAVE_HWSERIAL8 ) ||\
36
+ defined(HAVE_HWSERIAL7) || defined(HAVE_HWSERIAL8) || defined(HAVE_HWSERIAL9 ) ||\
37
37
defined(HAVE_HWSERIAL10) || defined(HAVE_HWSERIALLP1)
38
38
// SerialEvent functions are weak, so when the user doesn't define them,
39
39
// the linker just sets their address to 0 (which is checked below).
@@ -358,7 +358,7 @@ void HardwareSerial::flush()
358
358
359
359
while ((_serial.tx_head != _serial.tx_tail )) {
360
360
// nop, the interrupt handler will free up space for us
361
- __WFI ();
361
+ __WFI ();
362
362
}
363
363
// If we get here, nothing is queued anymore (DRIE is disabled) and
364
364
// the hardware finished tranmission (TXC is set).
@@ -374,7 +374,7 @@ size_t HardwareSerial::write(uint8_t c)
374
374
// wait for the interrupt handler to empty it a bit
375
375
while (i == _serial.tx_tail ) {
376
376
// nop, the interrupt handler will free up space for us
377
- __WFI ();
377
+ __WFI ();
378
378
}
379
379
380
380
_serial.tx_buff [_serial.tx_head ] = c;
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ void uart_deinit(serial_t *obj)
466
466
__HAL_RCC_UART9_CLK_DISABLE ();
467
467
break ;
468
468
#endif
469
- #if defined(HAVE_HWSERIAL9 )
469
+ #if defined(HAVE_HWSERIAL10 )
470
470
case 9 :
471
471
__HAL_RCC_UART10_FORCE_RESET ();
472
472
__HAL_RCC_UART10_RELEASE_RESET ();
@@ -901,18 +901,18 @@ void USART3_IRQHandler(void)
901
901
#endif
902
902
#if defined(STM32F0xx )
903
903
/* USART3_4_IRQn */
904
- #if defined(ENABLE_HWSERIAL3 )
904
+ #if defined(ENABLE_HWSERIAL4 )
905
905
if (uart_handlers [3 ] != NULL ) {
906
906
HAL_UART_IRQHandler (uart_handlers [3 ]);
907
907
}
908
908
#endif
909
909
#if defined(STM32F030xC )
910
- #if defined(ENABLE_HWSERIAL4 )
910
+ #if defined(ENABLE_HWSERIAL5 )
911
911
if (uart_handlers [4 ] != NULL ) {
912
912
HAL_UART_IRQHandler (uart_handlers [4 ]);
913
913
}
914
914
#endif
915
- #if defined(ENABLE_HWSERIAL5 )
915
+ #if defined(ENABLE_HWSERIAL6 )
916
916
if (uart_handlers [5 ] != NULL ) {
917
917
HAL_UART_IRQHandler (uart_handlers [5 ]);
918
918
}
You can’t perform that action at this time.
0 commit comments