📄 sio_com.h
字号:
/**********************************************************************************/
/* */
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -