Changeset e890774 in rtems


Ignore:
Timestamp:
May 1, 2007, 7:15:38 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
716f6be
Parents:
22a8f05
Message:

2007-05-01 Ray Xu <xr@…>

  • README, times, console/lpc22xx_uart.h, console/uart.c, include/bsp.h, start/start.S, startup/bspstart.c, startup/exit.c, startup/linkcmds: Update BSP to address changes between 4.7 and CVS head as well as to address comments from Ralf and Joel.
Location:
c/src/lib/libbsp/arm/rtl22xx
Files:
10 edited

Legend:

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

    r22a8f05 re890774  
     12007-05-01      Ray Xu <xr@trasin.net>
     2
     3        * README, times, console/lpc22xx_uart.h, console/uart.c, include/bsp.h,
     4        start/start.S, startup/bspstart.c, startup/exit.c, startup/linkcmds:
     5        Update BSP to address changes between 4.7 and CVS head as well as to
     6        address comments from Ralf and Joel.
     7
    182007-04-26      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • c/src/lib/libbsp/arm/rtl22xx/README

    r22a8f05 re890774  
    11
    22RTEMS bsp for Philips's ARM processor
    3 This BSP is design for Philips's LPC2210/LPC2212/LPC2214/LPC2290/LPC2294 (LPC22xx) serial ARM processor.
     3This BSP is design for Philips's LPC2210/LPC2212/LPC2214/LPC2290/LPC2294 (LPC22xx)  serial ARM processor. Some LPC21xx ARM can also use this.
    44Philphs's LPC22xx ARM processor got an ARM7TDMI-S core, and can run at 60MHz. It has an external memory bus, and peripherals like UART, I2C, SPI, ADC and etc. Some of them got on chip flash (256k) and CAN.
    5 The board used to develop the board is compatible with LPC-E2214/LPC-E2294 boards from http://www.olimex.com. The board got a 256K SDRAM and two serial ports.
     5The board used to develop the board is compatible with LPC-E2214/LPC-E2294 boards from http://www.olimex.com. The board got a 512K SRAM(256K used to store the .text for debug perpose) and two serial ports.
    66The license and distribution terms for this file may be found in the file LICENSE in this distribution or at http://www.rtems.com/license/LICENSE
  • c/src/lib/libbsp/arm/rtl22xx/console/lpc22xx_uart.h

    r22a8f05 re890774  
    1 /*Define for LPC22xx*/
     1/*Define for LPC22xx/LPC21xx */
    22#ifndef UART_H
    33#define UART_H
  • c/src/lib/libbsp/arm/rtl22xx/console/uart.c

    r22a8f05 re890774  
    88 *  need to write the ISR, and in the ISR insert the
    99 *  chars into termios's queue.
    10  *  Copyright (c) By ray
     10 *  Copyright (c) By ray <rayx.cn@gmail.com>
    1111 *
    1212 *  The license and distribution terms for this file may be
     
    169169        }
    170170    } else {
    171         printk("Unknown console minor number: %d\n", minor);
     171        debug_printk("Unknown console minor number");
     172        printi(minor);
    172173        return -1;
    173174    }
     
    198199            }
    199200        }else {
    200         printk("Unknown console minor number: %d\n", minor);
     201        debug_printk("Unknown console minor number");
     202        printi(minor);
    201203        return -1;
    202204    }
  • c/src/lib/libbsp/arm/rtl22xx/include/bsp.h

    r22a8f05 re890774  
    11/*
    2  * Philips LPC22XX BSP header file
     2 * Philips LPC22XX/LPC21xx BSP header file
    33 *
    4  * by Ray,Xu
     4 * by Ray,Xu <Rayx.cn@gmail.com>
    55 * 
    66 *  The license and distribution terms for this file may be
  • c/src/lib/libbsp/arm/rtl22xx/start/start.S

    r22a8f05 re890774  
    11/*
    2  * Philips LPC22XX Startup code
     2 * Philips LPC22XX/LPC21xx Startup code
    33 *
    4  * Copyright (c) 2005 Ray xu
    5  *
    6  * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
    7  *
    8  * Copyright (c) 2002 by Charlie Steader <charlies@poliac.com>
    9  *
     4 * Copyright (c) 2007 Ray Xu<rayx.cn@gmail.com>
     5 * Change from CSB337's code by Jay Monkman <jtm@lopingdog.com>
    106 *  The license and distribution terms for this file may be
    117 *  found in the file LICENSE in this distribution or at
  • c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c

    r22a8f05 re890774  
    11/*
    2  *  LPC22XX Startup code
    3  *
    4  *  Copyright (c) 2005 by Ray X <rayx.cn@gmail.com>
     2 *  LPC22XX/LPC21xx Startup code
     3 *
     4 *  Copyright (c) 2007 by Ray Xu <rayx.cn@gmail.com>
    55 *
    66 *  The license and distribution terms for this file may be
     
    9393
    9494    /*   heap_size = (free_mem_end - heap_start - MEM_NOCACHE_SIZE); */
    95     /*the board seems to have only 512K memory, we use 256K as heap*/
     95    /*the board seems to have only 512K memory, we use 256K as heap, 256K to
     96    store the .text*/
    9697    heap_size = 0x40000;
    9798
     
    134135void bsp_start_default( void )
    135136{
    136     uint32_t i;
    137137    PINSEL2 =0x0f814914;
    138138    BCFG0 = 0x1000ffef;
     
    172172
    173173    /* memory configure */
     174    /* it is not needed in my formatter board */
    174175    //MAMCR = 0;
    175176    // MAMTIM = 3;
     
    202203    #if 0
    203204    debug_printk(" bsp_start_defalt");
     205    printi((int)&bsp_start_defalt);
    204206   
    205207    debug_printk(" _bss_free_start");
     
    217219    debug_printk(" free_mem_end");
    218220    printi((int)free_mem_end);
    219 
    220    
    221     printi(free_mem_end);
    222221    #endif
    223222
  • c/src/lib/libbsp/arm/rtl22xx/startup/exit.c

    r22a8f05 re890774  
    11/*
    2  * Cirrus LPC22XX BSP Shutdown  code
    3  *
    4  * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
     2 * Philips LPC22XX/LPC21xx BSP Shutdown  code
     3 * Copyright (c) 2007 by Ray Xu <rayx.cn@gmail.com>
    54 *
    65 *  The license and distribution terms for this file may be
     
    3332   * does.
    3433   */
    35   printk("\n");
    36   printk(line);
     34  debug_printk("\n");
     35  debug_printk(line);
    3736  while (uart_poll_read(0) < 0) continue;
    3837
  • c/src/lib/libbsp/arm/rtl22xx/startup/linkcmds

    r22a8f05 re890774  
    33 * By Ray,Xu
    44 * Rayx.cn@gmail.com
     5 *     
     6 *  LPC22xx ARM do not have a MMU, the formatter got 512kb SRAM
     7 *  I set the code entry to the beging of SRAM for debugging perpurse
    58 *     
    69 *  The license and distribution terms for this file may be
     
    1114 *
    1215 *  $Id$
    13  *  LPC22xx ARM do not have a
    14 */
     16 */
    1517
    1618OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
     
    3739_fiq_stack_size = DEFINED(_fiq_stack_size) ? _fiq_stack_size : 0x50;
    3840_abt_stack_size = DEFINED(_abt_stack_size) ? _abt_stack_size : 0x50;
    39 _svc_stack_size = DEFINED(_svc_stack_size) ? _svc_stack_size : 0x2000;
     41_svc_stack_size = DEFINED(_svc_stack_size) ? _svc_stack_size : 0x500;
    4042
    4143
  • c/src/lib/libbsp/arm/rtl22xx/times

    r22a8f05 re890774  
    66
    77Board:  rtl22xx
    8 CPU: Philips 2210
     8CPU: Philips LPC2210
    99Clock Speed: 60MHz
    10 Memory Configuration: 512K SRAM, 16 bit bus, no SDRAM, nor cache
     10Memory Configuration: 512K SRAM(256K used to store the .text), 16 bit bus, no SDRAM, nor cache
    1111Cache: Data and Instruction cache enabled
    1212Wait States:
     
    2222rtems_semaphore_obtain: not available -- NO_WAIT 136
    2323rtems_semaphore_release: no waiting tasks 307
    24 
Note: See TracChangeset for help on using the changeset viewer.