Search found 3 matches
- Wed Jan 27, 2021 4:15 am
- Forum: ESP-IDF
- Topic: usleep as WAIT equivalent on RISC-V ULP
- Replies: 2
- Views: 4319
Re: usleep as WAIT equivalent on RISC-V ULP
This didn't actually work, I'm sorry. I also tried some clever C assembly calling from RISC like asm("wait 3"); And that also didn't work I'm currently using this stupid function to wait a present amount of cycles based on the FSM docs cycles per functions: void wait2(int cycles) { while (cycles > 0...
- Tue Jan 26, 2021 6:09 pm
- Forum: ESP-IDF
- Topic: usleep as WAIT equivalent on RISC-V ULP
- Replies: 2
- Views: 4319
usleep as WAIT equivalent on RISC-V ULP
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 #include <unistd.h> unsigned int microsecond = 1000000; usleep(3 * microsecond);//sleeps for 3 second I'm having a hard...
- Tue Jan 26, 2021 5:54 pm
- Forum: ESP-IDF
- Topic: Using i2c from ULP-RISC-V coprocessor on esp32-S2
- Replies: 2
- Views: 4193
Re: Using i2c from ULP-RISC-V coprocessor on esp32-S2
There are some existing examples of this on the non-RISC ULP, which will also work for you if you're chasing functionality:
https://github.com/wardjm/esp32-ulp-i2c
https://github.com/tomtor/ulp-i2c
If you're chasing RISC-V ULP knowledge -- well... So am I.
https://github.com/wardjm/esp32-ulp-i2c
https://github.com/tomtor/ulp-i2c
If you're chasing RISC-V ULP knowledge -- well... So am I.