source: rtems/c/src/lib/libbsp/arm/lpc24xx/console/uart-probe-2.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 794 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup lpc24xx
5 *
6 * @brief UART 2 probe.
7 */
8
9/*
10 * Copyright (c) 2011-2013 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#include <bsp.h>
24#include <bsp/io.h>
25
26bool lpc24xx_uart_probe_2(int minor)
27{
28  static const lpc24xx_pin_range pins [] = {
29    LPC24XX_PIN_UART_2_TXD_P0_10,
30    LPC24XX_PIN_UART_2_RXD_P0_11,
31    LPC24XX_PIN_TERMINAL
32  };
33
34  lpc24xx_module_enable(LPC24XX_MODULE_UART_2, LPC24XX_MODULE_PCLK_DEFAULT);
35  lpc24xx_pin_config(&pins [0], LPC24XX_PIN_SET_FUNCTION);
36
37  return true;
38}
Note: See TracBrowser for help on using the repository browser.