Loading...
Searching...
No Matches
io1_xplained_internals.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include "cpu.h"
20#include "periph_cpu.h"
21#include "periph/adc.h"
22#include "periph/gpio.h"
23#include "periph/spi.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#define IO1_TEMPERATURE_BASE_ADDR (0x48)
34#define IO1_TEMPERATURE_DEFAULT_ADDR (0x07)
36
41#define IO1_SDCARD_SPI_PARAM_SPI SPI_DEV(1)
42#define IO1_SDCARD_SPI_PARAM_CS GPIO_PIN(1, 3)
43#define IO1_SDCARD_SPI_PARAM_CLK GPIO_PIN(1, 23)
44#define IO1_SDCARD_SPI_PARAM_MOSI GPIO_PIN(1, 22)
45#define IO1_SDCARD_SPI_PARAM_MISO GPIO_PIN(1, 2)
46#define IO1_SDCARD_SPI_PARAM_POWER (GPIO_UNDEF)
47#define IO1_SDCARD_SPI_PARAM_POWER_AH (true)
48#define IO1_SDCARD_SPI_PARAM_DETECT GPIO_PIN(0, 23)
50
55#define IO1_LIGHT_ADC_LINE ADC_LINE(0)
56#define IO1_LIGHT_ADC_RES ADC_RES_10BIT
58
63#define IO1_LED_PIN GPIO_PIN(0, 18)
65
70#define IO1_GPIO1_PIN GPIO_PIN(0, 13)
71#define IO1_GPIO2_PIN GPIO_PIN(0, 28)
73
74#ifdef __cplusplus
75}
76#endif
77
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.