]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio/Source/SilLabs_Code/kits/EFM32WG_STK3800/config/caplesenseconfig.h
Replace Gecko Simplicity Studio project that had multiple build configurations with...
[freertos] / FreeRTOS / Demo / CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio / Source / SilLabs_Code / kits / EFM32WG_STK3800 / config / caplesenseconfig.h
diff --git a/FreeRTOS/Demo/CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio/Source/SilLabs_Code/kits/EFM32WG_STK3800/config/caplesenseconfig.h b/FreeRTOS/Demo/CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio/Source/SilLabs_Code/kits/EFM32WG_STK3800/config/caplesenseconfig.h
deleted file mode 100644 (file)
index 05756b2..0000000
+++ /dev/null
@@ -1,193 +0,0 @@
-/***************************************************************************//**\r
- * @file\r
- * @brief Low Energy Sensor (LESENSE) example configuration file.\r
- * @version 4.0.0\r
- *******************************************************************************\r
- * @section License\r
- * <b>(C) Copyright 2014 Silicon Labs, http://www.silabs.com</b>\r
- *******************************************************************************\r
- *\r
- * This file is licensed under the Silabs License Agreement. See the file\r
- * "Silabs_License_Agreement.txt" for details. Before using this software for\r
- * any purpose, you must agree to the terms of that agreement.\r
- *\r
- ******************************************************************************/\r
-\r
-\r
-#include "em_lesense.h"\r
-\r
-/***************************************************************************//**\r
- * @addtogroup Drivers\r
- * @{\r
- ******************************************************************************/\r
-\r
-/***************************************************************************//**\r
- * @addtogroup CapSense\r
- * @{\r
- ******************************************************************************/\r
-\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-/**************************************************************************//**\r
- * Macro definitions\r
- *****************************************************************************/\r
-#define CAPLESENSE_SENSITIVITY_OFFS    1U\r
-#define CAPLESENSE_NUMOF_SLIDERS       4                          /**< Number of sliders */\r
-#define CAPLESENSE_ACMP_VDD_SCALE      LESENSE_ACMP_VDD_SCALE     /**< Upper voltage threshold */\r
-\r
-#define CAPLESENSE_SLIDER_PORT0        gpioPortC                  /**< Slider Port. GPIO Port C */\r
-#define CAPLESENSE_SLIDER0_PORT        CAPLESENSE_SLIDER_PORT0      /**< Slider 0 Port. GPIO Port C */\r
-#define CAPLESENSE_SLIDER0_PIN         8UL                        /**< Slider 0 Pin 8 */\r
-#define CAPLESENSE_SLIDER1_PORT        CAPLESENSE_SLIDER_PORT0      /**< Slider 1 Port. GPIO Port C */\r
-#define CAPLESENSE_SLIDER1_PIN         9UL                        /**< Slider 1 Pin 9 */\r
-#define CAPLESENSE_SLIDER2_PORT        CAPLESENSE_SLIDER_PORT0      /**< Slider 2 Port. GPIO Port C */\r
-#define CAPLESENSE_SLIDER2_PIN         10UL                       /**< Slider 2 Pin 10 */\r
-#define CAPLESENSE_SLIDER3_PORT        CAPLESENSE_SLIDER_PORT0      /**< Slider 3 Port. GPIO Port C */\r
-#define CAPLESENSE_SLIDER3_PIN         11UL                       /**< Slider 3 Pin 11 */\r
-\r
-\r
-#define CAPLESENSE_CHANNEL_INT        (LESENSE_IF_CH8 | LESENSE_IF_CH9 | LESENSE_IF_CH10 | LESENSE_IF_CH11)\r
-#define LESENSE_CHANNELS        16  /**< Number of channels for the Low Energy Sensor Interface. */\r
-\r
-#define SLIDER_PART0_CHANNEL    8   /**< Touch slider channel Part 0 */\r
-#define SLIDER_PART1_CHANNEL    9   /**< Touch slider channel Part 1 */\r
-#define SLIDER_PART2_CHANNEL    10  /**< Touch slider channel Part 2 */\r
-#define SLIDER_PART3_CHANNEL    11  /**< Touch slider channel Part 3 */\r
-\r
-/** Upper voltage threshold. */\r
-#define LESENSE_ACMP_VDD_SCALE    0x37U\r
-\r
-\r
-#define LESENSE_CAPSENSE_CH_IN_USE {\\r
-/*  Ch0,   Ch1,   Ch2,   Ch3,   Ch4,   Ch5,   Ch6,   Ch7    */\\r
-  false, false, false, false, false, false, false, false,\\r
-/*  Ch8,   Ch9,   Ch10,  Ch11,  Ch12,  Ch13,  Ch14,  Ch15   */\\r
-  true,  true,  true,  true,  false, false, false, false\\r
-}\r
-\r
-/** Configuration for capacitive sense channels in sense mode. */\r
-#define LESENSE_CAPSENSE_CH_CONF_SENSE                                                                   \\r
-  {                                                                                                      \\r
-    true,                     /* Enable scan channel. */                                                 \\r
-    true,                     /* Enable the assigned pin on scan channel. */                             \\r
-    false,                    /* Disable interrupts on channel. */                                       \\r
-    lesenseChPinExDis,        /* GPIO pin is disabled during the excitation period. */                   \\r
-    lesenseChPinIdleDis,      /* GPIO pin is disabled during the idle period. */                         \\r
-    false,                    /* Don't use alternate excitation pins for excitation. */                  \\r
-    false,                    /* Disabled to shift results from this channel to the decoder register. */ \\r
-    false,                    /* Disabled to invert the scan result bit. */                              \\r
-    true,                     /* Enabled to store counter value in the result buffer. */                 \\r
-    lesenseClkLF,             /* Use the LF clock for excitation timing. */                              \\r
-    lesenseClkLF,             /* Use the LF clock for sample timing. */                                  \\r
-    0x00U,                    /* Excitation time is set to 0 excitation clock cycles. */                 \\r
-    0x0FU,                    /* Sample delay is set to 15(+1) sample clock cycles. */                   \\r
-    0x00U,                    /* Measure delay is set to 0 excitation clock cycles.*/                    \\r
-    LESENSE_ACMP_VDD_SCALE,   /* ACMP threshold has been set to LESENSE_ACMP_VDD_SCALE. */               \\r
-    lesenseSampleModeCounter, /* ACMP will be used in comparison. */                                     \\r
-    lesenseSetIntLevel,       /* Interrupt is generated if the sensor triggers. */                       \\r
-    0x00U,                    /* Counter threshold has been set to 0x00. */                              \\r
-    lesenseCompModeLess       /* Compare mode has been set to trigger interrupt on "less". */            \\r
-  }\r
-\r
-/** Configuration for capacitive sense channels in sleep mode. */\r
-#define LESENSE_CAPSENSE_CH_CONF_SLEEP                                                                   \\r
-  {                                                                                                      \\r
-    true,                     /* Enable scan channel. */                                                 \\r
-    true,                     /* Enable the assigned pin on scan channel. */                             \\r
-    true,                     /* Enable interrupts on channel. */                                        \\r
-    lesenseChPinExDis,        /* GPIO pin is disabled during the excitation period. */                   \\r
-    lesenseChPinIdleDis,      /* GPIO pin is disabled during the idle period. */                         \\r
-    false,                    /* Don't use alternate excitation pins for excitation. */                  \\r
-    false,                    /* Disabled to shift results from this channel to the decoder register. */ \\r
-    false,                    /* Disabled to invert the scan result bit. */                              \\r
-    true,                     /* Enabled to store counter value in the result buffer. */                 \\r
-    lesenseClkLF,             /* Use the LF clock for excitation timing. */                              \\r
-    lesenseClkLF,             /* Use the LF clock for sample timing. */                                  \\r
-    0x00U,                    /* Excitation time is set to 0 excitation clock cycles. */                 \\r
-    0x01U,                    /* Sample delay is set to 1(+1) sample clock cycles. */                    \\r
-    0x00U,                    /* Measure delay is set to 0 excitation clock cycles.*/                    \\r
-    LESENSE_ACMP_VDD_SCALE,   /* ACMP threshold has been set to LESENSE_ACMP_VDD_SCALE. */               \\r
-    lesenseSampleModeCounter, /* Counter will be used in comparison. */                                  \\r
-    lesenseSetIntLevel,       /* Interrupt is generated if the sensor triggers. */                       \\r
-    0x0EU,                    /* Counter threshold has been set to 0x0E. */                              \\r
-    lesenseCompModeLess       /* Compare mode has been set to trigger interrupt on "less". */            \\r
-  }\r
-\r
-/** Configuration for disabled channels. */\r
-#define LESENSE_DISABLED_CH_CONF                                                                         \\r
-  {                                                                                                      \\r
-    false,                    /* Disable scan channel. */                                                \\r
-    false,                    /* Disable the assigned pin on scan channel. */                            \\r
-    false,                    /* Disable interrupts on channel. */                                       \\r
-    lesenseChPinExDis,        /* GPIO pin is disabled during the excitation period. */                   \\r
-    lesenseChPinIdleDis,      /* GPIO pin is disabled during the idle period. */                         \\r
-    false,                    /* Don't use alternate excitation pins for excitation. */                  \\r
-    false,                    /* Disabled to shift results from this channel to the decoder register. */ \\r
-    false,                    /* Disabled to invert the scan result bit. */                              \\r
-    false,                    /* Disabled to store counter value in the result buffer. */                \\r
-    lesenseClkLF,             /* Use the LF clock for excitation timing. */                              \\r
-    lesenseClkLF,             /* Use the LF clock for sample timing. */                                  \\r
-    0x00U,                    /* Excitation time is set to 5(+1) excitation clock cycles. */             \\r
-    0x00U,                    /* Sample delay is set to 7(+1) sample clock cycles. */                    \\r
-    0x00U,                    /* Measure delay is set to 0 excitation clock cycles.*/                    \\r
-    0x00U,                    /* ACMP threshold has been set to 0. */                                    \\r
-    lesenseSampleModeCounter, /* ACMP output will be used in comparison. */                              \\r
-    lesenseSetIntNone,        /* No interrupt is generated by the channel. */                            \\r
-    0x00U,                    /* Counter threshold has been set to 0x01. */                              \\r
-    lesenseCompModeLess       /* Compare mode has been set to trigger interrupt on "less". */            \\r
-  }\r
-\r
-/** Configuration for scan in sense mode. */\r
-#define LESENSE_CAPSENSE_SCAN_CONF_SENSE                 \\r
-  {                                                      \\r
-    {                                                    \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 0. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 1. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 2. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 3. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 4. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 5. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 6. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 7. */  \\r
-      LESENSE_CAPSENSE_CH_CONF_SENSE,  /* Channel 8. */  \\r
-      LESENSE_CAPSENSE_CH_CONF_SENSE,  /* Channel 9. */  \\r
-      LESENSE_CAPSENSE_CH_CONF_SENSE,  /* Channel 10. */ \\r
-      LESENSE_CAPSENSE_CH_CONF_SENSE,  /* Channel 11. */ \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 12. */ \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 13. */ \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 14. */ \\r
-      LESENSE_DISABLED_CH_CONF         /* Channel 15. */ \\r
-    }                                                    \\r
-  }\r
-\r
-/** Configuration for scan in sleep mode. */\r
-#define LESENSE_CAPSENSE_SCAN_CONF_SLEEP                 \\r
-  {                                                      \\r
-    {                                                    \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 0. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 1. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 2. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 3. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 4. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 5. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 6. */  \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 7. */  \\r
-      LESENSE_CAPSENSE_CH_CONF_SLEEP,  /* Channel 8. */  \\r
-      LESENSE_CAPSENSE_CH_CONF_SLEEP,  /* Channel 9. */  \\r
-      LESENSE_CAPSENSE_CH_CONF_SLEEP,  /* Channel 10. */ \\r
-      LESENSE_CAPSENSE_CH_CONF_SLEEP,  /* Channel 11. */ \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 12. */ \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 13. */ \\r
-      LESENSE_DISABLED_CH_CONF,        /* Channel 14. */ \\r
-      LESENSE_DISABLED_CH_CONF         /* Channel 15. */ \\r
-    }                                                    \\r
-  }\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-/** @} (end group CapSense) */\r
-/** @} (end group Drivers) */\r