Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes2wii.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCluster <clusterrr@clusterrr.com>2015-05-26 21:30:43 +0300
committerCluster <clusterrr@clusterrr.com>2015-05-26 21:30:43 +0300
commitf167f7ff3d5249cb334a94689571d2e26dd766f3 (patch)
tree5fe24d3ad531351ef5c5ef8ceb5880e324a79bdf /nes2wii.h
parentc7a8482c069d739fa8db12e46fd8a426109e6b5a (diff)
Cleanup
Diffstat (limited to 'nes2wii.h')
-rw-r--r--nes2wii.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/nes2wii.h b/nes2wii.h
index 1ca4c22..02eb563 100644
--- a/nes2wii.h
+++ b/nes2wii.h
@@ -14,13 +14,9 @@
#define twi_sda_pin TWI_SDA_PIN
#ifdef DETECT_PORT
-#define DETECT_PORT_PORT PORT(DETECT_PORT)
-#define DETECT_PORT_DDR DDR(DETECT_PORT)
-#define WII_CONNECT DETECT_PORT_PORT |= (1<<DETECT_PIN)
-#define WII_DISCONNECT DETECT_PORT_PORT &= ~(1<<DETECT_PIN)
-#else
-#define WII_CONNECT
-#define WII_DISCONNECT
+#define dev_detect_port PORT(DETECT_PORT)
+#define dev_detect_ddr DDR(DETECT_PORT)
+#define dev_detect_pin DETECT_PIN
#endif
#define PRESS_A but_dat[5] &= 0b11101111; // BZL BB BY BA BX BZR BDL BDU