mirror of https://github.com/ARMmbed/mbed-os.git
Fixed serial_device IRQ infinite loop bug due to uint8_t overflowing
parent
2d6db332e6
commit
6ed21ee1c0
|
@ -605,7 +605,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -476,7 +476,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -559,7 +559,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -522,7 +522,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -604,7 +604,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -560,7 +560,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -573,7 +573,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -500,7 +500,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -512,7 +512,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -536,7 +536,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
|
@ -461,7 +461,7 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
|
||||
volatile int return_event = 0;
|
||||
uint8_t *buf = (uint8_t *)(obj->rx_buff.buffer);
|
||||
uint8_t i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
// TX PART:
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_TC) != RESET) {
|
||||
|
|
Loading…
Reference in New Issue