Skip to content

Commit 8d90d47

Browse files
committed
comments
1 parent b33d219 commit 8d90d47

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stm32_flash.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ def STM32_startCommunication() -> bytes:
5050

5151

5252
def STM32_endCommunication():
53+
"""
54+
Ends communication with STM32 restoring flash boot mode and resetting
55+
:return:
56+
"""
5357
STM32_bootMode(bootloader=False)
5458
STM32_reset()
5559

@@ -82,6 +86,11 @@ def STM32_reset():
8286

8387

8488
def STM32_bootMode(bootloader: bool = False):
89+
"""
90+
Sets boot mode for STM32
91+
:param bootloader: if True, STM32 bootloader is run on boot
92+
:return:
93+
"""
8594
_Boot0.value(bootloader)
8695

8796

0 commit comments

Comments
 (0)