1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00
RIOT/cpu/sam0_common/sam0_eth/sam0_eth_netdev.h
Marian Buschsieweke cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00

56 lines
1.0 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.
*/
#pragma once
/**
* @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>
*/
#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
/** @} */