Changeset 0cd13bce in rtems


Ignore:
Timestamp:
Sep 10, 2014, 8:42:47 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
4768ae0f
Parents:
90f44cd2
git-author:
Sebastian Huber <sebastian.huber@…> (09/10/14 08:42:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/10/14 08:43:48)
Message:

bsp/altera-cyclone-v: Add BSP_USE_UART_INTERRUPTS

Location:
c/src/lib/libbsp/arm/altera-cyclone-v
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/configure.ac

    r90f44cd2 r0cd13bce  
    4747RTEMS_BSPOPTS_HELP([CYCLONE_V_UART_BAUD],[baud for UARTs])
    4848
     49RTEMS_BSPOPTS_SET([BSP_USE_UART_INTERRUPTS],[*],[1])
     50RTEMS_BSPOPTS_HELP([BSP_USE_UART_INTERRUPTS],[enable usage of interrupts for the UART modules])
     51
    4952RTEMS_BSPOPTS_SET([CYCLONE_V_NO_I2C],[*],[1])
    5053RTEMS_BSPOPTS_HELP([CYCLONE_V_NO_I2C],
  • c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c

    r90f44cd2 r0cd13bce  
    2727#include "socal/hps.h"
    2828
    29 bool altera_cyclone_v_uart_probe( int minor );
     29#ifdef BSP_USE_UART_INTERRUPTS
     30  #define DEVICE_FNS &ns16550_fns
     31#else
     32  #define DEVICE_FNS &ns16550_fns_polled
     33#endif
     34
     35static bool altera_cyclone_v_uart_probe( int minor );
    3036
    3137static uint8_t altera_cyclone_v_uart_get_register(uintptr_t addr, uint8_t i)
     
    4854    .sDeviceName   = "/dev/ttyS0",
    4955    .deviceType    = SERIAL_NS16550,
    50     .pDeviceFns    = &ns16550_fns,
     56    .pDeviceFns    = DEVICE_FNS,
    5157    .deviceProbe   = altera_cyclone_v_uart_probe,
    5258    .pDeviceFlow   = NULL,
     
    6975    .sDeviceName   = "/dev/ttyS1",
    7076    .deviceType    = SERIAL_NS16550,
    71     .pDeviceFns    = &ns16550_fns,
     77    .pDeviceFns    = DEVICE_FNS,
    7278    .deviceProbe   = altera_cyclone_v_uart_probe,
    7379    .pDeviceFlow   = NULL,
Note: See TracChangeset for help on using the changeset viewer.