STM8S/A Standard Peripherals Firmware Library: main.c Source File

STM8S/A

STM8S_StdPeriph_Template/main.c
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    Project/main.c 
00004   * @author  MCD Application Team
00005   * @version V2.2.0
00006   * @date    30-September-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 
00029 /* Includes ------------------------------------------------------------------*/
00030 #include "stm8s.h"
00031 
00032 /* Private defines -----------------------------------------------------------*/
00033 /* Private function prototypes -----------------------------------------------*/
00034 /* Private functions ---------------------------------------------------------*/
00035 
00036 void main(void)
00037 {
00038   /* Infinite loop */
00039   while (1)
00040   {
00041   }
00042   
00043 }
00044 
00045 #ifdef USE_FULL_ASSERT
00046 
00047 /**
00048   * @brief  Reports the name of the source file and the source line number
00049   *   where the assert_param error has occurred.
00050   * @param file: pointer to the source file name
00051   * @param line: assert_param error line source number
00052   * @retval : None
00053   */
00054 void assert_failed(u8* file, u32 line)
00055 { 
00056   /* User can add his own implementation to report the file name and line number,
00057      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
00058 
00059   /* Infinite loop */
00060   while (1)
00061   {
00062   }
00063 }
00064 #endif
00065 
00066 
00067 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com