board_common_esp32s3.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2025 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #if !DOXYGEN
27 
32 #if CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ <= 80
33 # define CONFIG_ZTIMER_USEC_ADJUST_SET (880/CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ)
34 # define CONFIG_ZTIMER_USEC_ADJUST_SLEEP ((CONFIG_ZTIMER_USEC_ADJUST_SET >> 2) * 5)
35 #else
36 # define CONFIG_ZTIMER_USEC_ADJUST_SET (960/CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ)
37 # define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (CONFIG_ZTIMER_USEC_ADJUST_SET)
38 #endif
41 #endif /* !DOXYGEN */
42 
43 #ifdef __cplusplus
44 } /* end extern "C" */
45 #endif
46