1 // Copyright 2020 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 #include "sdkconfig.h" 18 19 /* Use enum from rom for backwards compatibility */ 20 #if CONFIG_IDF_TARGET_ESP32 21 #include "esp32/rom/sha.h" 22 typedef enum SHA_TYPE esp_sha_type; 23 #elif CONFIG_IDF_TARGET_ESP32S2 24 #include "esp32s2/rom/sha.h" 25 typedef SHA_TYPE esp_sha_type; 26 #elif CONFIG_IDF_TARGET_ESP32S3 27 #include "esp32s3/rom/sha.h" 28 typedef SHA_TYPE esp_sha_type; 29 #elif CONFIG_IDF_TARGET_ESP32C3 30 #include "esp32c3/rom/sha.h" 31 typedef SHA_TYPE esp_sha_type; 32 #endif 33 34 #ifdef __cplusplus 35 extern "C" { 36 #endif 37 38 39 #ifdef __cplusplus 40 } 41 #endif 42