STM32F0xx Standard Peripherals Firmware Library: main.c Source File

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Templates/main.c
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    Project/STM32F0xx_StdPeriph_Templates/main.c 
00004   * @author  MCD Application Team
00005   * @version V1.5.0
00006   * @date    05-December-2014
00007   * @brief   Main program body
00008   ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; 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 /* Includes ------------------------------------------------------------------*/
00029 #include "main.h"
00030 
00031 /** @addtogroup STM32F0xx_StdPeriph_Templates
00032   * @{
00033   */
00034 
00035 /* Private typedef -----------------------------------------------------------*/
00036 /* Private define ------------------------------------------------------------*/
00037 /* Private macro -------------------------------------------------------------*/
00038 /* Private variables ---------------------------------------------------------*/
00039 /* Private function prototypes -----------------------------------------------*/
00040 /* Private functions ---------------------------------------------------------*/
00041 
00042 /**
00043   * @brief  Main program.
00044   * @param  None
00045   * @retval None
00046   */
00047 int main(void)
00048 {
00049 
00050   /*!< At this stage the microcontroller clock setting is already configured, 
00051        this is done through SystemInit() function which is called from startup
00052        file (startup_stm32f0xx.s) before to branch to application main.
00053        To reconfigure the default setting of SystemInit() function, refer to
00054        system_stm32f0xx.c file
00055      */ 
00056       
00057   /* Add your application code here
00058      */
00059 
00060   /* Infinite loop */
00061   while (1)
00062   {
00063 
00064   }
00065 }
00066 
00067 
00068 #ifdef  USE_FULL_ASSERT
00069 
00070 /**
00071   * @brief  Reports the name of the source file and the source line number
00072   *         where the assert_param error has occurred.
00073   * @param  file: pointer to the source file name
00074   * @param  line: assert_param error line source number
00075   * @retval None
00076   */
00077 void assert_failed(uint8_t* file, uint32_t line)
00078 { 
00079   /* User can add his own implementation to report the file name and line number,
00080      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
00081 
00082   /* Infinite loop */
00083   while (1)
00084   {
00085   }
00086 }
00087 #endif
00088 
00089 /**
00090   * @}
00091   */
00092 
00093 
00094 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32