Changeset dd853a3 in rtems


Ignore:
Timestamp:
Dec 3, 2010, 9:56:48 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
e792ecf
Parents:
598a4505
Message:

2010-12-03 Sebastian Huber <sebastian.huber@…>

  • include/lcd.h, misc/lcd.c: New files.
  • misc/io.c, include/io.h: Documentation, bug fixes, more configurations.
  • include/lpc24xx.h: Added DAC and I2S.
  • Makefile.am, bsp_specs, preinstall.am, startup/bspstarthooks.c, startup/linkcmds.lpc2362, startup/linkcmds.lpc23xx_tli800, startup/linkcmds.lpc24xx_ea, startup/linkcmds.lpc24xx_ncs_ram, startup/linkcmds.lpc24xx_ncs_rom_ext, startup/linkcmds.lpc24xx_ncs_rom_int: Update due to linker command file changes.
Location:
c/src/lib/libbsp/arm/lpc24xx
Files:
2 added
14 edited

Legend:

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

    r598a4505 rdd853a3  
     12010-12-03      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * include/lcd.h, misc/lcd.c: New files.
     4        * misc/io.c, include/io.h: Documentation, bug fixes, more
     5        configurations.
     6        * include/lpc24xx.h: Added DAC and I2S.
     7        * Makefile.am, bsp_specs, preinstall.am, startup/bspstarthooks.c,
     8        startup/linkcmds.lpc2362, startup/linkcmds.lpc23xx_tli800,
     9        startup/linkcmds.lpc24xx_ea, startup/linkcmds.lpc24xx_ncs_ram,
     10        startup/linkcmds.lpc24xx_ncs_rom_ext,
     11        startup/linkcmds.lpc24xx_ncs_rom_int: Update due to linker command
     12        file changes.
     13
    1142010-11-12      Sebastian Huber <sebastian.huber@embedded-brains.de>
    215
  • c/src/lib/libbsp/arm/lpc24xx/Makefile.am

    r598a4505 rdd853a3  
    3535include_bsp_HEADERS += ../../shared/include/uart-output-char.h
    3636include_bsp_HEADERS += ../../shared/tod.h
    37 include_bsp_HEADERS += ../shared/include/linker-symbols.h
    3837include_bsp_HEADERS += ../shared/include/start.h
    3938include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
     39include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
    4040include_bsp_HEADERS += include/irq.h
    4141include_bsp_HEADERS += include/lpc24xx.h
     
    4545include_bsp_HEADERS += include/i2c.h
    4646include_bsp_HEADERS += include/io.h
     47include_bsp_HEADERS += include/lcd.h
    4748include_bsp_HEADERS += include/lpc-clock-config.h
    4849include_bsp_HEADERS += include/lpc-ethernet-config.h
     
    6364
    6465project_lib_DATA += startup/linkcmds
    65 project_lib_DATA += ../shared/startup/linkcmds.base
    6666EXTRA_DIST = startup/linkcmds.lpc24xx_ea
    6767EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
     
    124124        misc/bspidle.c \
    125125        misc/io.c \
     126        misc/lcd.c \
    126127        misc/timer.c
    127128
  • c/src/lib/libbsp/arm/lpc24xx/bsp_specs

    r598a4505 rdd853a3  
    55*startfile:
    66%{!qrtems: %(old_startfile)} \
    7 %{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e start}}
     7%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e _start}}
    88
    99*link:
  • c/src/lib/libbsp/arm/lpc24xx/include/io.h

    r598a4505 rdd853a3  
    3737 *
    3838 * @brief Input and output module.
     39 *
     40 * <table>
     41 *   <tr><th>Module</th><th>Configuration</th><th>First Pin</th><th>Last Pin</th></tr>
     42 *   <tr><td>UART 0</td><td>0</td><td>P0.2</td><td>P0.3</td></tr>
     43 *   <tr><td rowspan=3>UART 1</td><td>0</td><td>P0.15</td><td>P0.16</td></tr>
     44 *   <tr><td>1</td><td>P2.0</td><td>P2.1</td></tr>
     45 *   <tr><td>2</td><td>P3.16</td><td>P3.17</td></tr>
     46 *   <tr><td rowspan=3>UART 2</td><td>0</td><td>P0.10</td><td>P0.11</td></tr>
     47 *   <tr><td>1</td><td>P2.8</td><td>P2.9</td></tr>
     48 *   <tr><td>2</td><td>P4.22</td><td>P4.23</td></tr>
     49 *   <tr><td rowspan=3>UART 3</td><td>0</td><td>P0.0</td><td>P0.1</td></tr>
     50 *   <tr><td>1</td><td>P0.25</td><td>P0.26</td></tr>
     51 *   <tr><td>2</td><td>P4.28</td><td>P4.29</td></tr>
     52 *   <tr><td rowspan=5>ETHERNET</td><td>0</td><td>P1.0</td><td>P1.17</td></tr>
     53 *   <tr><td rowspan=4>1</td><td>P1.0</td><td>P1.1</td></tr>
     54 *   <tr><td>P1.4</td><td>P1.4</td></tr>
     55 *   <tr><td>P1.8</td><td>P1.10</td></tr>
     56 *   <tr><td>P1.14</td><td>P1.17</td></tr>
     57 *   <tr><td rowspan=4>ADC</td><td>0</td><td>P0.12</td><td>P0.13</td></tr>
     58 *   <tr><td>1</td><td>P0.23</td><td>P0.25</td></tr>
     59 *   <tr><td rowspan=2>2</td><td>P0.26</td><td>P0.26</td></tr>
     60 *   <tr><td>P1.30</td><td>P1.31</td></tr>
     61 *   <tr><td>I2C 0</td><td>0</td><td>P0.27</td><td>P0.28</td></tr>
     62 *   <tr><td rowspan=3>I2C 1</td><td>0</td><td>P0.0</td><td>P0.1</td></tr>
     63 *   <tr><td>1</td><td>P0.19</td><td>P0.20</td></tr>
     64 *   <tr><td>2</td><td>P2.14</td><td>P2.15</td></tr>
     65 *   <tr><td rowspan=3>I2C 2</td><td>0</td><td>P0.10</td><td>P0.11</td></tr>
     66 *   <tr><td>1</td><td>P2.30</td><td>P2.31</td></tr>
     67 *   <tr><td>2</td><td>P4.20</td><td>P4.21</td></tr>
     68 *   <tr><td rowspan=3>I2S</td><td>0</td><td>P0.4</td><td>P0.9</td></tr>
     69 *   <tr><td rowspan=2>1</td><td>P0.23</td><td>P0.25</td></tr>
     70 *   <tr><td>P2.11</td><td>P2.13</td></tr>
     71 *   <tr><td rowspan=5>SSP 0</td><td>0</td><td>P0.15</td><td>P0.18</td></tr>
     72 *   <tr><td rowspan=2>1</td><td>P1.20</td><td>P0.21</td></tr>
     73 *   <tr><td>P1.23</td><td>P0.24</td></tr>
     74 *   <tr><td rowspan=2>2</td><td>P2.22</td><td>P2.23</td></tr>
     75 *   <tr><td>P2.26</td><td>P2.27</td></tr>
     76 *   <tr><td rowspan=5>SSP 1</td><td>0</td><td>P0.6</td><td>P0.9</td></tr>
     77 *   <tr><td rowspan=3>1</td><td>P0.12</td><td>P0.13</td></tr>
     78 *   <tr><td>P0.14</td><td>P0.14</td></tr>
     79 *   <tr><td>P1.31</td><td>P1.31</td></tr>
     80 *   <tr><td>2</td><td>P4.20</td><td>P4.23</td></tr>
     81 *   <tr><td rowspan=2>USB</td><td rowspan=2>0</td><td>P0.29</td><td>P0.30</td></tr>
     82 *   <tr><td>P1.19</td><td>P1.19</td></tr>
     83 *   <tr><td>SPI</td><td>0</td><td>P0.15</td><td>P0.18</td></tr>
     84 *   <tr><td>PWM 1</td><td>0</td><td>P2.0</td><td>P2.0</td></tr>
     85 *   <tr><td rowspan=11>LCD</td><td rowspan=6>0</td><td>P0.4</td><td>P0.9</td></tr>
     86 *   <tr><td>P1.20</td><td>P1.29</td></tr>
     87 *   <tr><td>P2.0</td><td>P2.3</td></tr>
     88 *   <tr><td>P2.5</td><td>P2.9</td></tr>
     89 *   <tr><td>P2.12</td><td>P2.13</td></tr>
     90 *   <tr><td>P4.28</td><td>P4.29</td></tr>
     91 *   <tr><td rowspan=5>1</td><td>P1.20</td><td>P1.29</td></tr>
     92 *   <tr><td>P2.0</td><td>P2.3</td></tr>
     93 *   <tr><td>P2.5</td><td>P2.9</td></tr>
     94 *   <tr><td>P2.12</td><td>P2.13</td></tr>
     95 *   <tr><td>P4.28</td><td>P4.29</td></tr>
     96 *   <tr><td>DAC</td><td>0</td><td>P0.26</td><td>P0.26</td></tr>
     97 * </table>
    3998 *
    4099 * @{
     
    124183);
    125184
     185/**
     186 * @brief Applies the configuration with index @a config for the @a module.
     187 *
     188 * The pin mode will not be altered.
     189 *
     190 * @retval RTEMS_SUCCESSFUL Successful operation.
     191 * @retval RTEMS_INVALID_ID Invalid module or configuration.
     192 */
    126193rtems_status_code lpc24xx_io_config(
    127194  lpc24xx_module module,
     
    129196);
    130197
     198/**
     199 * @brief Releases the configuration with index @a config for the @a module.
     200 *
     201 * The pins are set to general purpose IO function.  The pin mode will not be
     202 * altered.
     203 *
     204 * @retval RTEMS_SUCCESSFUL Successful operation.
     205 * @retval RTEMS_INVALID_ID Invalid module or configuration.
     206 */
    131207rtems_status_code lpc24xx_io_release(
    132208  lpc24xx_module module,
  • c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h

    r598a4505 rdd853a3  
    2323
    2424#include <stdint.h>
     25#include <bsp/utility.h>
     26#include <bsp/lpc-i2s.h>
    2527
    2628/**
     
    19811983#define PCONP_USB (1U << 31)
    19821984
     1985/* I2S */
     1986
     1987static volatile lpc_i2s *const lpc24xx_i2s = (lpc_i2s *) I2S_BASE_ADDR;
     1988
     1989/* DAC */
     1990
     1991#define DAC_STEPS 1024
     1992#define DAC_VALUE(val) BSP_FLD32(val, 6, 15)
     1993#define DAC_BIAS BSP_BIT32(16)
     1994
    19831995/** @} */
    19841996
  • c/src/lib/libbsp/arm/lpc24xx/misc/io.c

    r598a4505 rdd853a3  
    5454} lpc24xx_io_entry;
    5555
    56 typedef void (*lpc24xx_io_iterate_routine)(unsigned /* pin */, unsigned /* function */);
     56typedef void (*lpc24xx_io_iterate_routine)(unsigned pin, unsigned function);
    5757
    5858static const lpc24xx_io_entry lpc24xx_io_config_table [] = {
     
    7979  LPC24XX_IO_ENTRY(LPC24XX_MODULE_ADC, 0, 0, 12, 0, 13, LPC24XX_IO_ALTERNATE_2),
    8080  LPC24XX_IO_ENTRY(LPC24XX_MODULE_ADC, 1, 0, 23, 0, 25, LPC24XX_IO_ALTERNATE_0),
     81  LPC24XX_IO_ENTRY(LPC24XX_MODULE_ADC, 2, 0, 26, 0, 26, LPC24XX_IO_ALTERNATE_0),
     82  LPC24XX_IO_ENTRY(LPC24XX_MODULE_ADC, 2, 1, 30, 1, 31, LPC24XX_IO_ALTERNATE_2),
    8183
    8284  /* I2C */
     
    8890  LPC24XX_IO_ENTRY(LPC24XX_MODULE_I2C_2, 1, 2, 30, 2, 31, LPC24XX_IO_ALTERNATE_2),
    8991  LPC24XX_IO_ENTRY(LPC24XX_MODULE_I2C_2, 2, 4, 20, 4, 21, LPC24XX_IO_ALTERNATE_1),
     92
     93  /* I2S */
     94  LPC24XX_IO_ENTRY(LPC24XX_MODULE_I2S, 0, 0, 4, 0, 9, LPC24XX_IO_ALTERNATE_0),
     95  LPC24XX_IO_ENTRY(LPC24XX_MODULE_I2S, 1, 0, 23, 0, 25, LPC24XX_IO_ALTERNATE_1),
     96  LPC24XX_IO_ENTRY(LPC24XX_MODULE_I2S, 1, 2, 11, 2, 13, LPC24XX_IO_ALTERNATE_2),
    9097
    9198  /* SSP */
     
    118125  LPC24XX_IO_ENTRY(LPC24XX_MODULE_LCD, 0, 2, 12, 2, 13, LPC24XX_IO_ALTERNATE_0),
    119126  LPC24XX_IO_ENTRY(LPC24XX_MODULE_LCD, 0, 4, 28, 4, 29, LPC24XX_IO_ALTERNATE_1),
     127  LPC24XX_IO_ENTRY(LPC24XX_MODULE_LCD, 1, 1, 20, 1, 29, LPC24XX_IO_ALTERNATE_0),
     128  LPC24XX_IO_ENTRY(LPC24XX_MODULE_LCD, 1, 2, 0, 2, 3, LPC24XX_IO_ALTERNATE_2),
     129  LPC24XX_IO_ENTRY(LPC24XX_MODULE_LCD, 1, 2, 5, 2, 9, LPC24XX_IO_ALTERNATE_2),
     130  LPC24XX_IO_ENTRY(LPC24XX_MODULE_LCD, 1, 2, 12, 2, 13, LPC24XX_IO_ALTERNATE_0),
     131  LPC24XX_IO_ENTRY(LPC24XX_MODULE_LCD, 1, 4, 28, 4, 29, LPC24XX_IO_ALTERNATE_1),
     132
     133  /* DAC */
     134  LPC24XX_IO_ENTRY(LPC24XX_MODULE_DAC, 0, 0, 26, 0, 26, LPC24XX_IO_ALTERNATE_1),
    120135
    121136  /* Terminate */
     
    129144)
    130145{
    131   rtems_status_code sc = RTEMS_INVALID_ID;
     146  rtems_status_code sc = RTEMS_SUCCESSFUL;
    132147  const lpc24xx_io_entry *e = &lpc24xx_io_config_table [0];
    133148
     
    157172  unsigned select = LPC24XX_IO_SELECT(pin);
    158173  unsigned shift = LPC24XX_IO_SELECT_SHIFT(pin);
     174  unsigned mask = LPC24XX_IO_SELECT_MASK << shift;
     175  unsigned pinsel = 0;
    159176
    160177  rtems_interrupt_disable(level);
    161 
    162   LPC24XX_PINSEL [select] =
    163     (LPC24XX_PINSEL [select] & ~(LPC24XX_IO_SELECT_MASK << shift))
    164       | ((function & LPC24XX_IO_SELECT_MASK) << shift);
    165 
    166   rtems_interrupt_flash(level);
    167 
    168   LPC24XX_PINMODE [select] &= ~(LPC24XX_IO_SELECT_MASK << shift);
    169 
     178  pinsel = LPC24XX_PINSEL [select];
     179  pinsel &= ~mask;
     180  pinsel |= (function & LPC24XX_IO_SELECT_MASK) << shift;
     181  LPC24XX_PINSEL [select] = pinsel;
    170182  rtems_interrupt_enable(level);
    171183}
     
    176188  unsigned select = LPC24XX_IO_SELECT(pin);
    177189  unsigned shift = LPC24XX_IO_SELECT_SHIFT(pin);
     190  unsigned mask = LPC24XX_IO_SELECT_MASK << shift;
    178191
    179192  rtems_interrupt_disable(level);
    180   LPC24XX_PINSEL [select] =
    181     (LPC24XX_PINSEL [select] & ~(LPC24XX_IO_SELECT_MASK << shift));
     193  LPC24XX_PINSEL [select] &= ~mask;
    182194  rtems_interrupt_enable(level);
    183195}
     
    278290  LPC24XX_MODULE_ENTRY(LPC24XX_MODULE_I2C_2, 1, 1, 26),
    279291  LPC24XX_MODULE_ENTRY(LPC24XX_MODULE_I2S, 1, 1, 27),
    280   LPC24XX_MODULE_ENTRY(LPC24XX_MODULE_LCD, 1, 1, 20),
     292  LPC24XX_MODULE_ENTRY(LPC24XX_MODULE_LCD, 1, 0, 20),
    281293  LPC24XX_MODULE_ENTRY(LPC24XX_MODULE_MCI, 1, 1, 28),
    282294  LPC24XX_MODULE_ENTRY(LPC24XX_MODULE_PCB, 0, 1, 18),
  • c/src/lib/libbsp/arm/lpc24xx/preinstall.am

    r598a4505 rdd853a3  
    8383PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/tod.h
    8484
    85 $(PROJECT_INCLUDE)/bsp/linker-symbols.h: ../shared/include/linker-symbols.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    86         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/linker-symbols.h
    87 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/linker-symbols.h
    88 
    8985$(PROJECT_INCLUDE)/bsp/start.h: ../shared/include/start.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    9086        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/start.h
     
    9490        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/lpc-timer.h
    9591PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/lpc-timer.h
     92
     93$(PROJECT_INCLUDE)/bsp/lpc-i2s.h: ../shared/lpc/include/lpc-i2s.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     94        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/lpc-i2s.h
     95PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/lpc-i2s.h
    9696
    9797$(PROJECT_INCLUDE)/bsp/irq.h: include/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     
    123123PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/io.h
    124124
     125$(PROJECT_INCLUDE)/bsp/lcd.h: include/lcd.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     126        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/lcd.h
     127PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/lcd.h
     128
    125129$(PROJECT_INCLUDE)/bsp/lpc-clock-config.h: include/lpc-clock-config.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    126130        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/lpc-clock-config.h
     
    147151TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
    148152
    149 $(PROJECT_LIB)/linkcmds.base: ../shared/startup/linkcmds.base $(PROJECT_LIB)/$(dirstamp)
    150         $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.base
    151 TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.base
    152 
  • c/src/lib/libbsp/arm/lpc24xx/startup/bspstarthooks.c

    r598a4505 rdd853a3  
    3232
    3333#ifdef LPC24XX_EMC_MICRON
    34   static void BSP_START_SECTION lpc24xx_ram_test_32(void)
     34  static void BSP_START_TEXT_SECTION lpc24xx_ram_test_32(void)
    3535  {
    3636    #ifdef LPC24XX_EMC_TEST
     
    5656  }
    5757
    58   static void BSP_START_SECTION lpc24xx_cpu_delay(
     58  static void BSP_START_TEXT_SECTION lpc24xx_cpu_delay(
    5959    unsigned ticks
    6060  )
     
    7474 * @brief EMC initialization hook 0.
    7575 */
    76 static void BSP_START_SECTION lpc24xx_init_emc_0(void)
     76static void BSP_START_TEXT_SECTION lpc24xx_init_emc_0(void)
    7777{
    7878  #ifdef LPC24XX_EMC_NUMONYX
     
    138138 * @brief EMC initialization hook 1.
    139139 */
    140 static void BSP_START_SECTION lpc24xx_init_emc_1(void)
     140static void BSP_START_TEXT_SECTION lpc24xx_init_emc_1(void)
    141141{
    142142  #ifdef LPC24XX_EMC_INIT
     
    243243}
    244244
    245 static void BSP_START_SECTION lpc24xx_pll_config(
     245static void BSP_START_TEXT_SECTION lpc24xx_pll_config(
    246246  uint32_t val
    247247)
     
    266266 * from the PLL output.
    267267 */
    268 static void BSP_START_SECTION lpc24xx_set_pll(
     268static void BSP_START_TEXT_SECTION lpc24xx_set_pll(
    269269  unsigned clksrc,
    270270  unsigned nsel,
     
    322322}
    323323
    324 static void BSP_START_SECTION lpc24xx_init_pll(void)
     324static void BSP_START_TEXT_SECTION lpc24xx_init_pll(void)
    325325{
    326326  /* Enable main oscillator */
     
    342342}
    343343
    344 static void BSP_START_SECTION lpc24xx_clear_bss(void)
     344static void BSP_START_TEXT_SECTION lpc24xx_clear_bss(void)
    345345{
    346346  const int *end = (const int *) bsp_section_bss_end;
     
    354354}
    355355
    356 void BSP_START_SECTION bsp_start_hook_0(void)
     356void BSP_START_TEXT_SECTION bsp_start_hook_0(void)
    357357{
    358358  /* Initialize PLL */
     
    363363}
    364364
    365 void BSP_START_SECTION bsp_start_hook_1(void)
     365void BSP_START_TEXT_SECTION bsp_start_hook_1(void)
    366366{
    367367  /* Re-map interrupt vectors to internal RAM */
     
    443443  );
    444444
    445   /* Copy .fast section */
     445  /* Copy .fast_text section */
    446446  bsp_start_memcpy(
    447     (int *) bsp_section_fast_begin,
    448     (const int *) bsp_section_fast_load_begin,
    449     (size_t) bsp_section_fast_size
     447    (int *) bsp_section_fast_text_begin,
     448    (const int *) bsp_section_fast_text_load_begin,
     449    (size_t) bsp_section_fast_text_size
     450  );
     451
     452  /* Copy .fast_data section */
     453  bsp_start_memcpy(
     454    (int *) bsp_section_fast_data_begin,
     455    (const int *) bsp_section_fast_data_load_begin,
     456    (size_t) bsp_section_fast_data_size
    450457  );
    451458
  • c/src/lib/libbsp/arm/lpc24xx/startup/linkcmds.lpc2362

    r598a4505 rdd853a3  
    3636
    3737MEMORY {
    38         RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 32k
    39         RAM_USB (AIW) : ORIGIN = 0x7fd00000, LENGTH = 8k
    40         RAM_ETH (AIW) : ORIGIN = 0x7fe00000, LENGTH = 16k
    41         ROM_INT (RX)  : ORIGIN = 0x00000000, LENGTH = 128k
    42         NIRVANA : ORIGIN = 0, LENGTH = 0
     38        RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 32k
     39        RAM_USB (AIW) : ORIGIN = 0x7fd00000, LENGTH = 8k
     40        RAM_ETH (AIW) : ORIGIN = 0x7fe00000, LENGTH = 16k
     41        ROM_INT (RX)  : ORIGIN = 0x00000000, LENGTH = 128k
     42        NIRVANA : ORIGIN = 0, LENGTH = 0
    4343}
    4444
     
    6565lpc24xx_region_heap_1_end = lpc24xx_region_heap_1_begin + lpc24xx_region_heap_1_size;
    6666
    67 INCLUDE linkcmds.base
     67INCLUDE linkcmds.armv4
  • c/src/lib/libbsp/arm/lpc24xx/startup/linkcmds.lpc23xx_tli800

    r598a4505 rdd853a3  
    3838
    3939MEMORY {
    40         RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 32k
    41         RAM_USB (AIW) : ORIGIN = 0x7fd00000, LENGTH = 8k
    42         RAM_ETH (AIW) : ORIGIN = 0x7fe00000, LENGTH = 16k
    43         ROM_BOOT (RX) : ORIGIN = 0x00000000, LENGTH = 4k
    44         ROM_CFG (RX)  : ORIGIN = 0x00001000, LENGTH = 4k
    45         ROM_INT (RX)  : ORIGIN = 0x00002000, LENGTH = 120k
    46         NIRVANA : ORIGIN = 0, LENGTH = 0
     40        RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 32k
     41        RAM_USB (AIW) : ORIGIN = 0x7fd00000, LENGTH = 8k
     42        RAM_ETH (AIW) : ORIGIN = 0x7fe00000, LENGTH = 16k
     43        ROM_BOOT (RX) : ORIGIN = 0x00000000, LENGTH = 4k
     44        ROM_CFG (RX)  : ORIGIN = 0x00001000, LENGTH = 4k
     45        ROM_INT (RX)  : ORIGIN = 0x00002000, LENGTH = 120k
     46        NIRVANA : ORIGIN = 0, LENGTH = 0
    4747}
    4848
     
    6969lpc24xx_region_heap_1_end = lpc24xx_region_heap_1_begin + lpc24xx_region_heap_1_size;
    7070
    71 INCLUDE linkcmds.base
     71INCLUDE linkcmds.armv4
  • c/src/lib/libbsp/arm/lpc24xx/startup/linkcmds.lpc24xx_ea

    r598a4505 rdd853a3  
    3535
    3636MEMORY {
    37         RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 64k
    38         RAM_EXT (AIW) : ORIGIN = 0xa0000000, LENGTH = 32M
    39         NIRVANA : ORIGIN = 0, LENGTH = 0
     37        RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 64k
     38        RAM_EXT (AIW) : ORIGIN = 0xa0000000, LENGTH = 32M
     39        NIRVANA : ORIGIN = 0, LENGTH = 0
    4040}
    4141
     
    5454REGION_ALIAS ("REGION_STACK", RAM_INT);
    5555
    56 INCLUDE linkcmds.base
     56INCLUDE linkcmds.armv4
  • c/src/lib/libbsp/arm/lpc24xx/startup/linkcmds.lpc24xx_ncs_ram

    r598a4505 rdd853a3  
    3535
    3636MEMORY {
    37         RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 64k
    38         RAM_EXT (AIW) : ORIGIN = 0xa0000000, LENGTH = 8M
    39         NIRVANA : ORIGIN = 0, LENGTH = 0
     37        RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 64k
     38        RAM_EXT (AIW) : ORIGIN = 0xa0000000, LENGTH = 8M
     39        NIRVANA : ORIGIN = 0, LENGTH = 0
    4040}
    4141
     
    5454REGION_ALIAS ("REGION_STACK", RAM_INT);
    5555
    56 INCLUDE linkcmds.base
     56INCLUDE linkcmds.armv4
  • c/src/lib/libbsp/arm/lpc24xx/startup/linkcmds.lpc24xx_ncs_rom_ext

    r598a4505 rdd853a3  
    5858REGION_ALIAS ("REGION_STACK", RAM_INT);
    5959
    60 INCLUDE linkcmds.base
     60INCLUDE linkcmds.armv4
  • c/src/lib/libbsp/arm/lpc24xx/startup/linkcmds.lpc24xx_ncs_rom_int

    r598a4505 rdd853a3  
    3737
    3838MEMORY {
    39         RAM_VEC (AIW) : ORIGIN = 0x40000000, LENGTH = 32k
    40         RAM_INT (AIW) : ORIGIN = 0x40008000, LENGTH = 32k
    41         RAM_EXT (AIW) : ORIGIN = 0xa0400000, LENGTH = 4M
    42         ROM_INT (RX)  : ORIGIN = 0x00000000, LENGTH = 512k - 8k
    43         NIRVANA : ORIGIN = 0, LENGTH = 0
     39        RAM_VEC (AIW) : ORIGIN = 0x40000000, LENGTH = 32k
     40        RAM_INT (AIW) : ORIGIN = 0x40008000, LENGTH = 32k
     41        RAM_EXT (AIW) : ORIGIN = 0xa0400000, LENGTH = 4M
     42        ROM_INT (RX)  : ORIGIN = 0x00000000, LENGTH = 512k - 8k
     43        NIRVANA : ORIGIN = 0, LENGTH = 0
    4444}
    4545
     
    5858REGION_ALIAS ("REGION_STACK", RAM_INT);
    5959
    60 INCLUDE linkcmds.base
     60INCLUDE linkcmds.armv4
Note: See TracChangeset for help on using the changeset viewer.