Permalink
Browse files

Nordic/ble_app_uart: Remove duplicated UART initialization

  • Loading branch information...
oliviermartin committed Feb 21, 2017
1 parent b3cf740 commit 8e15c263cef4142a2f7316b1f2465adf4c5dd4f7
Showing with 0 additions and 30 deletions.
  1. +0 −30 Application/Nordic/ble_app_uart/ble_app_uart.c
@@ -409,35 +409,6 @@ void uart_event_handle(app_uart_evt_t * p_event)
}
/**@snippet [Handling the data received over UART] */
-
-/**@brief Function for initializing the UART module.
- */
-/**@snippet [UART Initialization] */
-static void uart_init(void)
-{
- uint32_t err_code;
- const app_uart_comm_params_t comm_params =
- {
- RX_PIN_NUMBER,
- TX_PIN_NUMBER,
- RTS_PIN_NUMBER,
- CTS_PIN_NUMBER,
- APP_UART_FLOW_CONTROL_ENABLED,
- false,
- UART_BAUDRATE_BAUDRATE_Baud115200
- };
-
- APP_UART_FIFO_INIT( &comm_params,
- UART_RX_BUF_SIZE,
- UART_TX_BUF_SIZE,
- uart_event_handle,
- APP_IRQ_PRIORITY_LOW,
- err_code);
- APP_ERROR_CHECK(err_code);
-}
-/**@snippet [UART Initialization] */
-
-
/**@brief Function for initializing the Advertising functionality.
*/
static void advertising_init(void)
@@ -504,7 +475,6 @@ int main(void)
// Initialize.
APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false);
- uart_init();
buttons_leds_init(&erase_bonds);
ble_stack_init();

0 comments on commit 8e15c26

Please sign in to comment.