Skip to content

Commit

Permalink
Reverting back to older SPI BaudRate and GPIO Speed for stability
Browse files Browse the repository at this point in the history
  • Loading branch information
satishgn committed Jan 16, 2014
1 parent 613e60d commit 953cedb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions SPARK_Firmware_Driver/inc/platform_config.h
Expand Up @@ -200,7 +200,7 @@

#define CC3000_SPI_DR_BASE ((uint32_t)0x4000380C) /* SPI2_BASE | 0x0C */

#define CC3000_SPI_BAUDRATE_PRESCALER SPI_BaudRatePrescaler_4
#define CC3000_SPI_BAUDRATE_PRESCALER SPI_BaudRatePrescaler_32

//SST25 FLASH Interface pins
#define sFLASH_SPI SPI2
Expand All @@ -219,7 +219,7 @@
#define sFLASH_MEM_CS_GPIO_PORT GPIOB /* GPIOB */
#define sFLASH_MEM_CS_GPIO_CLK RCC_APB2Periph_GPIOB

#define sFLASH_SPI_BAUDRATE_PRESCALER SPI_BaudRatePrescaler_4
#define sFLASH_SPI_BAUDRATE_PRESCALER SPI_BaudRatePrescaler_32

#define USB_DISCONNECT_PIN GPIO_Pin_10
#define USB_DISCONNECT_GPIO_PORT GPIOB
Expand Down
4 changes: 2 additions & 2 deletions SPARK_Firmware_Driver/src/hw_config.c
Expand Up @@ -872,7 +872,7 @@ void CC3000_SPI_Init(void)

/* Configure CC3000_SPI pins: SCK */
GPIO_InitStructure.GPIO_Pin = CC3000_SPI_SCK_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(CC3000_SPI_SCK_GPIO_PORT, &GPIO_InitStructure);

Expand Down Expand Up @@ -1121,7 +1121,7 @@ void sFLASH_SPI_Init(void)

/* Configure sFLASH_SPI pins: SCK */
GPIO_InitStructure.GPIO_Pin = sFLASH_SPI_SCK_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(sFLASH_SPI_SCK_GPIO_PORT, &GPIO_InitStructure);

Expand Down

0 comments on commit 953cedb

Please sign in to comment.