summaryrefslogtreecommitdiff
path: root/bsp/microchip/common/board/sam_gmac.h
blob: 6c4d90658aaa5660a7168db48f04ee9236660b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c)
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date        Author    Email                    Notes
 * 2022-04-11  Kevin.Liu [email protected] First Release
 */

#ifndef __BOARD_SAM_GMAC_H_
#define __BOARD_SAM_GMAC_H_

#include <rtthread.h>

/**
  * @brief  GMAC duplex type
  */
typedef enum
{
  GMAC_HALF_DUPLEX                       = 0x00, /*!< half duplex */
  GMAC_FULL_DUPLEX                       = 0x01  /*!< full duplex */
} gmac_duplex_type;

/**
  * @brief  GMAC speed type
  */
typedef enum
{
  GMAC_SPEED_10MBPS                      = 0x00, /*!< 10 mbps */
  GMAC_SPEED_100MBPS                     = 0x01  /*!< 100 mbps */
} gmac_speed_type;

#define CONF_AT24MAC_ADDRESS               0x57

#endif // __BOARD_SAM_GMAC_H_