[Grbl_Esp32 PR#338] Simple speedup for spindle PWM

未分类 bolang 4个月前 (10-14) 49次浏览

Issue #338 | 状态: 已关闭 | 作者: MitchBradley | 创建时间: 2020-02-19


This is the opening salvo in an effort to improve the performance of PWM by optimizing the driver code for the ESP32’s LED PWM hardware. In this first checkin, we simply avoid the need to call ledcRead() by saving the old duty cycle value in memory, thus avoiding both a function call and an I/O read operation – as I/O reads cost lots of CPU cycles compared to memory reads.


评论 (1)

#1 – MitchBradley 于 2020-02-19

Closing this PR in favor of a similar one against Devt


原始Issue: https://github.com/bdring/Grbl_Esp32/pull/338

喜欢 (0)