Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
sdcard_spi_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
3
* 2017 Freie Universität Berlin
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
21
#ifndef SDCARD_SPI_PARAMS_H
22
#define SDCARD_SPI_PARAMS_H
23
24
#include "
arduino_pinmap.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#ifndef SDCARD_SPI_PARAM_SPI
35
#define SDCARD_SPI_PARAM_SPI (SPI_DEV(0))
36
#endif
37
#ifndef SDCARD_SPI_PARAM_CS
38
#define SDCARD_SPI_PARAM_CS (ARDUINO_PIN_4)
39
#endif
40
#ifndef SDCARD_SPI_PARAM_CLK
41
#define SDCARD_SPI_PARAM_CLK (ARDUINO_PIN_76)
42
#endif
43
#ifndef SDCARD_SPI_PARAM_MOSI
44
#define SDCARD_SPI_PARAM_MOSI (ARDUINO_PIN_75)
45
#endif
46
#ifndef SDCARD_SPI_PARAM_MISO
47
#define SDCARD_SPI_PARAM_MISO (ARDUINO_PIN_74)
48
#endif
49
#ifndef SDCARD_SPI_PARAM_POWER
50
#define SDCARD_SPI_PARAM_POWER (GPIO_UNDEF)
51
#endif
52
#ifndef SDCARD_SPI_PARAM_POWER_AH
54
#define SDCARD_SPI_PARAM_POWER_AH (true)
55
#endif
61
static
const
sdcard_spi_params_t
sdcard_spi_params
[] = {
62
{
63
.
spi_dev
= SDCARD_SPI_PARAM_SPI,
64
.cs = SDCARD_SPI_PARAM_CS,
65
.clk = SDCARD_SPI_PARAM_CLK,
66
.mosi = SDCARD_SPI_PARAM_MOSI,
67
.miso = SDCARD_SPI_PARAM_MISO,
68
.power = SDCARD_SPI_PARAM_POWER,
69
.power_act_high =
SDCARD_SPI_PARAM_POWER_AH
70
},
71
};
72
73
#ifdef __cplusplus
74
}
75
#endif
76
77
#endif
/* SDCARD_SPI_PARAMS_H */
arduino_pinmap.h
Compatibility wrapper for arduino_iomap.h.
sdcard_spi_params
static const sdcard_spi_params_t sdcard_spi_params[]
sdcard_spi configuration
Definition
sdcard_spi_params.h:61
SDCARD_SPI_PARAM_POWER_AH
#define SDCARD_SPI_PARAM_POWER_AH
treated as 'don't care' if SDCARD_SPI_PARAM_POWER is GPIO_UNDEF
Definition
sdcard_spi_params.h:54
sdcard_spi_params_t
sdcard_spi device params
Definition
sdcard_spi.h:175
sdcard_spi_params_t::spi_dev
spi_t spi_dev
SPI bus used.
Definition
sdcard_spi.h:176
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8