Changeset fb29ca55 in rtems


Ignore:
Timestamp:
Feb 16, 2016, 1:11:09 PM (4 years ago)
Author:
Alexander Krutwig <alexander.krutwig@…>
Branches:
master
Children:
2803314e
Parents:
0bd49f1
git-author:
Alexander Krutwig <alexander.krutwig@…> (02/16/16 13:11:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/31/16 11:00:44)
Message:

bsp/atsam: Add network interface driver

Location:
c/src/lib/libbsp/arm/atsam
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/atsam/Makefile.am

    r0bd49f1 rfb29ca55  
    421421libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv7m/include
    422422
     423# Network
     424if HAS_NETWORKING
     425libbsp_a_SOURCES += network/if_atsam.c
     426endif
     427
    423428# Includes
    424429libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/CMSIS/Include
  • c/src/lib/libbsp/arm/atsam/include/bsp.h

    r0bd49f1 rfb29ca55  
    3535#define BSP_ARMV7M_SYSTICK_FREQUENCY atsam_systick_frequency()
    3636
     37struct rtems_bsdnet_ifconfig;
     38
     39int if_atsam_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
     40
     41#define RTEMS_BSP_NETWORK_DRIVER_NAME "atsam0"
     42
     43#define RTEMS_BSP_NETWORK_DRIVER_ATTACH if_atsam_attach
     44
     45/**
     46 * @brief Interface driver configuration.
     47 */
     48typedef struct {
     49  /**
     50   * @brief Maximum retries for MDIO communication.
     51   */
     52  uint32_t mdio_retries;
     53
     54  /**
     55   * @brief Address of PHY.
     56   *
     57   * Use -1 to search for a PHY.
     58   */
     59  int phy_addr;
     60} if_atsam_config;
     61
    3762/** @} */
    3863
Note: See TracChangeset for help on using the changeset viewer.