cfg_i2c_default.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2018 Freie Universität Berlin
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 CFG_I2C_DEFAULT_H
21 #define CFG_I2C_DEFAULT_H
22 
23 #include "periph_cpu.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 static const i2c_conf_t i2c_config[] = {
34  {
35  .dev = NRF_TWIM1,
36  .scl = 27,
37  .sda = 26,
38  .speed = I2C_SPEED_NORMAL
39  }
40 };
41 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
42 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* CFG_I2C_DEFAULT_H */
49 
I2C_SPEED_NORMAL
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
Definition: i2c.h:177
i2c_conf_t
I2C configuration options.
Definition: periph_cpu.h:128
i2c_conf_t::dev
I2C_TypeDef * dev
USART device used.
Definition: periph_cpu.h:247