Skip to content

Commit 2814f11

Browse files
committed
Update to pull in my nimble pairing fix
for meshtastic/firmware#370
1 parent 1adba3f commit 2814f11

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1689
-254
lines changed

Diff for: tools/sdk/include/config/sdkconfig.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@
195195
#define CONFIG_ESP32_WIFI_NVS_ENABLED 1
196196
#define CONFIG_MDNS_MAX_SERVICES 10
197197
#define CONFIG_ULP_COPROC_ENABLED 1
198-
#define CONFIG_LSSH_SPARSE_MN_5 1
199198
#define CONFIG_IDF_TARGET_ESP32 1
200199
#define CONFIG_EMAC_CHECK_LINK_PERIOD_MS 2000
201200
#define CONFIG_BTDM_LPCLK_SEL_MAIN_XTAL 1
@@ -249,6 +248,7 @@
249248
#define CONFIG_SPIFFS_GC_MAX_RUNS 10
250249
#define CONFIG_ARDUINO_RUN_CORE1 1
251250
#define CONFIG_ESP32_APPTRACE_DEST_NONE 1
251+
#define CONFIG_HP_NANO1 1
252252
#define CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC 1
253253
#define CONFIG_MBEDTLS_SSL_PROTO_TLS1_2 1
254254
#define CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA 1
@@ -391,8 +391,9 @@
391391
#define CONFIG_OV3660_SUPPORT 1
392392
#define CONFIG_UNITY_ENABLE_DOUBLE 1
393393
#define CONFIG_BLE_ADV_REPORT_DISCARD_THRSHOLD 20
394+
#define CONFIG_HD_NANO1 1
394395
#define CONFIG_BTDM_MODEM_SLEEP_MODE_ORIG 1
395396
#define CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR 1
396397
#define CONFIG_FATFS_API_ENCODING_ANSI_OEM 1
397-
#define CONFIG_ARDUINO_IDF_COMMIT "e7f316d5a"
398+
#define CONFIG_ARDUINO_IDF_COMMIT "b0c88a6ae"
398399
#define CONFIG_ARDUINO_IDF_BRANCH "meshtastic-release/v3.3"

Diff for: tools/sdk/include/esp-face/cat_face_3.h

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* ESPRESSIF MIT License
3+
*
4+
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
5+
*
6+
* Permission is hereby granted for use on ESPRESSIF SYSTEMS products only, in which case,
7+
* it is free of charge, to any person_body obtaining a copy of this software and associated
8+
* documentation files (the "Software"), to deal in the Software without restriction, including
9+
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
11+
* to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all copies or
14+
* substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
*
23+
*/
24+
25+
#pragma once
26+
27+
#ifdef __cplusplus
28+
extern "C"
29+
{
30+
#endif
31+
#include "dl_lib_matrix3d.h"
32+
#include "dl_lib_matrix3dq.h"
33+
#include "freertos/FreeRTOS.h"
34+
#include "detection.h"
35+
36+
extern detection_model_t cat_face_3_model;
37+
38+
#ifdef __cplusplus
39+
}
40+
#endif

Diff for: tools/sdk/include/esp-face/detection.h

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
* ESPRESSIF MIT License
3+
*
4+
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
5+
*
6+
* Permission is hereby granted for use on ESPRESSIF SYSTEMS products only, in which case,
7+
* it is free of charge, to any person obtaining a copy of this software and associated
8+
* documentation files (the "Software"), to deal in the Software without restriction, including
9+
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
11+
* to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all copies or
14+
* substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
*
23+
*/
24+
#pragma once
25+
26+
#ifdef __cplusplus
27+
extern "C"
28+
{
29+
#endif
30+
#include "dl_lib_matrix3d.h"
31+
#include "dl_lib_matrix3dq.h"
32+
#include "freertos/FreeRTOS.h"
33+
34+
typedef enum
35+
{
36+
Anchor_Point, /*<! Anchor point detection model*/
37+
Anchor_Box /*<! Anchor box detection model */
38+
} detection_model_type_t;
39+
40+
typedef struct
41+
{
42+
int **anchors_shape; /*<! Anchor shape of this stage */
43+
int stride; /*<! Zoom in stride of this stage */
44+
int boundary; /*<! Detection image low-limit of this stage */
45+
int project_offset; /*<! Project offset of this stage */
46+
} detection_stage_config_t;
47+
48+
typedef struct
49+
{
50+
dl_matrix3dq_t *score; /*<! score feature map of this stage*/
51+
dl_matrix3dq_t *box_offset; /*<! box_offset feature map of this stage*/
52+
dl_matrix3dq_t *landmark_offset; /*<! landmark_offset feature map of this stage */
53+
} detection_stage_result_t;
54+
55+
typedef struct
56+
{
57+
int resized_height; /*<! The height after resized */
58+
int resized_width; /*<! The width after resized */
59+
fptp_t y_resize_scale; /*<! resized_height / input_height */
60+
fptp_t x_resize_scale; /*<! resized_width / input_width */
61+
qtp_t score_threshold; /*<! Score threshold of detection model */
62+
fptp_t nms_threshold; /*<! NMS threshold of detection model */
63+
bool with_landmark; /*<! Whether detection with landmark, true: with, false: without */
64+
bool free_image; /*<! Whether free the resized image */
65+
int enabled_top_k; /*<! The number of enabled stages */
66+
} detection_model_config_t;
67+
68+
typedef struct
69+
{
70+
detection_stage_config_t *stage_config; /*<! Configuration of each stage */
71+
int stage_number; /*<! The number of stages */
72+
detection_model_type_t model_type; /*<! The type of detection model */
73+
detection_model_config_t model_config; /*<! Configuration of detection model */
74+
detection_stage_result_t *(*op)(dl_matrix3dq_t *, detection_model_config_t *); /*<! The function of detection inference */
75+
void *(*get_boxes)(detection_stage_result_t *, detection_model_config_t *, detection_stage_config_t *, int); /*<! The function of how to get real boxes */
76+
} detection_model_t;
77+
78+
/**
79+
* @brief free 'detection_stage_result_t' type value
80+
*
81+
* @param value A 'detection_stage_result_t' type value
82+
*/
83+
void free_detection_stage_result(detection_stage_result_t value);
84+
85+
#ifdef __cplusplus
86+
}
87+
#endif

0 commit comments

Comments
 (0)