forked from espressif/esp-usb-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjtag.h
32 lines (28 loc) · 1.26 KB
/
jtag.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2020-2021 Espressif Systems (Shanghai) CO LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <stdint.h>
/* Be carefull if you want to change the index. It must be bigger then the size of string_desc_arr
For now 7 would be also ok. But lets reserve some fields fot the future additions
Also it must be match with the value in the openocd/esp_usb_bridge.cfg file
Currently it is defined as < esp_usb_jtag_caps_descriptor 0x030A >
*/
#define JTAG_STR_DESC_INX 0x0A
#define JTAG_PIO_DMA_TX_COMPLETE_EVENT (1 << 0)
#define JTAG_PIO_DMA_RX_COMPLETE_EVENT (1 << 1)
int jtag_get_proto_caps(uint16_t *dest);
int jtag_get_target_model(void);
void jtag_task(void *pvParameters);
void jtag_task_suspend(void);
void jtag_task_resume(void);