altos: Make quadrature debounce per-pin rather than per-device
[fw/altos] / src / telelco-v0.2 / ao_pins.h
index 0a09cf787fcc44b65b304393502212e5203fb96d..a6fd4ff8fc2c681412025d8a03795c4fd5dfb434 100644 (file)
@@ -43,6 +43,8 @@
 
 #define HAS_EEPROM             1
 #define USE_INTERNAL_FLASH     1
+#define USE_EEPROM_CONFIG      1
+#define USE_STORAGE_CONFIG     0
 #define HAS_USB                        1
 #define HAS_BEEP               1
 #define HAS_RADIO              1
@@ -70,6 +72,8 @@
 #define PACKET_HAS_SLAVE       0
 #define PACKET_HAS_MASTER      0
 
+#define FAST_TIMER_FREQ                10000   /* .1ms for debouncing */
+
 /*
  * Radio is a cc1120 connected via SPI
  */
 #define AO_LED_CONTINUITY_2    (1 << LED_PIN_CONTINUITY_2)
 #define AO_LED_CONTINUITY_1    (1 << LED_PIN_CONTINUITY_1)
 #define AO_LED_CONTINUITY_0    (1 << LED_PIN_CONTINUITY_0)
-#define AO_LED_RX              AO_LED_RED
-#define AO_LED_TX              AO_LED_GREEN
 
 #define AO_LED_CONTINUITY_NUM  4
 
  */
 
 #define AO_QUADRATURE_COUNT    2
-#define AO_QUADRATURE_MODE     0
 
 #define AO_QUADRATURE_0_PORT   &stm_gpioe
 #define AO_QUADRATURE_0_A      3