From 50708ef4d91d3bd0f8b191060f9d96b28e15d71f Mon Sep 17 00:00:00 2001 From: MCUdude Date: Sun, 25 Dec 2022 20:17:54 +0100 Subject: [PATCH] Add more EDBG control commands --- src/jtag3_private.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/jtag3_private.h b/src/jtag3_private.h index 1de961b0..0c3806a6 100644 --- a/src/jtag3_private.h +++ b/src/jtag3_private.h @@ -271,9 +271,14 @@ #define XMEGA_ERASE_USERSIG 0x07 /* EDBG vendor commands */ -#define EDBG_VENDOR_AVR_CMD 0x80 -#define EDBG_VENDOR_AVR_RSP 0x81 -#define EDBG_VENDOR_AVR_EVT 0x82 +#define EDBG_VENDOR_AVR_CMD 0x80 +#define EDBG_VENDOR_AVR_RSP 0x81 +#define EDBG_VENDOR_AVR_EVT 0x82 + +#define EDBG_CTXT_CONTROL 0x00 +#define EDBG_CONTROL_LED_USAGE 0x00 +#define EDBG_CONTROL_EXT_PROG 0x01 +#define EDBG_CONTROL_TARGET_POWER 0x10 /* CMSIS-DAP commands */ #define CMSISDAP_CMD_INFO 0x00 /* get info, followed by INFO byte */