Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
Namespace Members
Functions
|
Variables
STM32F103VE_longer Namespace Reference
Functions
def
encrypt
(source, target, env)
Variables
LDSCRIPT_PATH
Function Documentation
◆
encrypt()
def STM32F103VE_longer.encrypt
(
source
,
target
,
env
)
11
def
encrypt
(source, target, env):
12
import
os
13
14
firmware = open(target[0].path,
"rb"
)
15
marlin_alfa = open(target[0].dir.path +
'/project.bin'
,
"wb"
)
16
length = os.path.getsize(target[0].path)
17
position = 0
18
try
:
19
while
position < length:
20
byte = firmware.read(1)
21
marlin_alfa.write(byte)
22
position += 1
23
finally
:
24
firmware.close()
25
marlin_alfa.close()
26
27
env.AddPostAction(
"$BUILD_DIR/${PROGNAME}.bin"
, encrypt);
Variable Documentation
◆
LDSCRIPT_PATH
STM32F103VE_longer.LDSCRIPT_PATH
STM32F103VE_longer.encrypt
def encrypt(source, target, env)
Definition:
STM32F103VE_longer.py:11
STM32F103VE_longer
Generated by
1.8.16