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

STM8S/A

CAN/CAN_Networking/main.h
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    CAN_Networking\main.h
00004   * @author  MCD Application Team
00005   * @version V2.0.1
00006   * @date    18-November-2011
00007   * @brief   This file contains the external declaration of main.c file.
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 /* Define to prevent recursive inclusion -------------------------------------*/
00029 #ifndef __MAIN_H__
00030 #define __MAIN_H__
00031 
00032 /* Includes ------------------------------------------------------------------*/
00033 #include "stm8s.h"
00034 #include "stm8s_eval.h"
00035 #include "stm8s_eval_lcd.h"
00036 /* Private variables ---------------------------------------------------------*/
00037 /* Exported types ------------------------------------------------------------*/
00038 /* Private typedef -----------------------------------------------------------*/
00039 /* Private define ------------------------------------------------------------*/
00040 #define Key_Pressed 0x01
00041 #define Key_NoPressed 0x00
00042 #define TIME 0x7FFF
00043 
00044 /* Public function prototypes -----------------------------------------------*/
00045 void CLK_Config(void);
00046 void CAN_Config(void);
00047 void GPIO_Config(void);
00048 void LCD_Config(void);
00049 void LED_Display(u8 Ledstatus);
00050 void LCD_Display(u8 Ledstatus);
00051 void Delay (uint16_t nCount);
00052 
00053 
00054 #endif /* __MAIN_H__ */
00055 
00056 
00057 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/        
STM8 Standard Peripherals Library: Footer

 

 

 

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