mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-21 06:56:11 -04:00
Merge branch 'bugfix/update_jtag_disabling_api_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix API esp_hmac_disable_jtag() to disable JTAG (v5.1) See merge request espressif/esp-idf!28493
This commit is contained in:
commit
da47d4d632
@ -180,7 +180,9 @@ esp_err_t esp_hmac_jtag_enable(hmac_key_id_t key_id, const uint8_t *token)
|
||||
esp_err_t esp_hmac_jtag_disable()
|
||||
{
|
||||
esp_crypto_hmac_lock_acquire();
|
||||
ets_hmac_enable();
|
||||
REG_WRITE(HMAC_SET_INVALIDATE_JTAG_REG, 1);
|
||||
ets_hmac_disable();
|
||||
esp_crypto_hmac_lock_release();
|
||||
|
||||
ESP_LOGD(TAG, "Invalidate JTAG result register. JTAG disabled.");
|
||||
@ -262,7 +264,9 @@ esp_err_t esp_hmac_jtag_disable()
|
||||
{
|
||||
esp_crypto_dma_lock_acquire();
|
||||
|
||||
ets_hmac_enable();
|
||||
REG_WRITE(HMAC_SET_INVALIDATE_JTAG_REG, 1);
|
||||
ets_hmac_disable();
|
||||
|
||||
esp_crypto_dma_lock_release();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user