ESP32: 20 Hz KW-11
This commit is contained in:
parent
b52fe53e3b
commit
b244835743
1 changed files with 5 additions and 1 deletions
|
@ -75,8 +75,12 @@ void kw11_l::operator()()
|
||||||
if (get_lf_crs() & 64)
|
if (get_lf_crs() & 64)
|
||||||
b->getCpu()->queue_interrupt(6, 0100);
|
b->getCpu()->queue_interrupt(6, 0100);
|
||||||
|
|
||||||
// TODO: dependant on cpu cycles processed
|
// TODO: depending on cpu cycles processed
|
||||||
|
#if defined(ESP32)
|
||||||
|
myusleep(1000000 / 20); // 50ms
|
||||||
|
#else
|
||||||
myusleep(1000000 / 50); // 20ms
|
myusleep(1000000 / 50); // 20ms
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
myusleep(1000000 / 10); // 100ms
|
myusleep(1000000 / 10); // 100ms
|
||||||
|
|
Loading…
Add table
Reference in a new issue