File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -691,14 +691,17 @@ If the new command's direction differs from the previous command,
691691addQueueEntry() will automatically insert pause commands to ensure
692692sufficient delay before the first step in the new direction:
693693
694- - For external direction pins (pin >= 128): Two pause commands of 500µs
695- each are inserted. This requires two free queue entries; otherwise
696- AQE_QUEUE_FULL is returned.
694+ - For external direction pins (pin >= 128): The direction pin is controlled
695+ via an external callback (e.g., to an I/O expander). To avoid steps in
696+ the wrong direction, the queue must be empty of steps before the
697+ direction change. If steps are present or the external callback is still
698+ pending, a 2ms pause is inserted and AQE_DIR_PIN_2MS_PAUSE_ADDED is
699+ returned. The caller should retry until the queue drains and the callback
700+ completes.
697701
698702- For regular direction pins: If setDirectionPin() was called with
699703 dir_change_delay_us > 0, a pause command of that duration is inserted
700- before the first step. Pure pause commands (steps=0) do not trigger
701- this delay.
704+ before the first step in the new direction.
702705
703706- For autoEnable mode: The enable-on delay is extended to at least
704707 dir_change_delay_ticks if a direction change occurs.
You can’t perform that action at this time.
0 commit comments