Changeset e7395c7 in rtems


Ignore:
Timestamp:
Jun 12, 2012, 7:55:52 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
696c451
Parents:
8462a96d
git-author:
Sebastian Huber <sebastian.huber@…> (06/12/12 07:55:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/12 13:59:34)
Message:

bsp/lpc24xx: Ethernet support for LPC17XX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/include/lpc-ethernet-config.h

    r8462a96d re7395c7  
    88
    99/*
    10  * Copyright (c) 2009-2011 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2009-2012 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    2828#include <bsp/lpc24xx.h>
    2929
     30#include <limits.h>
     31
    3032#ifdef __cplusplus
    3133extern "C" {
     
    3638#define LPC_ETH_CONFIG_REG_BASE MAC_BASE_ADDR
    3739
    38 #define LPC_ETH_CONFIG_RX_UNIT_COUNT_DEFAULT 16
    39 #define LPC_ETH_CONFIG_RX_UNIT_COUNT_MAX 54
     40#ifdef ARM_MULTILIB_ARCH_V4
     41  #define LPC_ETH_CONFIG_RX_UNIT_COUNT_DEFAULT 16
     42  #define LPC_ETH_CONFIG_RX_UNIT_COUNT_MAX 54
    4043
    41 #define LPC_ETH_CONFIG_TX_UNIT_COUNT_DEFAULT 10
    42 #define LPC_ETH_CONFIG_TX_UNIT_COUNT_MAX 10
     44  #define LPC_ETH_CONFIG_TX_UNIT_COUNT_DEFAULT 10
     45  #define LPC_ETH_CONFIG_TX_UNIT_COUNT_MAX 10
    4346
    44 #define LPC_ETH_CONFIG_UNIT_MULTIPLE 1U
     47  #define LPC_ETH_CONFIG_UNIT_MULTIPLE 1U
     48
     49  #define LPC24XX_ETH_RAM_BEGIN 0x7fe00000U
     50  #define LPC24XX_ETH_RAM_SIZE (16U * 1024U)
     51#else
     52  #define LPC_ETH_CONFIG_RX_UNIT_COUNT_DEFAULT 16
     53  #define LPC_ETH_CONFIG_RX_UNIT_COUNT_MAX INT_MAX
     54
     55  #define LPC_ETH_CONFIG_TX_UNIT_COUNT_DEFAULT 32
     56  #define LPC_ETH_CONFIG_TX_UNIT_COUNT_MAX INT_MAX
     57
     58  #define LPC_ETH_CONFIG_UNIT_MULTIPLE 8U
     59
     60  #define LPC_ETH_CONFIG_USE_TRANSMIT_DMA
     61
     62  #define LPC24XX_ETH_RAM_BEGIN 0x20000000U
     63  #define LPC24XX_ETH_RAM_SIZE (32U * 1024U)
     64#endif
    4565
    4666#ifdef LPC24XX_ETHERNET_RMII
     
    7393#endif
    7494
    75 #define LPC24XX_ETH_RAM_BEGIN 0x7fe00000U
    76 #define LPC24XX_ETH_RAM_SIZE (16U * 1024U)
    77 
    7895static char *lpc_eth_config_alloc_table_area(size_t size)
    7996{
Note: See TracChangeset for help on using the changeset viewer.