altos: Allow use of internal EEPROM for config storage
[fw/altos] / src / telegps-v0.1 / ao_pins.h
index 095745686da569b1ee49c9785a630b57ac4ef928..7ff599562dff637263528423901c38df70aab36f 100644 (file)
 #define ao_gps_fifo            (ao_stm_usart2.rx_fifo)
 
 #define HAS_EEPROM             1
-#define USE_INTERNAL_FLASH     1
+#define USE_INTERNAL_FLASH     0
+#define USE_EEPROM_CONFIG      1
+#define USE_STORAGE_CONFIG     0
+
 #define HAS_USB                        1
 #define HAS_BEEP               0
 #define HAS_RADIO              1
 #define SPI_1_PE13_PE14_PE15   0
 #define SPI_1_OSPEEDR          STM_OSPEEDR_10MHz
 
+#define SPI_1_PORT             (&stm_gpioa)
+#define SPI_1_SCK_PIN          5
+#define SPI_1_MISO_PIN         6
+#define SPI_1_MOSI_PIN         7
+
 #define HAS_SPI_2              1
 #define SPI_2_PB13_PB14_PB15   1       /* CC115L */
 #define SPI_2_PD1_PD3_PD4      0
 #define AO_CC115L_SPI_BUS      AO_SPI_2_PB13_PB14_PB15
 #define AO_CC115L_SPI          stm_spi2
 
-#define AO_CC115L_INT_PORT     (&stm_gpioa)
-#define AO_CC115L_INT_PIN      (9)
-
-#define AO_CC115L_MCU_WAKEUP_PORT      (&stm_gpioa)
-#define AO_CC115L_MCU_WAKEUP_PIN       (10)
-
-#define AO_CC115L_INT_GPIO     2
-#define AO_CC115L_INT_GPIO_IOCFG       CC115L_IOCFG2
+#define AO_CC115L_FIFO_INT_GPIO_IOCFG  CC115L_IOCFG2
+#define AO_CC115L_FIFO_INT_PORT                (&stm_gpioa)
+#define AO_CC115L_FIFO_INT_PIN         (9)
 
-#define AO_CC115L_MARC_GPIO    0
-#define AO_CC115L_MARC_GPIO_IOCFG      CC115L_IOCFG0
+#define AO_CC115L_DONE_INT_GPIO_IOCFG  CC115L_IOCFG0
+#define AO_CC115L_DONE_INT_PORT                (&stm_gpioa)
+#define AO_CC115L_DONE_INT_PIN         (10)
 
 #define HAS_RADIO_AMP          1
 
  */
 
 #define AO_SDCARD_SPI_BUS      AO_SPI_1_PA5_PA6_PA7
+#define AO_SDCARD_SPI_PORT     SPI_1_PORT
+#define AO_SDCARD_SPI_SCK_PIN  SPI_1_SCK_PIN
+#define AO_SDCARD_SPI_MISO_PIN SPI_1_MISO_PIN
+#define AO_SDCARD_SPI_MOSI_PIN SPI_1_MOSI_PIN
 #define AO_SDCARD_SPI_CS_PORT  (&stm_gpioa)
 #define AO_SDCARD_SPI_CS_PIN   4
 #define AO_SDCARD_SPI          stm_spi1