altos: Only enable PWM on telescience_pwm product
authorKeith Packard <keithp@keithp.com>
Wed, 17 Oct 2012 05:17:25 +0000 (22:17 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 17 Oct 2012 05:17:25 +0000 (22:17 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/avr/ao_pins.h

index 0f49db0..0aa978e 100644 (file)
@@ -32,7 +32,7 @@
        #define HAS_BEEP                0
 #endif
 
-#ifdef TELESCIENCE
+#if defined(TELESCIENCE) || defined(TELESCIENCE_PWM)
        #define LEDS_AVAILABLE          0
        #define HAS_USB                 1
        #define HAS_LOG                 1
        #define AVR_VCC_5V              0
        #define AVR_VCC_3V3             1
        #define AVR_CLOCK               8000000UL
+#ifdef TELESCIENCE_PWM
        #define HAS_ICP3_COUNT          1
+#else
+       #define HAS_ICP3_COUNT          0
+#endif
 
        #define SPI_CS_PORT             PORTE
        #define SPI_CS_DIR              DDRE