enable logging support in telefiretwo
[fw/altos] / src / telefiretwo-v1.0 / ao_pins.h
index 8cde0043ba5579a81b4ed5cdbcb44715a333222f..b2f5a5ab827920451f30ea960150c13cd5941829 100644 (file)
 #define HAS_ADC                        1
 #define HAS_DBG                        0
 #define HAS_EEPROM             1
-#define HAS_LOG                        0
+#define HAS_LOG                        1
 #define HAS_PAD                        1
-#define USE_INTERNAL_FLASH     1
+#define USE_INTERNAL_FLASH     0
 #define IGNITE_ON_P0           0
 #define PACKET_HAS_MASTER      0
 #define PACKET_HAS_SLAVE       0
 #define AO_DATA_RING           32
 #define HAS_FIXED_PAD_BOX      1
 
+#define LOG_ERASE_MARK         0x55
+
 /* 8MHz High speed external crystal */
 #define AO_HSE                 8000000
 
@@ -67,7 +69,6 @@
 #define AO_RCC_CFGR_PPRE2_DIV  STM_RCC_CFGR_PPRE2_DIV_2
 
 #define HAS_EEPROM             1
-#define USE_INTERNAL_FLASH     1
 #define USE_EEPROM_CONFIG      1
 #define USE_STORAGE_CONFIG     0
 #define HAS_USB                        1
 
 #define FAST_TIMER_FREQ                10000   /* .1ms for debouncing */
 
+/*
+ * SPI Flash memory
+ */
+
+#define M25_MAX_CHIPS           1
+#define AO_M25_SPI_CS_PORT      (&stm_gpioa)
+#define AO_M25_SPI_CS_MASK      (1 << 15)
+#define AO_M25_SPI_BUS          AO_SPI_2_PB13_PB14_PB15
+
 /*
  * Radio is a cc1200 connected via SPI
  */