Changeset 0a91018f in rtems


Ignore:
Timestamp:
Oct 18, 2011, 6:25:15 PM (10 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 5, master
Children:
a393163
Parents:
ba692232
Message:

2011-10-18 Jennifer Averett <Jennifer.Averett@…>

PR 1917/bsps

  • Makefile.am, console/console-config.c, console/hsu.c: Modifications to add dynamic tables for libchip serial drivers.
Location:
c/src/lib/libbsp/arm/lpc32xx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc32xx/ChangeLog

    rba692232 r0a91018f  
     12011-10-18      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        PR 1917/bsps
     4        * Makefile.am, console/console-config.c, console/hsu.c: Modifications
     5        to add dynamic tables for libchip serial drivers.
     6
    172011-09-22      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • c/src/lib/libbsp/arm/lpc32xx/Makefile.am

    rba692232 r0a91018f  
    110110# Console
    111111libbsp_a_SOURCES += ../../shared/console.c \
     112        ../../shared/console_select.c \
    112113        console/console-config.c \
    113         console/hsu.c
     114        console/hsu.c \
     115        ../../shared/console_read.c \
     116        ../../shared/console_write.c \
     117        ../../shared/console_control.c
    114118
    115119# Clock
  • c/src/lib/libbsp/arm/lpc32xx/console/console-config.c

    rba692232 r0a91018f  
    4343}
    4444
    45 rtems_device_minor_number Console_Port_Minor = 0;
    46 
    4745/* FIXME: Console selection */
    4846
    49 console_tbl Console_Port_Tbl [] = {
     47console_tbl Console_Configuration_Ports [] = {
    5048  #ifdef LPC32XX_CONFIG_U5CLK
    5149    {
     
    198196
    199197#define LPC32XX_UART_COUNT \
    200   (sizeof(Console_Port_Tbl) / sizeof(Console_Port_Tbl [0]))
    201 
    202 unsigned long Console_Port_Count = LPC32XX_UART_COUNT;
    203 
    204 console_data Console_Port_Data [LPC32XX_UART_COUNT];
     198  (sizeof(Console_Configuration_Ports) / sizeof(Console_Configuration_Ports [0]))
     199
     200unsigned long Console_Configuration_Count = LPC32XX_UART_COUNT;
  • c/src/lib/libbsp/arm/lpc32xx/console/hsu.c

    rba692232 r0a91018f  
    6565  rtems_libio_open_close_args_t *oca = arg;
    6666  struct rtems_termios_tty *tty = oca->iop->data1;
    67   console_tbl *ct = &Console_Port_Tbl [minor];
     67  console_tbl *ct = Console_Port_Tbl [minor];
    6868  console_data *cd = &Console_Port_Data [minor];
    6969  volatile lpc32xx_hsu *hsu = (volatile lpc32xx_hsu *) ct->ulCtrlPort1;
     
    7878static ssize_t lpc32xx_hsu_write(int minor, const char *buf, size_t len)
    7979{
    80   console_tbl *ct = &Console_Port_Tbl [minor];
     80  console_tbl *ct = Console_Port_Tbl [minor];
    8181  console_data *cd = &Console_Port_Data [minor];
    8282  volatile lpc32xx_hsu *hsu = (volatile lpc32xx_hsu *) ct->ulCtrlPort1;
     
    102102{
    103103  int minor = (int) arg;
    104   console_tbl *ct = &Console_Port_Tbl [minor];
     104  console_tbl *ct = Console_Port_Tbl [minor];
    105105  console_data *cd = &Console_Port_Data [minor];
    106106  volatile lpc32xx_hsu *hsu = (volatile lpc32xx_hsu *) ct->ulCtrlPort1;
     
    142142static void lpc32xx_hsu_initialize(int minor)
    143143{
    144   console_tbl *ct = &Console_Port_Tbl [minor];
     144  console_tbl *ct = Console_Port_Tbl [minor];
    145145  console_data *cd = &Console_Port_Data [minor];
    146146  volatile lpc32xx_hsu *hsu = (volatile lpc32xx_hsu *) ct->ulCtrlPort1;
     
    167167static int lpc32xx_hsu_set_attributes(int minor, const struct termios *term)
    168168{
    169   console_tbl *ct = &Console_Port_Tbl [minor];
     169  console_tbl *ct = Console_Port_Tbl [minor];
    170170  volatile lpc32xx_hsu *hsu = (volatile lpc32xx_hsu *) ct->ulCtrlPort1;
    171171  int baud_flags = term->c_cflag & CBAUD;
Note: See TracChangeset for help on using the changeset viewer.