Loading...
Searching...
No Matches
sdcard_spi_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "board.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
29 #define CARD_DETECT_PIN (XBEE2_INT_PIN)
30
35 {
36 .spi_dev = SPI_DEV(0),
37 .cs = XBEE2_CS_PIN,
38 .clk = GPIO_PIN(PA, 17),
39 .mosi = GPIO_PIN(PA, 16),
40 .miso = GPIO_PIN(PA, 19),
41 .power = GPIO_UNDEF,
42 .power_act_high = true
43 },
44};
45
46#ifdef __cplusplus
47}
48#endif
49
#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
@ PA
port A
Support for the SenseBox MCU with SAMD21 board.
sdcard_spi device params
Definition sdcard_spi.h:174