summaryrefslogtreecommitdiff
path: root/converter/pc98_usb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-02-25 08:40:15 +0900
committertmk <nobody@nowhere>2013-02-25 14:14:46 +0900
commit308abf598d4cc19be3c5b137bbd13d18510a083a (patch)
tree8cc5d21272b79d4011734ee074479c2bb99e7fc8 /converter/pc98_usb
parentea1ede83c36272ccaeb5e4d80efc3885edbb9209 (diff)
downloadqmk_firmware-308abf598d4cc19be3c5b137bbd13d18510a083a.tar.gz
qmk_firmware-308abf598d4cc19be3c5b137bbd13d18510a083a.zip
Fix software serial configure
Diffstat (limited to 'converter/pc98_usb')
-rw-r--r--converter/pc98_usb/config.h23
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); \