boards/remote-pa/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2016 Freie Universit├Ąt Berlin
3  * 2015 Zolertia SL
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 
22 #ifndef PERIPH_CONF_H
23 #define PERIPH_CONF_H
24 
25 #include "periph_common.h"
26 
27 #ifdef __cplusplus
28  extern "C" {
29 #endif
30 
35 #define I2C_IRQ_PRIO 1
36 
37 static const i2c_conf_t i2c_config[] = {
38  {
40  .scl_pin = GPIO_PIN(1, 1),
41  .sda_pin = GPIO_PIN(1, 0)
42  },
43 };
44 
45 #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0]))
46 
52 static const spi_conf_t spi_config[] = {
53  {
54  .num = 0,
55  .mosi_pin = GPIO_PIN(3, 0),
56  .miso_pin = GPIO_PIN(2, 4),
57  .sck_pin = GPIO_PIN(3, 1),
58  .cs_pin = GPIO_PIN(3, 3)
59  },
60  {
61  .num = 1,
62  .mosi_pin = GPIO_PIN(2, 7),
63  .miso_pin = GPIO_PIN(0, 4),
64  .sck_pin = GPIO_PIN(1 ,5),
65  .cs_pin = GPIO_UNDEF
66  }
67 };
68 
69 #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
70 
76 #define SOC_ADC_ADCCON3_EREF SOC_ADC_ADCCON3_EREF_AVDD5
77 
78 static const adc_conf_t adc_config[] = {
79  GPIO_PIN(0, 6),
80  GPIO_PIN(0, 7),
81 };
82 
83 #define ADC_NUMOF (sizeof(adc_config) / sizeof(adc_config[0]))
84 
86 #ifdef __cplusplus
87 } /* end extern "C" */
88 #endif
89 
90 #endif /* PERIPH_CONF_H */
91 
fast mode: ~400kbit/s
I2C configuration options.
uint8_t num
number of SSI device, i.e.
i2c_speed_t speed
baudrate used for the bus
Peripheral MCU configuration for the Re-Mote boards.
SPI module configuration options.
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
ADC device configuration.