VS1010D Memorize the setting value
Posted: Thu 2022-01-20 12:24
If you add the following processing and start it again with PWRBTN, the setting value will be initialized.
Is it possible to remember the settings such as volume?
Is it possible to remember the settings such as volume?
printf("ECO Mode ON\n");
Disable(); /* No more interupts */
SetPLL(1); /* 1X clock */
/* Enable bits down */
PERIP(ANA_CF0) = 0;
PERIP(ANA_CF1) = 0;
PERIP(ANA_CF2) = 0;
PERIP(ANA_CF3) = 0;
/* Drive GPIO pins down */
PERIP(GPIO0_ODATA) = 0;
PERIP(GPIO1_ODATA) = 0;
PERIP(GPIO2_ODATA) = 0;
/* Shutdown regulators */
PERIP(REGU_CF) = 0;
PERIP(REGU_CF) = REGU_CF_AOFF | REGU_CF_IOOFF | REGU_CF_COFF;
PERIP(REGU_CF) |= REGU_CF_REGCK;
PERIP(REGU_CF) &= ~REGU_CF_REGCK;
DelayL(100000);