📄 uartswconf.h
字号:
/*! \file uartswconf.h \brief Interrupt-driven Software UART Driver Configuration. */
//*****************************************************************************
//
// File Name : 'uartswconf.h'
// Title : Interrupt-driven Software UART Driver Configuration
// Author : Pascal Stang - Copyright (C) 2002-2004
// Created : 7/20/2002
// Revised : 4/27/2004
// Version : 0.1
// Target MCU : Atmel AVR Series (intended for the ATmega16 and ATmega32)
// Editor Tabs : 4
//
// This code is distributed under the GNU Public License
// which can be found at http://www.gnu.org/licenses/gpl.txt
//
//*****************************************************************************
#ifndef UARTSWCONF_H
#define UARTSWCONF_H
// constants/macros/typdefs
#define UARTSW_RX_BUFFER_SIZE 0x20 ///< UART receive buffer size in bytes
// UART transmit pin defines
#define UARTSW_TX_PORT PORTD ///< UART Transmit Port
#define UARTSW_TX_DDR DDRD ///< UART Transmit DDR
#define UARTSW_TX_PIN PD5 ///< UART Transmit Pin
// UART receive pin defines
// This pin must correspond to the
// Timer1 Input Capture (ICP or IC1) pin for your processor
#define UARTSW_RX_PORT PORTD ///< UART Receive Port
#define UARTSW_RX_DDR DDRD ///< UART Receive DDR
#define UARTSW_RX_PORTIN PIND ///< UART Receive Port Input
#define UARTSW_RX_PIN PD6 ///< UART Receive Pin
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -