summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/switch.h
diff options
context:
space:
mode:
authorJérémy Dufour2008-03-22 16:17:19 +0100
committerJérémy Dufour2008-03-22 16:17:19 +0100
commitb6e28f0de9c2f02fe2cb5c3f8244f6b2199673b9 (patch)
treee5d9d0152f501ad55dec2cae3d4bea37b75ee64b /digital/io/src/switch.h
parent553b844b18f45fbe0ead56162f1100c73b9866c4 (diff)
* digital/io/src
- use the helper macro set_bit where needed.
Diffstat (limited to 'digital/io/src/switch.h')
-rw-r--r--digital/io/src/switch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/digital/io/src/switch.h b/digital/io/src/switch.h
index 4d2acd36..e09d6a8c 100644
--- a/digital/io/src/switch.h
+++ b/digital/io/src/switch.h
@@ -30,6 +30,7 @@
*/
#include "io.h"
+#include "modules/utils/utils.h" /* set_bit */
/**
* @defgroup SwitchConfiguration Configuration of the switch module.
@@ -68,10 +69,8 @@ switch_init (void)
{
/* By default, all pins are in input direction */
/* Enable the pull-ups */
-#define set_bit(port, bit) (port |= _BV(bit))
set_bit (SWITCH_COLOR_PORT, SWITCH_COLOR_PIN);
set_bit (SWITCH_JACK_PORT, SWITCH_JACK_PIN);
-#undef set_bit
}
/**