sdcard_spi_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
23 #include "board.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
32  #define CARD_DETECT_PIN (XBEE2_INT_PIN)
33 
38  {
39  .spi_dev = SPI_DEV(0),
40  .cs = XBEE2_CS_PIN,
41  .clk = GPIO_PIN(PA, 17),
42  .mosi = GPIO_PIN(PA, 16),
43  .miso = GPIO_PIN(PA, 19),
44  .power = GPIO_UNDEF,
45  .power_act_high = true
46  },
47 };
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:45
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
static const sdcard_spi_params_t sdcard_spi_params[]
sdcard_spi configuration
#define SPI_DEV(x)
Default SPI device access macro.
Definition: spi.h:95
@ PA
port A
sdcard_spi device params
Definition: sdcard_spi.h:174
spi_t spi_dev
SPI bus used.
Definition: sdcard_spi.h:175
Board specific definitions for the Zigduino board.