sio_com.h
来自「oki67500系列arm工程例程源代码」· C头文件 代码 · 共 67 行
H
67 行
/**********************************************************************************/
/* */
/* Copyright (C) 2003 Oki Electric Industry Co., LTD. */
/* */
/* System Name : ML675001 series */
/* Module Name : SIO-common definition include file */
/* File Name : sio_com.h */
/* Revision : 01.00 */
/* Date : 2003/03/09 initial version */
/* */
/**********************************************************************************/
#ifndef SIO_COM_H
#define SIO_COM_H
#ifdef __cplusplus
extern "C" {
#endif
#define SIO_BUF_SIZE 256 /* ring buffer size */
#define CCLK (60000000L) /* CCLK (Hz) */
#define CGBGR (1) /* clock gear */
#define CLKSIO (CCLK/CGBGR) /* frequency CLKSIO (Hz) */
#define BAUDRATE (115200) /* baud rate of SIO (baud) */
#define VALUE_OF_SIO /* value of SIOBT register */\
((256 * (16 * BAUDRATE) - CLKSIO) / (16 * BAUDRATE))
/*****************************************************************************/
/* Initialize SIO */
/* Function : SIO_init */
/* Parameters */
/* Input : Nothing */
/* Output : Nothing */
/*****************************************************************************/
void SIO_init(void);
/*****************************************************************************/
/* SIO transmission data */
/* Function : SIO_out */
/* Parameters */
/* Input : Pointer to transmission data */
/* Length of transmission data */
/* Output : Nothing */
/*****************************************************************************/
void SIO_send(const unsigned char *s, int l);
/*****************************************************************************/
/* SIO transmission data */
/* Function : SIO_out */
/* Parameters */
/* Input : Pointer to transmission data */
/* Length of transmission data */
/* Output : Nothing */
/*****************************************************************************/
char SIO_receive(char *s, int *l);
/********************************************************************/
/* Long to hex char */
/********************************************************************/
const unsigned char *SIO_ltoa_hex(unsigned long i, int len);
#ifdef __cplusplus
}; /* end of 'extern "C"' */
#endif
#endif /* end of sio_com.h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?