mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-21 00:48:14 +00:00
feat(esp_hw_support): brought up RNG on ESP32-P4
This commit is contained in:

committed by
Aditya Patwardhan

parent
f5ee19f01e
commit
9c108f2da6
@@ -28,6 +28,9 @@
|
||||
#if (defined CONFIG_IDF_TARGET_ESP32C6 || defined CONFIG_IDF_TARGET_ESP32H2)
|
||||
#define RNG_CPU_WAIT_CYCLE_NUM (80 * 16) // Keep the byte sampling frequency in the ~62KHz range which has been
|
||||
// tested.
|
||||
#elif CONFIG_IDF_TARGET_ESP32P4
|
||||
// bootloader tested with around 63 KHz bytes reading frequency
|
||||
#define RNG_CPU_WAIT_CYCLE_NUM (CPU_CLK_FREQ_MHZ_BTLD * 16)
|
||||
#else
|
||||
#define RNG_CPU_WAIT_CYCLE_NUM (80 * 32 * 2) /* extra factor of 2 is precautionary */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user