diff options
author | tmk <nobody@nowhere> | 2013-02-25 08:40:15 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-02-25 14:14:46 +0900 |
commit | 308abf598d4cc19be3c5b137bbd13d18510a083a (patch) | |
tree | 8cc5d21272b79d4011734ee074479c2bb99e7fc8 /converter/pc98_usb/config.h | |
parent | ea1ede83c36272ccaeb5e4d80efc3885edbb9209 (diff) |
Fix software serial configure
Diffstat (limited to 'converter/pc98_usb/config.h')
-rw-r--r-- | converter/pc98_usb/config.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h index 04ee5b1101..4f91c07ce4 100644 --- a/converter/pc98_usb/config.h +++ b/converter/pc98_usb/config.h @@ -69,11 +69,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define SERIAL_SOFT_RXD_PORT PORTD #define SERIAL_SOFT_RXD_PIN PIND #define SERIAL_SOFT_RXD_BIT 2 -#ifdef SERIAL_SOFT_LOGIC_NEGATIVE - #define SERIAL_SOFT_RXD_READ() ~(SERIAL_SOFT_RXD_PIN&(1<<SERIAL_SOFT_RXD_BIT)) -#else - #define SERIAL_SOFT_RXD_READ() (SERIAL_SOFT_RXD_PIN&(1<<SERIAL_SOFT_RXD_BIT)) -#endif +#define SERIAL_SOFT_RXD_READ() (SERIAL_SOFT_RXD_PIN&(1<<SERIAL_SOFT_RXD_BIT)) /* RXD Interupt */ #define SERIAL_SOFT_RXD_VECT INT2_vect #define SERIAL_SOFT_RXD_INIT() do { \ @@ -95,21 +91,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define SERIAL_SOFT_TXD_PORT PORTD #define SERIAL_SOFT_TXD_PIN PIND #define SERIAL_SOFT_TXD_BIT 3 -#ifdef SERIAL_SOFT_LOGIC_NEGATIVE - #define SERIAL_SOFT_TXD_ON() do { \ - SERIAL_SOFT_TXD_PORT &= ~(1<<SERIAL_SOFT_TXD_BIT); \ - } while (0) - #define SERIAL_SOFT_TXD_OFF() do { \ - SERIAL_SOFT_TXD_PORT |= (1<<SERIAL_SOFT_TXD_BIT); \ - } while (0) -#else - #define SERIAL_SOFT_TXD_ON() do { \ - SERIAL_SOFT_TXD_PORT |= (1<<SERIAL_SOFT_TXD_BIT); \ - } while (0) - #define SERIAL_SOFT_TXD_OFF() do { \ - SERIAL_SOFT_TXD_PORT &= ~(1<<SERIAL_SOFT_TXD_BIT); \ - } while (0) -#endif +#define SERIAL_SOFT_TXD_HI() do { SERIAL_SOFT_TXD_PORT |= (1<<SERIAL_SOFT_TXD_BIT); } while (0) +#define SERIAL_SOFT_TXD_LO() do { SERIAL_SOFT_TXD_PORT &= ~(1<<SERIAL_SOFT_TXD_BIT); } while (0) #define SERIAL_SOFT_TXD_INIT() do { \ /* pin configuration: output */ \ SERIAL_SOFT_TXD_DDR |= (1<<SERIAL_SOFT_TXD_BIT); \ |