Skip to content

Commit f51d8cf

Browse files
committed
MTS Gambit - remove serial flow control
Plus protect serial flow in the common k64f code, as not all targets provide its support.
1 parent 29d36f0 commit f51d8cf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

hal/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@
575575
"is_disk_virtual": true,
576576
"macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED", "TARGET_K64F"],
577577
"progen": {"target": "mts-gambit"},
578-
"device_has": ["I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"]
578+
"device_has": ["I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"]
579579
},
580580
"HEXIWEAR": {
581581
"inherits": ["Target"],

hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/serial_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ void serial_break_clear(serial_t *obj) {
280280
uart_addrs[obj->index]->C2 &= ~UART_C2_SBK_MASK;
281281
}
282282

283+
#if DEVICE_HAS_SERIAL_FC
284+
283285
/*
284286
* Only hardware flow control is implemented in this API.
285287
*/
@@ -314,3 +316,5 @@ void serial_set_flow_control(serial_t *obj, FlowControl type, PinName rxflow, Pi
314316
}
315317

316318
#endif
319+
320+
#endif

0 commit comments

Comments
 (0)