Skip to content

Commit 0395843

Browse files
committed
TARGET_NRF5 - Explicitaly convert objects uint32_t to object of type PinName.
1 parent 6cdfb19 commit 0395843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void serial_init(serial_t *obj, PinName tx, PinName rx) {
310310
nrf_uart_configure(UART_INSTANCE, UART_CB.parity, UART_CB.hwfc);
311311
if (UART_CB.hwfc == NRF_UART_HWFC_ENABLED) {
312312
serial_set_flow_control(obj, FlowControlRTSCTS,
313-
UART_CB.pselrts, UART_CB.pselcts);
313+
(PinName) UART_CB.pselrts, (PinName) UART_CB.pselcts);
314314
}
315315
nrf_uart_enable(UART_INSTANCE);
316316

0 commit comments

Comments
 (0)