X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Ftelefiretwo-v1.0%2Fao_pins.h;h=b2f5a5ab827920451f30ea960150c13cd5941829;hp=8cde0043ba5579a81b4ed5cdbcb44715a333222f;hb=e5e0ce18b2ae684896a6d7d0a4c10269199d95b5;hpb=1e7143e5d448cd05c355f4a323ae4892b02022ac diff --git a/src/telefiretwo-v1.0/ao_pins.h b/src/telefiretwo-v1.0/ao_pins.h index 8cde0043..b2f5a5ab 100644 --- a/src/telefiretwo-v1.0/ao_pins.h +++ b/src/telefiretwo-v1.0/ao_pins.h @@ -32,15 +32,17 @@ #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 @@ -99,6 +100,15 @@ #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 */