diff --git a/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_bringup.c b/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_bringup.c index 2dd0e4e63e..638c2dc34a 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_bringup.c +++ b/boards/risc-v/esp32c3/esp32c3-devkit-rust-1/src/esp32c3_bringup.c @@ -95,7 +95,8 @@ int esp32c3_bringup(void) } #endif -#ifdef CONFIG_ESP32C3_SHA_ACCELERATOR +#if defined(CONFIG_ESP32C3_SHA_ACCELERATOR) && \ + !defined(CONFIG_CRYPTO_CRYPTODEV_HARDWARE) ret = esp32c3_sha_init(); if (ret < 0) { diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c b/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c index c46cf07baf..3a6206cb24 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c +++ b/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c @@ -126,7 +126,8 @@ int esp32c3_bringup(void) } #endif -#ifdef CONFIG_ESP32C3_SHA_ACCELERATOR +#if defined(CONFIG_ESP32C3_SHA_ACCELERATOR) && \ + !defined(CONFIG_CRYPTO_CRYPTODEV_HARDWARE) ret = esp32c3_sha_init(); if (ret < 0) {