usleep as WAIT equivalent on RISC-V ULP
Posted: Tue Jan 26, 2021 6:09 pm
Spent way too long trying to find this info, so here it is for others:
I wanted to wait a certain number of cycles/microseconds so I could do SPI from the RISC-V ULP on my ESP32-S2
I'm having a hard time finding good documentation about availability of commands such as this, would love to see this page expanded:
https://docs.espressif.com/projects/esp ... isc-v.html
I wanted to wait a certain number of cycles/microseconds so I could do SPI from the RISC-V ULP on my ESP32-S2
Code: Select all
#include <unistd.h>
unsigned int microsecond = 1000000;
usleep(3 * microsecond);//sleeps for 3 second
https://docs.espressif.com/projects/esp ... isc-v.html