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 0f49db0b83b8b6bf656b618adda7a8d50cee266e..0aa978e9dd174830163d2d20ac2e1e27c7a9fd1f 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