1 /***************************************************************************//**
\r
3 * @brief capsense configuration parameters.
\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_CAPSENSCONFIG_H__
\r
17 #define __SILICON_LABS_CAPSENSCONFIG_H__
\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
28 /* On the SLSTK3401A the touch buttons are connected to PB11 and PB12.
\r
30 * Pin | APORT Channel (for ACMP0)
\r
31 * -------------------------
\r
32 * PB11 | APORT4XCH27
\r
33 * PB12 | APORT3XCH28
\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
45 #endif /* __SILICON_LABS_CAPSENSCONFIG_H__ */
\r