OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include "platforms/stm/disco_fletch/src/uart.h" | 5 #include "platforms/stm/disco_fletch/src/uart.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <stm32f7xx_hal.h> | 9 #include <stm32f7xx_hal.h> |
10 | 10 |
11 #include "src/shared/atomic.h" | 11 #include "src/shared/atomic.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 error = HAL_UART_GetError(huart); | 155 error = HAL_UART_GetError(huart); |
156 | 156 |
157 // Clear all errors. | 157 // Clear all errors. |
158 __HAL_UART_CLEAR_OREFLAG(&huart1); | 158 __HAL_UART_CLEAR_OREFLAG(&huart1); |
159 __HAL_UART_CLEAR_FEFLAG(&huart1); | 159 __HAL_UART_CLEAR_FEFLAG(&huart1); |
160 __HAL_UART_CLEAR_PEFLAG(&huart1); | 160 __HAL_UART_CLEAR_PEFLAG(&huart1); |
161 __HAL_UART_CLEAR_NEFLAG(&huart1); | 161 __HAL_UART_CLEAR_NEFLAG(&huart1); |
162 | 162 |
163 ReturnFromInterrupt(huart, kErrorBit); | 163 ReturnFromInterrupt(huart, kErrorBit); |
164 } | 164 } |
OLD | NEW |