@@ -18,23 +18,23 @@ The following paragraphs provide some insights into the software structure:
1818 - Measure VDD [ 0.01 V] (optional battery check)
1919 - Check RX buffer, run cmd_interpreter if flag is set
2020 - process state machine:
21- - move (pending MOVE command), finish at target position, abort on over_current
22- - home (pending HOME command), finish on over_current, abort on timeout (2 minutes)
23- - default (idle: check STATUSflags and switch state to move, home or bootload )
21+ - ** move** (pending MOVE command), finish at target position, abort on over_current
22+ - ** home** (pending HOME command), finish on over_current, abort on timeout (2 minutes)
23+ - ** default** (idle: check STATUSflags and switch state to _ move _ , _ home _ or reboot into bootloader )
2424 - STATUSflags.move? set main_state to state_move
2525 - STATUSflags.home? set main_state to state_home
2626 - STATUSflags.bootload? generate RESET
2727
2828** cmd interpreter**
2929Process commands and queries (?) from ESP:
30- - Move: save active drive and current limit, set g_STATUSflags.move
31- - Home: save active drive and current limit, set g_STATUSflags.home
32- - Status? send status data (position[ 1..4] , max. motor current, STATUSflags
33- - Version? send PIC version
34- - SetPos? send positions[ 1..4]
35- - max_mA? send max_mAx10[ 1..4]
36- - LogData? send logdata[ ]
37- - Bootload!
30+ - ` Move: ` save active drive and current limit, set g_STATUSflags.move
31+ - ` Home: ` save active drive and current limit, set g_STATUSflags.home
32+ - ` Status? ` send status data (position[ 1..4] , max. motor current, STATUSflags
33+ - ` Version? ` send PIC version
34+ - ` SetPos? ` send positions[ 1..4]
35+ - ` max_mA? ` send max_mAx10[ 1..4]
36+ - ` LogData? ` send logdata[ ]
37+ - ` Bootload! ` reboot into bootloader
3838
3939### init.c
4040- Configures system, I/Os, Timers etc.
0 commit comments