1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Temporarily disable flash chip and configure SPI for modem.

This commit is contained in:
James Cotton 2012-08-25 18:43:13 -05:00
parent ad7a9b9cc3
commit 9e25e887c2
2 changed files with 5 additions and 5 deletions

View File

@ -309,8 +309,8 @@ void PIOS_Board_Init(void) {
#if defined(PIOS_INCLUDE_FLASH)
/* Connect flash to the approrpiate interface and configure it */
PIOS_Flash_Jedec_Init(pios_spi_telem_flash_id, 1, &flash_m25p_cfg);
PIOS_FLASHFS_Init(&flashfs_m25p_cfg);
//PIOS_Flash_Jedec_Init(pios_spi_telem_flash_id, 1, &flash_m25p_cfg);
//PIOS_FLASHFS_Init(&flashfs_m25p_cfg);
#endif
/* Initialize UAVObject libraries */

View File

@ -200,9 +200,9 @@ static const struct pios_spi_cfg pios_spi_telem_flash_cfg = {
.SPI_NSS = SPI_NSS_Soft,
.SPI_FirstBit = SPI_FirstBit_MSB,
.SPI_CRCPolynomial = 7,
.SPI_CPOL = SPI_CPOL_High,
.SPI_CPHA = SPI_CPHA_2Edge,
.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2,
.SPI_CPOL = SPI_CPOL_Low,
.SPI_CPHA = SPI_CPHA_1Edge,
.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_256,
},
.use_crc = false,
.dma = {