⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serialio.h

📁 snake game in avr snake game in avr
💻 H
字号:
/*
 * FILE: serialio.h
 *
 * Written by Peter Sutton, September 2003.
 * 
 * Module to allow standard input/output routines to be used via 
 * serial port. The init_serial_stdio() method must be called before
 * any standard IO methods (e.g. printf). We use interrupt-based serial
 * IO and a circular buffer to store output messages. (This allows us 
 * to print many characters at once to the buffer and have them 
 * output by the UART as speed permits.) Interrupts must be enabled 
 * globally for this module to work.
 *
 */


/*
** Initialise serial IO using the UART. baudrate specifies the desired
** baudrate (e.g. 19200) and echo determines whether incoming characters
** echoed back to the UART outpu as they are received (zero means no
** echo, non-zero means echo)
*/
void init_serial_stdio(long baudrate, char echo);

/*
** Test if input is available from the serial port. Return 0 if not,
** non-zero otherwise.
*/
int8_t input_available(void);

⌨️ 快捷键说明

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