]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/ST_Code/Libraries/STMTouch_Driver/src/tsl.c
Remove unused files from STM32L discovery board demo directory structure and build.
[freertos] / FreeRTOS / Demo / CORTEX_STM32L152_Discovery_IAR / ST_Code / Libraries / STMTouch_Driver / src / tsl.c
1 /**\r
2   ******************************************************************************\r
3   * @file    tsl.c\r
4   * @author  MCD Application Team\r
5   * @version V1.3.2\r
6   * @date    22-January-2013\r
7   * @brief   This file contains the STMTouch Driver main functions.\r
8   ******************************************************************************\r
9   * @attention\r
10   *\r
11   * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>\r
12   *\r
13   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");\r
14   * You may not use this file except in compliance with the License.\r
15   * You may obtain a copy of the License at:\r
16   *\r
17   *        http://www.st.com/software_license_agreement_liberty_v2\r
18   *\r
19   * Unless required by applicable law or agreed to in writing, software\r
20   * distributed under the License is distributed on an "AS IS" BASIS,\r
21   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
22   * See the License for the specific language governing permissions and\r
23   * limitations under the License.\r
24   *\r
25   ******************************************************************************\r
26   */\r
27 \r
28 /* Includes ------------------------------------------------------------------*/\r
29 #include "tsl.h"\r
30 \r
31 /* Private typedefs ----------------------------------------------------------*/\r
32 /* Private defines -----------------------------------------------------------*/\r
33 /* Private macros ------------------------------------------------------------*/\r
34 /* Private variables ---------------------------------------------------------*/\r
35 /* Private functions prototype -----------------------------------------------*/\r
36 \r
37 /**\r
38   * @brief  Initializes the TS interface.\r
39   * @param  bank  Array holding all the banks\r
40   * @retval Status\r
41   */\r
42 TSL_Status_enum_T TSL_Init(CONST TSL_Bank_T *bank)\r
43 {\r
44   TSL_Status_enum_T retval;\r
45 \r
46   // Get banks array\r
47   TSL_Globals.Bank_Array = bank;\r
48 \r
49   // Initialization of the timing module\r
50   retval = TSL_tim_Init();\r
51 \r
52   if (retval == TSL_STATUS_OK)\r
53   {\r
54     // Initialization of the acquisition module\r
55     retval = TSL_acq_Init();\r
56   }\r
57 \r
58   return retval;\r
59 }\r
60 \r
61 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/\r