mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
Merge branch 'bugfix/fix_mbedtls_unit_test_compiling_error' into 'master'
fix(mbedtls): fix mbedtls unit test compiling error See merge request sdk/ESP8266_RTOS_SDK!1310
This commit is contained in:
@ -7,6 +7,12 @@ config DISABLE_FREERTOS
|
|||||||
Enable this option, FreeRTOS will not be compiled and linked, and the user
|
Enable this option, FreeRTOS will not be compiled and linked, and the user
|
||||||
can user other OS platform.
|
can user other OS platform.
|
||||||
|
|
||||||
|
config FREERTOS_UNICORE
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Only for code compatible.
|
||||||
|
|
||||||
config FREERTOS_ENABLE_REENT
|
config FREERTOS_ENABLE_REENT
|
||||||
bool "Enable \"reent\" function"
|
bool "Enable \"reent\" function"
|
||||||
default n
|
default n
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
#include "soc/uart_periph.h"
|
|
||||||
#include "test_apb_dport_access.h"
|
#include "test_apb_dport_access.h"
|
||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
|
|
||||||
#ifndef CONFIG_FREERTOS_UNICORE
|
#ifndef CONFIG_FREERTOS_UNICORE
|
||||||
|
|
||||||
|
#include "soc/uart_periph.h"
|
||||||
|
|
||||||
static void apb_access_loop_task(void *ignore);
|
static void apb_access_loop_task(void *ignore);
|
||||||
|
|
||||||
static volatile bool apb_access_corrupt;
|
static volatile bool apb_access_corrupt;
|
||||||
|
@ -58,7 +58,7 @@ static void test_bignum_mult(const char *a_str, const char *b_str, const char *e
|
|||||||
mbedtls_mpi_set_bit(&M, i, 1);
|
mbedtls_mpi_set_bit(&M, i, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_FALSE(esp_mpi_mul_mpi_mod(&X, &A, &B, &M));
|
TEST_ASSERT_FALSE(mbedtls_mpi_exp_mod(&X, &A, &B, &M, NULL));
|
||||||
|
|
||||||
mbedtls_mpi_write_string(&X, 16, x_buf, sizeof(x_buf)-1, &x_buf_len);
|
mbedtls_mpi_write_string(&X, 16, x_buf, sizeof(x_buf)-1, &x_buf_len);
|
||||||
TEST_ASSERT_EQUAL_STRING_MESSAGE(e_str, x_buf, "esp_mpi_mul_mpi_mod result wrong");
|
TEST_ASSERT_EQUAL_STRING_MESSAGE(e_str, x_buf, "esp_mpi_mul_mpi_mod result wrong");
|
||||||
|
Reference in New Issue
Block a user