Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
cfg_i2c_default.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2014-2016 Freie Universität Berlin
3
* SPDX-FileCopyrightText: 2015 Zolertia SL
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
20
21
#include "periph_cpu.h"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#define I2C_IRQ_PRIO 1
32
33
static
const
i2c_conf_t
i2c_config[] = {
34
{
35
.speed =
I2C_SPEED_FAST
,
36
.scl_pin =
GPIO_PIN
(
PORT_C
, 3),
37
.sda_pin =
GPIO_PIN
(
PORT_C
, 2)
38
},
39
};
40
41
#define I2C_NUMOF ARRAY_SIZE(i2c_config)
43
44
#ifdef __cplusplus
45
}
/* end extern "C" */
46
#endif
47
PORT_C
@ PORT_C
port C
Definition
periph_cpu.h:48
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition
periph_cpu.h:45
I2C_SPEED_FAST
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
Definition
periph_cpu.h:278
i2c_conf_t
I2C configuration structure.
Definition
periph_cpu.h:298
Generated on Fri Sep 5 2025 18:12:10 by
1.13.2