diff options
author | tmk <nobody@nowhere> | 2013-02-25 00:40:15 +0100 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-02-25 06:14:46 +0100 |
commit | 308abf598d4cc19be3c5b137bbd13d18510a083a (patch) | |
tree | 8cc5d21272b79d4011734ee074479c2bb99e7fc8 /converter/pc98_usb | |
parent | ea1ede83c36272ccaeb5e4d80efc3885edbb9209 (diff) | |
download | qmk_firmware-308abf598d4cc19be3c5b137bbd13d18510a083a.tar.gz qmk_firmware-308abf598d4cc19be3c5b137bbd13d18510a083a.tar.xz |
Fix software serial configure
Diffstat (limited to 'converter/pc98_usb')
-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 04ee5b110..4f91c07ce 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); \ |