www.pudn.com > STM32_ucos.rar > eval.h, change:2010-10-20,size:3001b


/** 
  ****************************************************************************** 
  * @file    stm32_eval.h 
  * @author  MCD Application Team 
  * @version V3.1.0 
  * @date    06/19/2009 
  * @brief   Header file for stm32_eval.c module. 
  ****************************************************************************** 
  * @copy 
  * 
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 
  * 
  * <h2><center>© COPYRIGHT 2009 STMicroelectronics</center></h2> 
  */  
   
/* Define to prevent recursive inclusion -------------------------------------*/ 
#ifndef __EVAL_H 
#define __EVAL_H 
 
 
#include "ALIENTEK_MiniSTM32_EVAL.h" 
 
#ifdef __cplusplus 
 extern "C" { 
#endif  
 
/* Includes ------------------------------------------------------------------*/ 
#include "stm32f10x.h" 
 
/** @addtogroup Utilities 
  * @{ 
  */  
   
/** @addtogroup STM32_EVAL 
  * @{ 
  */  
 
 
/** @defgroup STM32_EVAL_Exported_Types 
  * @{ 
  */  
/** 
  * @} 
  */  
   
/** @defgroup STM32_EVAL_Exported_Constants 
  * @{ 
  */  
 
/**  
  * @brief  Uncomment the line corresponding to the STMicroelectronics evaluation 
  *   board used in your application. 
  *    
  *  Tip: To avoid modifying this file each time you need to switch between these 
  *       boards, you can define the board in your toolchain compiler preprocessor.     
  */  
                      
 
 
typedef enum  
	{ 
	LED1 = 0, 
	LED2 = 1 
	} Led_TypeDef; 
	 
typedef enum  
	{   
	Button_KEY0 = 0, 
	Button_KEY1 = 1, 
	Button_WAKEUP = 2 
	} Button_TypeDef; 
 
typedef enum  
	{   
	Mode_GPIO = 0, 
	Mode_EXTI = 1 
	} Button_Mode_TypeDef; 
 
 
 
 
typedef enum  
	{ 
	COM1 = 0, 
	COM2 = 1 
	} COM_TypeDef; 
  
/** 
  * @} 
  */  
 
/** @defgroup STM32_EVAL_Exported_Macros 
  * @{ 
  */  
/** 
  * @} 
  */  
 
/** @defgroup STM32_EVAL_Exported_Functions 
  * @{ 
  */  
void STM_EVAL_LEDInit(Led_TypeDef Led); 
void STM_EVAL_LEDOn(Led_TypeDef Led); 
void STM_EVAL_LEDOff(Led_TypeDef Led); 
void STM_EVAL_LEDToggle(Led_TypeDef Led); 
void STM_EVAL_PBInit(Button_TypeDef Button, Button_Mode_TypeDef Button_Mode); 
uint32_t STM_EVAL_PBGetState(Button_TypeDef Button); 
void STM_EVAL_COMInit(COM_TypeDef COM, USART_InitTypeDef* USART_InitStruct); 
void STM_EVAL_SendChar(COM_TypeDef COM,uint16_t ch); 
void USART_RX_IntteruptEnable(COM_TypeDef COM);		//接收中断使能 
#ifdef __cplusplus 
} 
#endif 
 
 
#endif /* __EVAL_H */ 
/** 
  * @} 
  */  
 
 
/** 
  * @} 
  */  
 
/** 
  * @} 
  */  
   
/** 
  * @} 
  */      
 
/******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/