]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio/Source/SilLabs_Code/kits/SLSTK3401A_EFM32PG/config/capsenseconfig.h
Add Pearl Gecko demo.
[freertos] / FreeRTOS / Demo / CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio / Source / SilLabs_Code / kits / SLSTK3401A_EFM32PG / config / capsenseconfig.h
1 /***************************************************************************//**\r
2  * @file\r
3  * @brief capsense configuration parameters.\r
4  * @version 4.2.1\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_CAPSENSCONFIG_H__\r
17 #define __SILICON_LABS_CAPSENSCONFIG_H__\r
18 #ifdef __cplusplus\r
19 extern "C" {\r
20 #endif\r
21 \r
22 /* Use ACMP0 module for capsense */\r
23 #define ACMP_CAPSENSE                           ACMP0\r
24 #define ACMP_CAPSENSE_CMUCLOCK                  cmuClock_ACMP0\r
25 #define PRS_CH_CTRL_SOURCESEL_ACMP_CAPSENSE     PRS_CH_CTRL_SOURCESEL_ACMP0\r
26 #define PRS_CH_CTRL_SIGSEL_ACMPOUT_CAPSENSE    PRS_CH_CTRL_SIGSEL_ACMP0OUT\r
27 \r
28 /* On the SLSTK3401A the touch buttons are connected to PB11 and PB12.\r
29  *\r
30  * Pin  | APORT Channel (for ACMP0)\r
31  * -------------------------\r
32  * PB11 | APORT4XCH27\r
33  * PB12 | APORT3XCH28\r
34  *\r
35  */\r
36 #define CAPSENSE_CHANNELS       { acmpInputAPORT4XCH27, acmpInputAPORT3XCH28 }\r
37 #define BUTTON0_CHANNEL         0             /**< Button 0 channel */\r
38 #define BUTTON1_CHANNEL         1             /**< Button 1 channel */\r
39 #define ACMP_CHANNELS           2             /**< Number of channels in use for capsense */\r
40 #define NUM_SLIDER_CHANNELS     0             /**< The kit does not have a slider */\r
41 \r
42 #ifdef __cplusplus\r
43 }\r
44 #endif\r
45 #endif /* __SILICON_LABS_CAPSENSCONFIG_H__ */\r