File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
packages/jumpstarter-driver-probe-rs
jumpstarter_driver_probe_rs Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export:
2424 chip : " RP2350"
2525 protocol : " swd"
2626 connect_under_reset : false
27+ speed : 4000
2728` ` `
2829
2930### Config parameters
@@ -35,6 +36,7 @@ export:
3536| chip | The target chip | str | no | |
3637| protocol | The target protocol | "swd" or "jtag" | no | |
3738| connect_under_reset | Connect to the target while asserting reset | bool | no | false |
39+ | speed | Connection speed in kHz | int | no | |
3840
3941## API Reference
4042
Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ export:
1111 config :
1212 probe_rs_path : /home/majopela/.cargo/bin/probe-rs
1313 protocol : " swd"
14+ speed : 4000
1415
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class ProbeRs(Driver):
1717 chip : str | None = None
1818 protocol : str | None = None
1919 connect_under_reset : bool = False
20+ speed : int | None = None
2021
2122 def __post_init__ (self ):
2223 if hasattr (super (), "__post_init__" ):
@@ -83,6 +84,8 @@ def env_from_cfg(self):
8384 env ["PROBE_RS_PROTOCOL" ] = self .protocol
8485 if self .connect_under_reset :
8586 env ["PROBE_RS_CONNECT_UNDER_RESET" ] = "true"
87+ if self .speed :
88+ env ["PROBE_RS_SPEED" ] = str (self .speed )
8689 return env
8790
8891
You can’t perform that action at this time.
0 commit comments