pwm_tool: Add support for high-speed PWM pin updates
The output_pin module is only capable of updating an output pin at most once every 100ms. Add a new pwm_tool module that is capable of queuing updates in the micro-controller and thus allowing for much higher update rates. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -28,3 +28,11 @@ SET_PIN PIN=soft_pwm_pin VALUE=0.5 CYCLE_TIME=0.5
|
||||
SET_PIN PIN=soft_pwm_pin VALUE=0.5 CYCLE_TIME=0.5
|
||||
SET_PIN PIN=soft_pwm_pin VALUE=0.75 CYCLE_TIME=0.5
|
||||
SET_PIN PIN=soft_pwm_pin VALUE=0.75 CYCLE_TIME=0.75
|
||||
|
||||
# PWM tool
|
||||
# Basic test
|
||||
SET_PIN PIN=test_pwm_tool VALUE=0
|
||||
SET_PIN PIN=test_pwm_tool VALUE=0.5
|
||||
SET_PIN PIN=test_pwm_tool VALUE=0.5
|
||||
SET_PIN PIN=test_pwm_tool VALUE=0.25
|
||||
SET_PIN PIN=test_pwm_tool VALUE=1
|
||||
|
||||
Reference in New Issue
Block a user