altoslib: fix computation of TeleGPS battery voltage
[fw/altos] / src / telescience-v0.2 / ao_pins.h
index cb86fcb6aad2d3c70412a61be379a1dbea9ed132..29f16114062dac893e3680477affbf0da103e138 100644 (file)
@@ -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
 #define HAS_TELEMETRY          0
 #define PACKET_HAS_SLAVE       0
 
-#define HAS_SPI_1              1
-#define SPI_1_PA5_PA6_PA7      1
+#define HAS_SPI_1              0
+#define HAS_SPI_SLAVE_1                1
+#define SPI_1_PA5_PA6_PA7      1       
 #define SPI_1_PB3_PB4_PB5      0
 #define SPI_1_PE13_PE14_PE15   0
+#define SPI_1_OSPEEDR          STM_OSPEEDR_10MHz
 
 #define HAS_SPI_2              1
 #define SPI_2_PB13_PB14_PB15   1
 #define SPI_2_PD1_PD3_PD4      0
+#define SPI_2_OSPEEDR          STM_OSPEEDR_10MHz
 
 #define SPI_2_PORT             (&stm_gpiob)
 #define SPI_2_SCK_PIN          13
 #define HAS_GPS                        0
 #define HAS_FLIGHT             0
 #define HAS_ADC                        1
+#define HAS_ADC_TEMP           1
 #define HAS_LOG                        1
+#define AO_LOG_FORMAT          AO_LOG_FORMAT_TELESCIENCE
 
 /*
  * SPI Flash memory