mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
x86_64/x86_64_initialzie.c: remove up_calibratedelay
This function is not used anywhere. For udelay calibration we have the calib_udelay app Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
83abf9bd27
commit
8fe76e1271
@@ -51,33 +51,6 @@ struct simple_addrenv_s g_addrenv =
|
|||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: up_calibratedelay
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Delay loops are provided for short timing loops. This function, if
|
|
||||||
* enabled, will just wait for 100 seconds. Using a stopwatch, you can
|
|
||||||
* can then determine if the timing loops are properly calibrated.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG_FEATURES)
|
|
||||||
static void up_calibratedelay(void)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
_warn("Beginning 100s delay\n");
|
|
||||||
for (i = 0; i < 100; i++)
|
|
||||||
{
|
|
||||||
up_mdelay(1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
_warn("End 100s delay\n");
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
# define up_calibratedelay()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_addrenv_init
|
* Name: up_addrenv_init
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user