1 /***************************************************************************//**
\r
2 * @file i2cspmconfig.h
\r
3 * @brief I2CSPM driver configuration file
\r
5 *******************************************************************************
\r
7 * <b>(C) Copyright 2014 Silicon Labs, http://www.silabs.com</b>
\r
8 *******************************************************************************
\r
10 * This file is licensed under the Silabs License Agreement. See the file
\r
11 * "Silabs_License_Agreement.txt" for details. Before using this software for
\r
12 * any purpose, you must agree to the terms of that agreement.
\r
14 ******************************************************************************/
\r
16 #ifndef __SILICON_LABS_I2CSPM_CONFIG_H__
\r
17 #define __SILICON_LABS_I2CSPM_CONFIG_H__
\r
19 /***************************************************************************//**
\r
20 * @addtogroup Drivers
\r
22 ******************************************************************************/
\r
24 /***************************************************************************//**
\r
25 * @addtogroup I2CSPM
\r
27 ******************************************************************************/
\r
29 /* I2C SPM driver config. This default override only works if one I2C interface
\r
30 is in use. If multiple interfaces are in use, define the peripheral setup
\r
31 inside the application in a I2CSPM_Init_TypeDef and then pass the initialization
\r
32 struct to I2CSPM_Init(). */
\r
33 #define I2CSPM_INIT_DEFAULT \
\r
34 { I2C0, /* Use I2C instance 0 */ \
\r
35 gpioPortD, /* SCL port */ \
\r
37 gpioPortD, /* SDA port */ \
\r
40 0, /* Use currently configured reference clock */ \
\r
41 I2C_FREQ_STANDARD_MAX, /* Set to standard rate */ \
\r
42 i2cClockHLRStandard, /* Set to use 4:4 low/high duty cycle */ \
\r
45 #define I2CSPM_TRANSFER_TIMEOUT 300000
\r
47 /** @} (end addtogroup I2CSPM) */
\r
48 /** @} (end addtogroup Drivers) */
\r
50 #endif /* __SILICON_LABS_I2CSPM_CONFIG_H__ */
\r