Skip to content

Commit

Permalink
man page: Minor adjustments in GPIO examples
Browse files Browse the repository at this point in the history
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
  • Loading branch information
tormodvolden committed Feb 12, 2021
1 parent c995a61 commit eb79483
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stm32flash.1
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ the '&' delimiter adds no delay.
An empty signal, thus repeated ',' delimiters, can be used to insert larger
delays in multiples of 100 ms.
E.g. "rts,,,,\-dtr" will set RTS, then wait 400 ms, then reset DTR.
"rts&\-dtr" will set RTS and reset DTR without delay. You can use ',' delimiters
"rts&\-dtr" will set RTS and reset DTR without delay. You can use ',' delimiters
alone to simply add a delay between opening port and starting to flash.
.DP
.P
Expand All @@ -255,7 +255,7 @@ If -R is specified, but no exit sequence, a software-triggered reset will
be performed.

.PD 0
As example, let's suppose the following connection between host and STM32:
As an example, let's suppose the following connection between host and STM32:
.IP \(bu 2
host GPIO_3 connected to reset pin of STM32;
.IP \(bu 2
Expand Down Expand Up @@ -284,7 +284,7 @@ STM32W uses pad PA5 to select boot mode; if during reset PA5 is "low" then
STM32W will enter in bootloader mode; if PA5 is "high" it will execute the
program in flash.

As example, supposing GPIO_3 connected to PA5 and GPIO_2 to STM32W's reset.
As an example, suppose GPIO_3 is connected to PA5 and GPIO_2 to STM32W's reset.
The command:
.PD 0
.RS
Expand All @@ -296,9 +296,9 @@ entry sequence: GPIO_3=low, GPIO_2=low, 100 ms delay, GPIO_2=high
.IP \(bu 2
exit sequence: GPIO_3=high, GPIO_2=low, 300 ms delay, GPIO_2=high
.PD
.P


GPIO sequence to bring delays on start after port opening.
Another example, introducing a delay after port opening.
The command:
.PD 0
.RS
Expand Down

0 comments on commit eb79483

Please sign in to comment.