Loading...
Searching...
No Matches
io1_xplained_internals.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
20#ifndef IO1_XPLAINED_INTERNALS_H
21#define IO1_XPLAINED_INTERNALS_H
22
23#include "cpu.h"
24#include "periph_cpu.h"
25#include "periph/adc.h"
26#include "periph/gpio.h"
27#include "periph/spi.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
37#define IO1_TEMPERATURE_BASE_ADDR (0x48)
38#define IO1_TEMPERATURE_DEFAULT_ADDR (0x07)
45#define IO1_SDCARD_SPI_PARAM_SPI SPI_DEV(1)
46#define IO1_SDCARD_SPI_PARAM_CS GPIO_PIN(1, 3)
47#define IO1_SDCARD_SPI_PARAM_CLK GPIO_PIN(1, 23)
48#define IO1_SDCARD_SPI_PARAM_MOSI GPIO_PIN(1, 22)
49#define IO1_SDCARD_SPI_PARAM_MISO GPIO_PIN(1, 2)
50#define IO1_SDCARD_SPI_PARAM_POWER (GPIO_UNDEF)
51#define IO1_SDCARD_SPI_PARAM_POWER_AH (true)
52#define IO1_SDCARD_SPI_PARAM_DETECT GPIO_PIN(0, 23)
59#define IO1_LIGHT_ADC_LINE ADC_LINE(0)
60#define IO1_LIGHT_ADC_RES ADC_RES_10BIT
67#define IO1_LED_PIN GPIO_PIN(0, 18)
74#define IO1_GPIO1_PIN GPIO_PIN(0, 13)
75#define IO1_GPIO2_PIN GPIO_PIN(0, 28)
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* IO1_XPLAINED_INTERNALS_H */
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.