mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
change(fpga): added bypass rng configuration
This commit is contained in:
29
components/esp_system/fpga_overrides_rng.c
Normal file
29
components/esp_system/fpga_overrides_rng.c
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2010-2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <stddef.h>
|
||||
#include "esp_log.h"
|
||||
#include "esp_attr.h"
|
||||
|
||||
static const char *TAG = "fpga_rng";
|
||||
|
||||
/* Placed in IRAM since test_apps expects it to be */
|
||||
void IRAM_ATTR bootloader_fill_random(void *buffer, size_t length)
|
||||
{
|
||||
ESP_EARLY_LOGE(TAG, "Project configuration is for internal FPGA use, RNG will not work");
|
||||
|
||||
uint8_t *buffer_bytes = (uint8_t *)buffer;
|
||||
for (int i = 0; i < length; i++) {
|
||||
buffer_bytes[i] = 0x5A;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief No-op function, used to force linking this file
|
||||
*
|
||||
*/
|
||||
void esp_common_include_fpga_overrides_rng(void)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user