Skip to content

Commit 39127f8

Browse files
authored
Merge pull request #2462 from svastm/serial_asynch_f2
[STM32F2] Add asynchronous serial
2 parents a3a9daf + cd7c44b commit 39127f8

File tree

4 files changed

+375
-918
lines changed

4 files changed

+375
-918
lines changed

hal/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@
702702
"inherits": ["Target"],
703703
"progen": {"target": "nucleo-f207zg"},
704704
"detect_code": ["0835"],
705-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
705+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
706706
"features": ["IPV4"],
707707
"release_versions": ["2"]
708708
},

hal/targets/hal/TARGET_STM/TARGET_STM32F2/objects.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ 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
80+
#if DEVICE_SERIAL_FC
81+
uint32_t hw_flow_ctl;
82+
PinName pin_rts;
83+
PinName pin_cts;
84+
#endif
7785
};
7886

7987
struct spi_s {

0 commit comments

Comments
 (0)