From b6e28f0de9c2f02fe2cb5c3f8244f6b2199673b9 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sat, 22 Mar 2008 16:17:19 +0100 Subject: * digital/io/src - use the helper macro set_bit where needed. --- digital/io/src/switch.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'digital/io/src/switch.h') 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 } /** -- cgit v1.2.3