/* Turns off the supply to SPI_Flash Core. 
This functions turns off the supply to SPI_Flash core. Since SPI_Flash won't be used on every wakeup it is safe to disable the power to SPI_Flash core and enable it when required.  */
void spi_flash_turn_off(void)
/* Turns off the supply to SPI_Flash Core. 
This functions turns off the supply to SPI_Flash core. Since SPI_Flash won't be used on every wakeup it is safe to disable the power to SPI_Flash core and enable it when required.  */
void spi_flash_turn_off(void)
{
	LPMCU_MISC_REGS0->PULL_ENABLE.reg &= ~LPMCU_MISC_REGS_PULL_ENABLE_LP_SIP__Msk;
	LPMCU_MISC_REGS0->SPIFLASH_VDDIO_CTRL.reg = 0x0;
}