Loading...
Searching...
No Matches
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
17
18#include "board.h"
19
20#ifdef __cplusplus
21extern "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:45
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
static const sdcard_spi_params_t sdcard_spi_params[]
sdcard_spi configuration
Board specific configuration for the Adafruit Feather M0.
#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