watchpin_configure
Configure a WatchPin to generate a pulse on target halt, run, or trace events for hardware synchronization.
Instructions
Configure a WatchPin to trigger on specific events.
Args: pin: WatchPin number (1, 2, 3, or 4 depending on hardware) trigger: Trigger condition: "break" — pulse when target halts "go" — pulse when target runs "trace_start" — pulse when trace recording starts "trace_stop" — pulse when trace recording stops polarity: Output polarity — "high" (active high) or "low" (active low)
Returns: Confirmation of WatchPin configuration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | ||
| trigger | No | break | |
| polarity | No | high |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |