Compare commits
2 Commits
65ce47a62d
...
3a5968f0fa
Author | SHA1 | Date |
---|---|---|
|
3a5968f0fa | |
|
35509e3164 |
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**chip used**
|
||||
esp32/esp32s3/esp32c3…
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots/logs**
|
||||
If applicable, add screenshots or logs to help explain your problem.
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
|
@ -1,6 +0,0 @@
|
|||
[submodule "ESP8266_RTOS_SDK"]
|
||||
path = ESP8266_RTOS_SDK
|
||||
url = https://github.com/windowsair/ESP8266_RTOS_SDK.git
|
||||
[submodule "components/corsacOTA"]
|
||||
path = components/corsacOTA
|
||||
url = https://github.com/windowsair/corsacOTA.git
|
|
@ -46,6 +46,7 @@ typedef struct
|
|||
|
||||
|
||||
int kRestartDAPHandle = NO_SIGNAL;
|
||||
TaskHandle_t kDAPTaskHandle = NULL;
|
||||
|
||||
|
||||
static DapPacket_t DAPDataProcessed;
|
||||
|
@ -103,11 +104,13 @@ void handle_dap_data_request(usbip_stage2_header *header, uint32_t length)
|
|||
// always send constant size buf -> cuz we don't care about the IN packet size
|
||||
// and to unify the style, we set aside the length of the section
|
||||
xRingbufferSend(dap_dataIN_handle, data_in - sizeof(uint32_t), DAP_HANDLE_SIZE, portMAX_DELAY);
|
||||
xTaskNotifyGive(kDAPTaskHandle);
|
||||
|
||||
#else
|
||||
send_stage2_submit_data_fast(header, NULL, 0);
|
||||
|
||||
xRingbufferSend(dap_dataIN_handle, data_in, DAP_HANDLE_SIZE, portMAX_DELAY);
|
||||
xTaskNotifyGive(kDAPTaskHandle);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -150,6 +153,7 @@ void DAP_Thread(void *argument)
|
|||
dap_dataIN_handle = xRingbufferCreate(DAP_HANDLE_SIZE * DAP_BUFFER_NUM, RINGBUF_TYPE_BYTEBUF);
|
||||
dap_dataOUT_handle = xRingbufferCreate(DAP_HANDLE_SIZE * DAP_BUFFER_NUM, RINGBUF_TYPE_BYTEBUF);
|
||||
data_response_mux = xSemaphoreCreateMutex();
|
||||
kDAPTaskHandle = xTaskGetCurrentTaskHandle();
|
||||
size_t packetSize;
|
||||
int resLength;
|
||||
DapPacket_t *item;
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "lwip/err.h"
|
||||
#include "lwip/sockets.h"
|
||||
|
||||
extern TaskHandle_t kDAPTaskHandle;
|
||||
extern int kRestartDAPHandle;
|
||||
|
||||
int kSock = -1;
|
||||
|
@ -141,6 +142,8 @@ cleanup:
|
|||
el_process_buffer_free();
|
||||
|
||||
kRestartDAPHandle = RESET_HANDLE;
|
||||
if (kDAPTaskHandle)
|
||||
xTaskNotifyGive(kDAPTaskHandle);
|
||||
|
||||
//shutdown(listen_sock, 0);
|
||||
//close(listen_sock);
|
||||
|
|
Loading…
Reference in New Issue