]> git.zerfleddert.de Git - fnordlicht-mini/blobdiff - firmware/fnordlicht-firmware/remote.c
delete! delete! delete!
[fnordlicht-mini] / firmware / fnordlicht-firmware / remote.c
index dcef098c7336e3960435e21bd41c3e36b0157948..016a866bf61184dade70c72a57c7667f99abe7e8 100644 (file)
 #define R_PIN _INPORT(REMOTE_INT_PORT)
 #define INTPIN REMOTE_INT_PIN
 
-#define M_PORT _OUTPORT(REMOTE_MASTER_PORT)
-#define M_DDR _DDRPORT(REMOTE_MASTER_PORT)
-#define M_PIN _INPORT(REMOTE_MASTER_PORT)
-#define M_PIN1 REMOTE_MASTER_PIN1
-#define M_PIN2 REMOTE_MASTER_PIN2
-
 struct remote_state_t
 {
     /* serial communication */
@@ -95,14 +89,6 @@ static void parse_powerdown(void);
 
 void remote_init(void)
 {
-    /* master mode check: check if PIN2 pulls down PIN1 */
-    /* configure M_PIN1 as input with pullup */
-    M_DDR &= ~_BV(M_PIN1);
-    M_PORT |= _BV(M_PIN1);
-    /* configure M_PIN2 as output, set low */
-    M_DDR |= _BV(M_PIN2);
-    M_PORT &= ~_BV(M_PIN2);
-
     /* initialize offsets */
     global_remote.offsets.saturation = 255;
     global_remote.offsets.value = 255;
Impressum, Datenschutz