Skip to content

Commit 028465a

Browse files
adustm0xc0170
authored andcommitted
[B96B_F446VE] change serial type
Use only the index, not the UARTName any more. In case of app with 2 serial (using DMA) + 1 serial (stdio), we have found a bug. The dma handler is overwritten by the last initialized serial object. Therefore read and write functions did not work anymore. We have reworked this file to save 1 handler per UART IP, and align it with MBED OS file. Tests have been passed. Same status as before (OK except MBED_37, manual test for SERIAL_ASYNC also OK).
1 parent 471fa67 commit 028465a

File tree

2 files changed

+596
-251
lines changed

2 files changed

+596
-251
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/objects.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ struct dac_s {
6666
};
6767

6868
struct serial_s {
69-
UARTName uart;
70-
int index; // Used by irq
69+
int index;
7170
uint32_t baudrate;
7271
uint32_t databits;
7372
uint32_t stopbits;

0 commit comments

Comments
 (0)