cwespressif commented on a change in pull request #1978: URL: https://github.com/apache/incubator-nuttx/pull/1978#discussion_r505489388
########## File path: arch/xtensa/src/esp32/esp32_pm.c ########## @@ -180,8 +215,28 @@ static struct esp32_sleep_config_t s_config = * Private Functions ****************************************************************************/ +/* CPU do while loop for some time. */ + extern void ets_delay_us(uint32_t us); +/* Set CRC of Fast RTC memory 0-0x7ff into RTC STORE7. */ + +extern void set_rtc_memory_crc(void); + +/* Set the real CPU ticks per us to the ets, + * so that ets_delay_us will be accurate. + */ + +extern void ets_update_cpu_frequency_rom(uint32_t ticks_per_us); + +/* Get xtal_freq value, If value not stored in RTC_STORE5, than store. */ + +extern uint32_t ets_get_detected_xtal_freq(void); + +/* Get the reset reason for CPU. */ + +extern enum esp32_reset_reason_e rtc_get_reset_reason(int cpu_no); Review comment: OK, I have replaced rtc_get_reset_reason with esp32_resetcause. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org