File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822 Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 27
27
******************************************************************************/
28
28
#define UART_NUM 1
29
29
30
- static const PinMap PinMap_UART_TX [] = {
31
- {TX_PIN_NUMBER , UART_0 , 1 },
32
- { NC , NC , 0 }
33
- };
34
-
35
- static const PinMap PinMap_UART_RX [] = {
36
- {RX_PIN_NUMBER , UART_0 , 1 },
37
- {NC , NC , 0 }
38
- };
39
-
40
30
static uint32_t serial_irq_ids [UART_NUM ] = {0 };
41
31
static uart_irq_handler irq_handler ;
42
32
static uint32_t acceptedSpeeds [16 ][2 ] = {{1200 ,UART_BAUDRATE_BAUDRATE_Baud1200 },
@@ -61,10 +51,7 @@ serial_t stdio_uart;
61
51
62
52
63
53
void serial_init (serial_t * obj , PinName tx , PinName rx ) {
64
- // determine the UART to use -- for mcu's with multiple uart connections
65
- UARTName uart_tx = (UARTName )pinmap_peripheral (tx , PinMap_UART_TX );
66
- UARTName uart_rx = (UARTName )pinmap_peripheral (rx , PinMap_UART_RX );
67
- UARTName uart = (UARTName )pinmap_merge (uart_tx , uart_rx );
54
+ UARTName uart = UART_0 ;
68
55
69
56
MBED_ASSERT ((int )uart != NC );
70
57
You can’t perform that action at this time.
0 commit comments