sdcard_spi_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "board.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
27  #define CARD_DETECT_PIN (GPIO_PIN(PA, 21))
28 
33  {
34  .spi_dev = SPI_DEV(0),
35  .cs = GPIO_PIN(PA, 8),
36  .clk = GPIO_PIN(PB, 11),
37  .mosi = GPIO_PIN(PB, 10),
38  .miso = GPIO_PIN(PA, 12),
39  .power = GPIO_UNDEF,
40  .power_act_high = true
41  },
42 };
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:42
#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
@ PB
port B
@ 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.