X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Ftelelco-v0.2%2Fao_pins.h;h=3d06a647246d4f6523195d94c447fadeede5687a;hp=0a09cf787fcc44b65b304393502212e5203fb96d;hb=0686a7b8aec524d81bda4c572549a3a068ce0eed;hpb=5d46d26d714cc172b5ea493478d9dd3cad323152 diff --git a/src/telelco-v0.2/ao_pins.h b/src/telelco-v0.2/ao_pins.h index 0a09cf78..3d06a647 100644 --- a/src/telelco-v0.2/ao_pins.h +++ b/src/telelco-v0.2/ao_pins.h @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -43,9 +44,16 @@ #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 BEEPER_TIMER 3 +#define BEEPER_CHANNEL 1 +#define BEEPER_PORT (&stm_gpioc) +#define BEEPER_PIN 6 #define HAS_RADIO 1 +#define HAS_RADIO_RATE 1 #define HAS_TELEMETRY 0 #define HAS_AES 1 @@ -70,6 +78,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 */ @@ -113,8 +123,6 @@ #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 @@ -237,7 +245,6 @@ */ #define AO_QUADRATURE_COUNT 2 -#define AO_QUADRATURE_MODE 0 #define AO_QUADRATURE_0_PORT &stm_gpioe #define AO_QUADRATURE_0_A 3 @@ -250,6 +257,7 @@ #define AO_QUADRATURE_1_B 0 #define AO_QUADRATURE_BOX 1 +#define AO_QUADRATURE_DEBOUNCE 10 /* * Buttons