Ignore:
Timestamp:
May 19, 2011, 12:30:00 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
db56ac79
Parents:
76134c5
Message:

2011-05-19 Sebastian Huber <sebastian.huber@…>

  • i2c/i2c-config.c: New file.
  • include/lcd.h: Removed EMC definitions.
  • misc/dma.c: Fixed initialization.
  • include/i2c.h, include/io.h, include/lpc-ethernet-config.h, include/lpc24xx.h, console/console-config.c, i2c/i2c.c, misc/io.c, misc/lcd.c, startup/bspstart.c, startup/bspstarthooks.c: New pin configuration API.
  • Makefile.am, preinstall.am: Update.
File:
1 edited

Legend:

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

    r76134c5 rd74ed4a  
    88
    99/*
    10  * Copyright (c) 2009
    11  * embedded brains GmbH
    12  * Obere Lagerstr. 30
    13  * D-82178 Puchheim
    14  * Germany
    15  * <rtems@embedded-brains.de>
     10 * Copyright (c) 2009-2011 embedded brains GmbH.  All rights reserved.
     11 *
     12 *  embedded brains GmbH
     13 *  Obere Lagerstr. 30
     14 *  82178 Puchheim
     15 *  Germany
     16 *  <rtems@embedded-brains.de>
    1617 *
    1718 * The license and distribution terms for this file may be
     
    4849  static void lpc_eth_config_module_enable(void)
    4950  {
     51    static const lpc24xx_pin_range pins [] = {
     52      LPC24XX_PIN_ETHERNET_RMII_0,
     53      LPC24XX_PIN_ETHERNET_RMII_1,
     54      LPC24XX_PIN_ETHERNET_RMII_2,
     55      LPC24XX_PIN_ETHERNET_RMII_3,
     56      LPC24XX_PIN_TERMINAL
     57    };
     58
    5059    lpc24xx_module_enable(LPC24XX_MODULE_ETHERNET, LPC24XX_MODULE_PCLK_DEFAULT);
    51     lpc24xx_io_config(LPC24XX_MODULE_ETHERNET, 1);
     60    lpc24xx_pin_config(&pins [0], LPC24XX_PIN_SET_FUNCTION);
    5261  }
    5362#else
    5463  static void lpc_eth_config_module_enable(void)
    5564  {
     65    static const lpc24xx_pin_range pins [] = {
     66      LPC24XX_PIN_ETHERNET_MII,
     67      LPC24XX_PIN_TERMINAL
     68    };
     69
    5670    lpc24xx_module_enable(LPC24XX_MODULE_ETHERNET, LPC24XX_MODULE_PCLK_DEFAULT);
    57     lpc24xx_io_config(LPC24XX_MODULE_ETHERNET, 0);
     71    lpc24xx_pin_config(&pins [0], LPC24XX_PIN_SET_FUNCTION);
    5872  }
    5973#endif
Note: See TracChangeset for help on using the changeset viewer.