mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
58 lines
1.1 KiB
C
58 lines
1.1 KiB
C
/*
|
|
* Copyright (C) 2020 Dylan Laduranty
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @defgroup cpu_sam0_common_eth sam0 Ethernet peripheral
|
|
* @ingroup cpu_sam0_common
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Netdev interface for the SAM0 Ethernet GMAC peripheral
|
|
*
|
|
* @author Dylan Laduranty <dylanladuranty@gmail.com>
|
|
*/
|
|
|
|
#ifndef SAM0_ETH_NETDEV_H
|
|
#define SAM0_ETH_NETDEV_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "net/ethernet.h"
|
|
#include "net/netdev.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Reference to the netdev device driver struct
|
|
*/
|
|
extern const netdev_driver_t sam0_eth_driver;
|
|
|
|
/**
|
|
* @brief Device descriptor for SAM0-ETH devices
|
|
*/
|
|
typedef struct {
|
|
netdev_t* netdev; /**< netdev parent struct */
|
|
} sam0_eth_netdev_t;
|
|
|
|
/**
|
|
* @brief Setup SAM0 Ethernet peripheral
|
|
*
|
|
* @param[in] dev Pointer to the netdev struct
|
|
*
|
|
*/
|
|
void sam0_eth_setup(netdev_t* dev);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SAM0_ETH_NETDEV_H */
|
|
/** @} */
|