Code: Select all
timecnt = micros();
I have another RC receiver, so I want to use these codes to read pwm waves. But I don’t want too much delay
Code: Select all
timecnt = micros();
Code: Select all
timecnt = micros();
OK,Thank you very much!GonzoG wrote: Sun Mar 07, 2021 10:13 am Don't know which core you use (Roger Clark's or STM) but GIOx_BASE is not a pointer in any.
In Roger's core you need to use GPIOx->regs->IDR
in STM core: GPIOx->IDR