Blame view

RIOT/drivers/w5100/include/w5100_params.h 1.32 KB
a752c7ab   elopes   add first test an...
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
  /*
   * Copyright (C) 2016 Freie Universitรคt Berlin
   *
   * 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.
   */
  
  /**
   * @ingroup     drivers_w5100
   * @{
   *
   * @file
   * @brief       Default parameters for W5100 Ethernet devices
   *
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef W5100_PARAMS_H
  #define W5100_PARAMS_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @name    Default configuration parameters for the W5100 driver
   * @{
   */
  #ifndef W5100_PARAM_SPI
  #define W5100_PARAM_SPI         (SPI_DEV(0))       /**< Default SPI device */
  #endif
  #ifndef W5100_PARAM_SPI_CLK
  #define W5100_PARAM_SPI_CLK     (SPI_CLK_5MHZ)     /**< Default SPI speed */
  #endif
  #ifndef W5100_PARAM_CS
  #define W5100_PARAM_CS          (GPIO_PIN(0, 0))   /**< Default SPI chip select pin */
  #endif
  #ifndef W5100_PARAM_EVT
  #define W5100_PARAM_EVT         (GPIO_PIN(0, 1))   /**< Default event pin */
  #endif
  /** @} */
  
  /**
   * @brief   W5100 configuration
   */
  static const  w5100_params_t w5100_params[] = {
      {
          .spi = W5100_PARAM_SPI,
          .clk = W5100_PARAM_SPI_CLK,
          .cs  = W5100_PARAM_CS,
          .evt = W5100_PARAM_EVT
      },
  };
  /** @} */
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* W5100_PARAMS_H */
  /** @} */