c3 changes (silence warnings)

This commit is contained in:
Jason2866 2022-01-09 14:55:39 +01:00
parent 0d6b7124e0
commit bbf81b5b5f
2 changed files with 14 additions and 1 deletions

View File

@ -43,9 +43,12 @@
#include <esp_hap_pair_verify.h>
#include <hap_platform_os.h>
#include <_esp_hap_config.h>
#include <hap_platform_httpd.h>
#include <esp_hap_ip_services.h>
static QueueHandle_t xQueue;
ESP_EVENT_DEFINE_BASE(HAP_EVENT);
// static TaskHandle_t hap_loop_handle;
const char * hap_get_version(void)
{
@ -354,7 +357,11 @@ int hap_start(void)
int hap_stop(void)
{
int ret = HAP_SUCCESS;
//todo
hap_mdns_deannounce();
hap_mdns_deinit();
httpd_handle_t _handle = hap_platform_httpd_get_handle();
if(_handle != NULL) hap_platform_httpd_stop(_handle);
ret = hap_loop_stop();
return ret;
}

View File

@ -91,6 +91,12 @@ void esp_mpi_exp_mpi_mod_hw_op(const mbedtls_mpi *X, const mbedtls_mpi *Y, const
#if CONFIG_IDF_TARGET_ESP32C3
void esp_mpi_exp_mpi_mod_hw_op(const mbedtls_mpi *X, const mbedtls_mpi *Y, const mbedtls_mpi *M, const mbedtls_mpi *Rinv, mbedtls_mpi_uint Mprime, size_t num_words);
extern int esp_mpi_exp_mod( mbedtls_mpi *Z, const mbedtls_mpi *X, const mbedtls_mpi *Y, const mbedtls_mpi *M, mbedtls_mpi *_Rinv );
extern size_t esp_mpi_hardware_words(size_t words);
extern void esp_mpi_enable_hardware_hw_op( void );
extern void esp_mpi_disable_hardware_hw_op( void );
extern void esp_mpi_read_result_hw_op(mbedtls_mpi *Z, size_t z_words);
extern void esp_mpi_mult_mpi_failover_mod_mult_hw_op(const mbedtls_mpi *X, const mbedtls_mpi *Y, size_t num_words);
#endif //CONFIG_IDF_TARGET_ESP32C3
#endif