]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/ST_Code/Libraries/STMTouch_Driver/src/tsl_time_stm32f3xx.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_time_stm32f3xx.c
1 /**\r
2   ******************************************************************************\r
3   * @file    tsl_time_stm32f3xx.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 all functions to manage the timing with STM32F3xx products.\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_time_stm32f3xx.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  Initialization of the timing module.\r
39   * @param  None\r
40   * @retval Status Return TSL_STATUS_ERROR if the Systick configuration has failed.\r
41   */\r
42 TSL_Status_enum_T TSL_tim_Init(void)\r
43 {\r
44   // Program one systick interrupt every (1 / TSLPRM_TICK_FREQ) ms\r
45   if (SysTick_Config(SystemCoreClock / TSLPRM_TICK_FREQ))\r
46   {\r
47     return TSL_STATUS_ERROR;\r
48   }\r
49   else\r
50   {\r
51     return TSL_STATUS_OK;\r
52   }\r
53 }\r
54 \r
55 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/\r