]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio/Source/SilLabs_Code/kits/EFM32WG_STK3800/config/i2cspmconfig.h
Added a build configuration for the Wonder Gecko starter kit to the existing Giant...
[freertos] / FreeRTOS / Demo / CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio / Source / SilLabs_Code / kits / EFM32WG_STK3800 / config / i2cspmconfig.h
1 /***************************************************************************//**\r
2  * @file i2cspmconfig.h\r
3  * @brief I2CSPM driver configuration file\r
4  * @version 4.0.0\r
5  *******************************************************************************\r
6  * @section License\r
7  * <b>(C) Copyright 2014 Silicon Labs, http://www.silabs.com</b>\r
8  *******************************************************************************\r
9  *\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
13  *\r
14  ******************************************************************************/\r
15 \r
16 #ifndef __SILICON_LABS_I2CSPM_CONFIG_H__\r
17 #define __SILICON_LABS_I2CSPM_CONFIG_H__\r
18 \r
19 /***************************************************************************//**\r
20  * @addtogroup Drivers\r
21  * @{\r
22  ******************************************************************************/\r
23 \r
24  /***************************************************************************//**\r
25  * @addtogroup I2CSPM\r
26  * @{\r
27  ******************************************************************************/\r
28 \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     gpioPortC,                  /* SCL port */                                  \\r
36     5,                          /* SCL pin */                                   \\r
37     gpioPortC,                  /* SDA port */                                  \\r
38     4,                          /* SDA pin */                                   \\r
39     0,                          /* Location */                                  \\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
43   }\r
44 \r
45 #define I2CSPM_TRANSFER_TIMEOUT 300000\r
46 \r
47 /** @} (end addtogroup I2CSPM) */\r
48 /** @} (end addtogroup Drivers) */\r
49 \r
50 #endif /* __SILICON_LABS_I2CSPM_CONFIG_H__ */\r
51 \r