diff options
author | Cluster <clusterrr@clusterrr.com> | 2015-05-26 21:30:43 +0300 |
---|---|---|
committer | Cluster <clusterrr@clusterrr.com> | 2015-05-26 21:30:43 +0300 |
commit | f167f7ff3d5249cb334a94689571d2e26dd766f3 (patch) | |
tree | 5fe24d3ad531351ef5c5ef8ceb5880e324a79bdf /nes2wii.h | |
parent | c7a8482c069d739fa8db12e46fd8a426109e6b5a (diff) |
Cleanup
Diffstat (limited to 'nes2wii.h')
-rw-r--r-- | nes2wii.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 |