summaryrefslogtreecommitdiff
path: root/n/es-2007/src/others.h
diff options
context:
space:
mode:
Diffstat (limited to 'n/es-2007/src/others.h')
-rw-r--r--n/es-2007/src/others.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/n/es-2007/src/others.h b/n/es-2007/src/others.h
index 9b9611f..cf58c78 100644
--- a/n/es-2007/src/others.h
+++ b/n/es-2007/src/others.h
@@ -33,7 +33,7 @@
/* pin responsible for the color mode */
#define JACK_PIN 0
#define SELECT_COLOR_PIN 1
-#define CONTACT_PIN 2
+#define CONTACT_PIN 2 // XXX Disable
/* (to be set 1 <-> 0) */
#define BLUE_COLOR_GAME_MODE _BV(0) /* 0000 0000 = 0 */
@@ -64,8 +64,10 @@ inline uint8_t others_contact (void)
/** Update ack if some contact happened ! */
inline void others_contact_update (void)
{
- if (others_contact ())
- ack_set (ACK_CONTACT_FRONT);
+ return;
+ // XXX Remove useless part XXX
+// if (others_contact ())
+// ack_set (ACK_CONTACT_FRONT);
}
/** Return the jack and the select_colour at the same time */
@@ -77,12 +79,6 @@ inline uint8_t other_jack_color (void)
/** Initialisation of color button (put select color pin in mode 'IN') */
inline void others_init(void)
{
- /* init DDRA (0 default) */
-
- /* DDR = 0 pin in mode IN */
- /* XXXX XXXX & 1111 1101 = XXXX XX0X */
- /* DDRA &= ~_BV(SELECT_COLOR_PIN); */
-
/* pull up in mode in */
PORTA |= _BV(SELECT_COLOR_PIN) | _BV(JACK_PIN) | _BV(CONTACT_PIN);
}