mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 13:37:03 +03:00
Некоторые правки
This commit is contained in:
parent
c868bd1028
commit
fb64694722
@ -29,7 +29,7 @@ def upload_file(
|
||||
adapter_speed=adapter_default_speed,
|
||||
is_open_console=False,
|
||||
boot_mode=BootMode.UNDEFINED,
|
||||
log_path=DEFAULT_WORKPATH,
|
||||
log_path=default_log_path,
|
||||
post_action=default_post_action,
|
||||
mik_version=MIK32_Version.MIK32V2
|
||||
) -> int:
|
||||
|
||||
@ -28,21 +28,20 @@ program_name = f'mik32-uploader-{applicaton_version}'
|
||||
# BOLD = '\033[1m'
|
||||
# UNDERLINE = '\033[4m'
|
||||
|
||||
openocd_exec = "openocd"
|
||||
if os.name == 'nt':
|
||||
openocd_exec = "openocd.exe"
|
||||
else:
|
||||
openocd_exec = "openocd"
|
||||
|
||||
default_openocd_host = '127.0.0.1'
|
||||
openocd_exec_path = os.path.join("openocd", "bin", openocd_exec)
|
||||
openocd_scripts_path = os.path.join("openocd-scripts")
|
||||
openocd_interface_path = os.path.join("interface", "ftdi", "mikron-link.cfg")
|
||||
openocd_target_path = os.path.join("target", "mik32.cfg")
|
||||
default_post_action = "reset run"
|
||||
|
||||
default_log_path = "/dev/null"
|
||||
if os.name == 'nt':
|
||||
default_log_path = "nul"
|
||||
else:
|
||||
default_log_path = "/dev/null"
|
||||
default_post_action = "reset run"
|
||||
|
||||
adapter_default_speed = 500
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user