📄 sio_drv.h
字号:
/******************************************************************************
** File Name: sio_drv.h *
** Author: Xueliang.Wang *
** DATE: 11/10/2005 *
** Copyright: 2005 Spreatrum, Incoporated. All Rights Reserved. *
** Description: *
******************************************************************************
******************************************************************************
** Edit History *
** ------------------------------------------------------------------------- *
** DATE NAME DESCRIPTION *
** 11/10/2005 Xueliang.Wang Create. *
******************************************************************************/
#ifndef _SIO_DRV_H
#define _SIO_DRV_H
/**---------------------------------------------------------------------------*
** Dependencies *
**---------------------------------------------------------------------------*/
#include "sci_types.h"
/**---------------------------------------------------------------------------*
** Compiler Flag *
**---------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C"
{
#endif
/**---------------------------------------------------------------------------*
** Constant Variables *
**---------------------------------------------------------------------------*/
typedef enum
{
COM0,
COM1
}UART_PORT_E;
/**---------------------------------------------------------------------------*
** Function Prototypes *
**---------------------------------------------------------------------------*/
/*****************************************************************************/
// Description: The function initialize sio.
// Global resource dependence:
// Author: Xueliang.Wang
// Note:
/*****************************************************************************/
PUBLIC BOOLEAN SIO_Init( //
UART_PORT_E com_id //
);
/*****************************************************************************/
// Description: The function get a char from sio.
// Global resource dependence:
// Author: Xueliang.Wang
// Note:
/*****************************************************************************/
PUBLIC char SIO_GetChar( //
UART_PORT_E com_id //
);
/*****************************************************************************/
// Description: The function output a char to sio.
// Global resource dependence:
// Author: Xueliang.Wang
// Note:
/*****************************************************************************/
PUBLIC void SIO_PutChar( //
UART_PORT_E com_id, //
char c //
);
/*****************************************************************************/
// Description: The function output a string to sio.
// Global resource dependence:
// Author: Xueliang.Wang
// Note:
/*****************************************************************************/
PUBLIC void SIO_PutChars( //
UART_PORT_E com_id, //
const char * str_buf, //
uint32 str_len //
);
/**---------------------------------------------------------------------------*
** Compiler Flag *
**---------------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
#endif // _SIO_DRV_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -