Skip to content

Commit bad9c12

Browse files
committed
Merge pull request #1493 from adustm/b96b_asyn_serial_new
B96B async serial
2 parents b5816d8 + 0e739aa commit bad9c12

File tree

4 files changed

+759
-54
lines changed

4 files changed

+759
-54
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
#define DEVICE_ANALOGOUT 1
4141

4242
#define DEVICE_SERIAL 1
43-
#define DEVICE_SERIAL_ASYNCH 0
44-
#define DEVICE_SERIAL_ASYNCH_DMA 0
43+
#define DEVICE_SERIAL_ASYNCH 1
44+
#define DEVICE_SERIAL_ASYNCH_DMA 1
4545
#define DEVICE_SERIAL_FC 0
4646

4747
#define DEVICE_I2C 1

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ struct serial_s {
7474
uint32_t parity;
7575
PinName pin_tx;
7676
PinName pin_rx;
77+
#if DEVICE_SERIAL_ASYNCH
78+
uint32_t events;
79+
#endif
7780
};
7881

7982
struct spi_s {

0 commit comments

Comments
 (0)