TARGET_NRF5 - Explicitaly convert objects uint32_t to object of type PinName.

pull/2785/head
Vincent Coubard 2016-09-22 16:39:59 +01:00
parent 6cdfb19304
commit 039584332e
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ void serial_init(serial_t *obj, PinName tx, PinName rx) {
nrf_uart_configure(UART_INSTANCE, UART_CB.parity, UART_CB.hwfc); nrf_uart_configure(UART_INSTANCE, UART_CB.parity, UART_CB.hwfc);
if (UART_CB.hwfc == NRF_UART_HWFC_ENABLED) { if (UART_CB.hwfc == NRF_UART_HWFC_ENABLED) {
serial_set_flow_control(obj, FlowControlRTSCTS, serial_set_flow_control(obj, FlowControlRTSCTS,
UART_CB.pselrts, UART_CB.pselcts); (PinName) UART_CB.pselrts, (PinName) UART_CB.pselcts);
} }
nrf_uart_enable(UART_INSTANCE); nrf_uart_enable(UART_INSTANCE);