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 
9 #pragma once
10 
22 #include "cpu.h"
23 #include "periph_cpu.h"
24 #include "periph/adc.h"
25 #include "periph/gpio.h"
26 #include "periph/spi.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
36 #define IO1_TEMPERATURE_BASE_ADDR (0x48)
37 #define IO1_TEMPERATURE_DEFAULT_ADDR (0x07)
44 #define IO1_SDCARD_SPI_PARAM_SPI SPI_DEV(1)
45 #define IO1_SDCARD_SPI_PARAM_CS GPIO_PIN(1, 3)
46 #define IO1_SDCARD_SPI_PARAM_CLK GPIO_PIN(1, 23)
47 #define IO1_SDCARD_SPI_PARAM_MOSI GPIO_PIN(1, 22)
48 #define IO1_SDCARD_SPI_PARAM_MISO GPIO_PIN(1, 2)
49 #define IO1_SDCARD_SPI_PARAM_POWER (GPIO_UNDEF)
50 #define IO1_SDCARD_SPI_PARAM_POWER_AH (true)
51 #define IO1_SDCARD_SPI_PARAM_DETECT GPIO_PIN(0, 23)
58 #define IO1_LIGHT_ADC_LINE ADC_LINE(0)
59 #define IO1_LIGHT_ADC_RES ADC_RES_10BIT
66 #define IO1_LED_PIN GPIO_PIN(0, 18)
73 #define IO1_GPIO1_PIN GPIO_PIN(0, 13)
74 #define IO1_GPIO2_PIN GPIO_PIN(0, 28)
77 #ifdef __cplusplus
78 }
79 #endif
80 
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.