Hello All,
The ViSi compiler generates the following commented code.
- In which case exactly this code is used ?
- Is there an example somewhere (Application note or forum ?)
- What are the PA pins (Enable, SCK,SDO,SDI) for SPI1 ?
Thanks in advance for your answers.
Best regards,
dpann
// Uncomment the following if Flash and Flash based GCF images, fonts or strings used.
/*
// if SPI0 (Traditional uSD SPI port) Used
// spi_Init(SPI_FAST, 0 or xSPI_ADDRESS_MODE4x ); // use SPI_ADDRESS_MODE4 if Flash memory is >16MB
// if SPI1 (other SPI pins) Used
// pin_HI(EnablePin) ; // EnablePin is PA pin connected to SPI_CS
// pin_Set(PIN_OUT,EnablePin) ; // EnablePin is PA pin connected to SPI_CS
// SPI1_SCK_pin(FlashSCK?<) ; // FlashSCK is PA pin connected to SPI_SCK
// SPI1_SDI_pin(FlashSDI?<) ; // FlashSDI is PA pin connected to SPI_SDI
// SPI1_SDO_pin(FlashSDO?<) ; // FlashSDO is PA pin connected to SPI_SDO
// SPI1_Init(SPI_SPEED15, SPI8_MODE_5 x+ SPI_ADDRESS_MODE4x, EnablePin) ; // add SPI_ADDRESS_MODE4 if Flash memory is >16MB, EnablePin is USD_ENABLE or PA?
spiflash_SetAdd(SPI0, 0, 0);
hndl := spiflash_LoadGCFImageControl(SPIx, EnablePin); // SPIx is SPI0 or SPI1, as appropriate, EnablePin is USD_ENABLE or PA?
*/
The ViSi compiler generates the following commented code.
- In which case exactly this code is used ?
- Is there an example somewhere (Application note or forum ?)
- What are the PA pins (Enable, SCK,SDO,SDI) for SPI1 ?
Thanks in advance for your answers.
Best regards,
dpann
// Uncomment the following if Flash and Flash based GCF images, fonts or strings used.
/*
// if SPI0 (Traditional uSD SPI port) Used
// spi_Init(SPI_FAST, 0 or xSPI_ADDRESS_MODE4x ); // use SPI_ADDRESS_MODE4 if Flash memory is >16MB
// if SPI1 (other SPI pins) Used
// pin_HI(EnablePin) ; // EnablePin is PA pin connected to SPI_CS
// pin_Set(PIN_OUT,EnablePin) ; // EnablePin is PA pin connected to SPI_CS
// SPI1_SCK_pin(FlashSCK?<) ; // FlashSCK is PA pin connected to SPI_SCK
// SPI1_SDI_pin(FlashSDI?<) ; // FlashSDI is PA pin connected to SPI_SDI
// SPI1_SDO_pin(FlashSDO?<) ; // FlashSDO is PA pin connected to SPI_SDO
// SPI1_Init(SPI_SPEED15, SPI8_MODE_5 x+ SPI_ADDRESS_MODE4x, EnablePin) ; // add SPI_ADDRESS_MODE4 if Flash memory is >16MB, EnablePin is USD_ENABLE or PA?
spiflash_SetAdd(SPI0, 0, 0);
hndl := spiflash_LoadGCFImageControl(SPIx, EnablePin); // SPIx is SPI0 or SPI1, as appropriate, EnablePin is USD_ENABLE or PA?
*/
Comment