uartsw.h
来自「Source code for RFM01 fm radio receiver」· C头文件 代码 · 共 40 行
H
40 行
//*****************************************************************************
// Title : Software Interrupt-driven UART function library
// Author : Pascal Stang - Copyright (C) 2002-2003
//
// This code is distributed under the GNU Public License
// which can be found at http://www.gnu.org/licenses/gpl.txt
//
//*****************************************************************************
#ifndef UARTSW_H
#define UARTSW_H
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
#include "config.h"
#include "global.h"
// constants/macros/typdefs
#ifndef UARTSW_RX_BUFFER_SIZE
#define UARTSW_RX_BUFFER_SIZE 32
#endif
// functions
//! enable and initialize the software uart
void UARTSW_init(void);
//! returns the receive buffer structure
cBuffer* UARTSW_GetRxBuffer(void);
void UARTSW_SendByte(u08 data);
u08 UARTSW_ReceiveByte(u08* rxData);
void UARTSW_TxBitService(void);
void UARTSW_RxBitService(void);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?