STM32F0xx Standard Peripherals Firmware Library
|
STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/main.h
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file RTC/RTC_TimeStamp/main.h 00004 * @author MCD Application Team 00005 * @version V1.4.0 00006 * @date 24-July-2014 00007 * @brief Header for main.c module 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> 00012 * 00013 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00014 * You may not use this file except in compliance with the License. 00015 * You may obtain a copy of the License at: 00016 * 00017 * http://www.st.com/software_license_agreement_liberty_v2 00018 * 00019 * Unless required by applicable law or agreed to in writing, software 00020 * distributed under the License is distributed on an "AS IS" BASIS, 00021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00022 * See the License for the specific language governing permissions and 00023 * limitations under the License. 00024 * 00025 ****************************************************************************** 00026 */ 00027 00028 /* Define to prevent recursive inclusion -------------------------------------*/ 00029 #ifndef __MAIN_H 00030 #define __MAIN_H 00031 00032 /* Includes ------------------------------------------------------------------*/ 00033 #include "stm32f0xx.h" 00034 #ifdef USE_STM320518_EVAL 00035 #include "stm320518_eval.h" 00036 #include "stm320518_eval_lcd.h" 00037 #else 00038 #include "stm32072b_eval.h" 00039 #include "stm32072b_eval_lcd.h" 00040 #endif /* USE_STM320518_EVAL */ 00041 #include <stdio.h> 00042 00043 /* Exported types ------------------------------------------------------------*/ 00044 typedef struct { 00045 uint8_t tab[9]; 00046 } Table_TypeDef; 00047 /* Private define ------------------------------------------------------------*/ 00048 /* Uncomment the corresponding line to select the RTC Clock source */ 00049 #define RTC_CLOCK_SOURCE_LSE /* LSE used as RTC source clock */ 00050 /* #define RTC_CLOCK_SOURCE_LSI */ /* LSI used as RTC source clock. The RTC Clock 00051 may varies due to LSI frequency dispersion. */ 00052 #define TAMPER_ON 1 00053 #define SEL_ON 2 00054 /* Exported constants --------------------------------------------------------*/ 00055 /* Exported macro ------------------------------------------------------------*/ 00056 /* Exported functions ------------------------------------------------------- */ 00057 00058 00059 #ifdef __GNUC__ 00060 /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf 00061 set to 'Yes') calls __io_putchar() */ 00062 #define PUTCHAR_PROTOTYPE int __io_putchar(int ch) 00063 #else 00064 #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f) 00065 #endif /* __GNUC__ */ 00066 00067 #endif /* __MAIN_H */ 00068 00069 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/