Code: Select all
void call_start_cpu0()
{
uint32_t bitflag = 1<<23;
bool mybit=false;
uint32_t tm_start = esp_log_early_timestamp();
uint32_t delay_msec = 10;
do {
gpio_output_set(mybit?bitflag:0, mybit?0:bitflag, mybit, 0);
mybit = !mybit;
} while (delay_msec > (esp_log_early_timestamp() - tm_start));