Changeset 737f8c4 in rtems


Ignore:
Timestamp:
Jun 18, 2009, 7:58:27 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
b2cf9858
Parents:
753ddb2
Message:

2009-06-18 Fernando Nicodemos <fgnicodemos@…>

  • Makefile.am, configure.ac, console/uarts.c: Add console device that uses MicroMonitor? to do actual input and output. This driver should work on any board that uses MicroMonitor?.
Location:
c/src/lib/libbsp/arm/csb337
Files:
4 edited

Legend:

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

    r753ddb2 r737f8c4  
     12009-06-18      Fernando Nicodemos <fgnicodemos@terra.com.br>
     2
     3        * Makefile.am, configure.ac, console/uarts.c: Add console device that
     4        uses MicroMonitor to do actual input and output. This driver should
     5        work on any board that uses MicroMonitor.
     6
    172009-06-18      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/arm/csb337/Makefile.am

    r753ddb2 r737f8c4  
    6262libbsp_a_SOURCES += ../../shared/umon/umonrtemsglue.c  \
    6363    ../../shared/umon/monlib.c ../../shared/umon/tfsDriver.c \
    64     startup/umonsupp.c
     64    ../../shared/umon/umoncons.c startup/umonsupp.c
    6565
    6666if HAS_NETWORKING
  • c/src/lib/libbsp/arm/csb337/configure.ac

    r753ddb2 r737f8c4  
    2525 csb637 variant.])
    2626
     27RTEMS_BSPOPTS_SET([ENABLE_LCD],[*],[0])
     28RTEMS_BSPOPTS_HELP([ENABLE_LCD],
     29[If defined, enable use of the SED1356 controller and LCD.])
     30AM_CONDITIONAL(ENABLE_LCD,test "$ENABLE_LCD" = "1")
     31
     32RTEMS_BSPOPTS_SET([ENABLE_UMON_CONSOLE],[*],[1])
     33RTEMS_BSPOPTS_HELP([ENABLE_UMON_CONSOLE],
     34[If defined, enable use of the MicroMonitor console device.])
     35AM_CONDITIONAL(ENABLE_LCD,test "$ENABLE_UMON_CONSOLE" = "1")
     36
    2737RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[1])
    2838RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
    2939[If defined, print a message and wait until pressed before resetting
    3040 board when application exits.])
    31 
    32 RTEMS_BSPOPTS_SET([ENABLE_LCD],[*],[0])
    33 RTEMS_BSPOPTS_HELP([ENABLE_LCD],
    34 [If defined, enable use of the SED1356 controller.])
    35 
    36 AM_CONDITIONAL(ENABLE_LCD,test "$ENABLE_LCD" = "1")
    3741
    3842RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[1])
  • c/src/lib/libbsp/arm/csb337/console/uarts.c

    r753ddb2 r737f8c4  
    3333#if ENABLE_LCD
    3434  extern console_fns fbcons_fns;
    35   #define NUM_DEVS       2
     35  #define LCD_DEVICE     1
    3636#else
    37   #define NUM_DEVS       1
     37  #define LCD_DEVICE     0
    3838#endif
     39
     40#if ENABLE_UMON_CONSOLE
     41  extern console_fns umoncons_fns;
     42  #define UMON_CONSOLE_DEVICE 1
     43#else
     44  #define UMON_CONSOLE_DEVICE 0
     45#endif
     46
     47#define NUM_DEVS   (1 + LCD_DEVICE + UMON_CONSOLE_DEVICE)
    3948
    4049/* These are used by code in console.c */
    4150unsigned long Console_Port_Count = NUM_DEVS;
    4251console_data  Console_Port_Data[NUM_DEVS];
    43 
    4452
    4553/*
     
    9199    0,                 /* ulClock - NOT USED */
    92100    0                  /* ulIntVector - NOT USED */
     101  },
     102#endif
     103#if ENABLE_UMON_CONSOLE
     104  {
     105    "/dev/umon",       /* sDeviceName */
     106    SERIAL_CUSTOM,     /* deviceType */
     107    &umoncons_fns,     /* pDeviceFns */
     108    NULL,              /* deviceProbe */
     109    NULL,              /* pDeviceFlow */
     110    0,                 /* ulMargin - NOT USED */
     111    0,                 /* ulHysteresis - NOT USED */
     112    NULL,              /* pDeviceParams */
     113    0,                 /* ulCtrlPort1  - Pointer to UMON regs */
     114    0,                 /* ulCtrlPort2  - NOT USED */
     115    0,                 /* ulDataPort  - NOT USED */
     116    NULL,              /* getRegister - NOT USED */
     117    NULL,              /* setRegister - NOT USED */
     118    NULL,              /* getData - NOT USED */
     119    NULL,              /* setData - NOT USED */
     120    0,                 /* ulClock - NOT USED */
     121    0                  /* ulIntVector - NOT USED */
    93122  }
    94123#endif
Note: See TracChangeset for help on using the changeset viewer.