Changeset 3bb9f198 in rtems


Ignore:
Timestamp:
Oct 18, 2011, 6:32:49 PM (10 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 5, master
Children:
00991a3
Parents:
964c734b
Message:

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

PR 1917/bsps

  • Makefile.am, console/console-config.c, startup/bspstart.c: Modifications to add dynamic tables for libchip serial drivers.
Location:
c/src/lib/libbsp/powerpc/gen83xx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen83xx/ChangeLog

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

    r964c734b r3bb9f198  
    8585# console
    8686libbsp_a_SOURCES += ../../shared/console.c \
    87         console/console-config.c
     87        ../../shared/console_select.c \
     88        console/console-config.c \
     89        ../../shared/console_read.c \
     90        ../../shared/console_write.c \
     91        ../../shared/console_control.c
    8892# bsp_i2c
    8993libbsp_a_SOURCES += i2c/i2c_init.c
  • c/src/lib/libbsp/powerpc/gen83xx/console/console-config.c

    r964c734b r3bb9f198  
    2525#include <libchip/serial.h>
    2626#include <libchip/ns16550.h>
     27#include "../../../shared/console_private.h"
    2728
    2829#include <mpc83xx/mpc83xx.h>
     
    5758}
    5859
    59 unsigned long Console_Port_Count = PORT_COUNT;
     60unsigned long Console_Configuration_Count = PORT_COUNT;
    6061
    61 rtems_device_minor_number Console_Port_Minor = 0;
    62 
    63 console_data Console_Port_Data [PORT_COUNT];
    64 
    65 console_tbl Console_Port_Tbl [PORT_COUNT] = {
     62console_tbl Console_Configuration_Ports [PORT_COUNT] = {
    6663  {
    6764    .sDeviceName = "/dev/ttyS0",
     
    116113static void gen83xx_output_char(char c)
    117114{
    118   const console_fns *console = Console_Port_Tbl [Console_Port_Minor].pDeviceFns;
     115  const console_fns *console = Console_Port_Tbl [Console_Port_Minor]->pDeviceFns;
    119116 
    120117  if (c == '\n') {
  • c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c

    r964c734b r3bb9f198  
    122122  /* Initialize some console parameters */
    123123  for (i = 0; i < Console_Port_Count; ++i) {
    124     Console_Port_Tbl [i].ulClock = BSP_bus_frequency;
     124    Console_Configuration_Ports [i].ulClock = BSP_bus_frequency;
    125125
    126126    #ifdef HAS_UBOOT
    127       Console_Port_Tbl [i].pDeviceParams =
     127      Console_Configuration_Ports [i].pDeviceParams =
    128128        (void *) bsp_uboot_board_info.bi_baudrate;
    129129    #endif
Note: See TracChangeset for help on using the changeset viewer.