usart.h

来自「基于STM32F107的UDP服务器程序」· C头文件 代码 · 共 54 行

H
54
字号
/**
  ******************************************************************************
  * @file    USART.h
  * @author  www.armjishu.com
  * @version V1.0
  * @Library Using STM32F10X_STDPERIPH_VERSION V3.3.0
  * @date    04/16/2010
  * @brief   USART program body
  *****************************************************************************/

/* Includes ------------------------------------------------------------------*/

#ifndef EVAL_COM1_STR
  #ifdef STM32F10X_CL
    #define EVAL_COM1_STR                    "USART2"
  #else
    #define EVAL_COM1_STR                    "USARTx"
  #endif
#endif

/* Constants used by Serial Command Line Mode */
#define CMD_STRING_SIZE       128


void USART_COM1_Init(void);
void USART_GetInputString (uint8_t * buffP);
uint32_t USART_Key_Pressed(uint8_t *key);
uint8_t USART_Get_Key(void);
uint8_t USART_Put_Char(uint8_t ch);


void USART_COM2_Init(void);
uint8_t USART2_Put_Char(uint8_t ch);
void USART2_Put_String(uint8_t *Str);
uint32_t USART2_Key_Pressed(uint8_t *key);

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/


/**
  * @}
  */ 

/**
  * @}
  */ 

/******************* (C) COPYRIGHT 2010 www.armjishu.com *****END OF FILE****/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?