Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
delay.cpp
00001 /***************************************************************************//** 00002 * @file delay.cpp 00003 * @brief Implementation of delay functionality 00004 ******************************************************************************** 00005 * Copyright (c) 2019, 2020 Analog Devices, Inc. 00006 * 00007 * All rights reserved. 00008 * 00009 * This software is proprietary to Analog Devices, Inc. and its licensors. 00010 * By using this software you agree to the terms of the associated 00011 * Analog Devices Software License Agreement. 00012 *******************************************************************************/ 00013 00014 /******************************************************************************/ 00015 /***************************** Include Files **********************************/ 00016 /******************************************************************************/ 00017 00018 #include <mbed.h> 00019 #include "platform_drivers.h" 00020 00021 /******************************************************************************/ 00022 /********************** Macros and Constants Definitions **********************/ 00023 /******************************************************************************/ 00024 00025 /******************************************************************************/ 00026 /************************ Functions Definitions *******************************/ 00027 /******************************************************************************/ 00028 00029 /** 00030 * @brief Generate microseconds delay. 00031 * @param usecs - Delay in microseconds. 00032 * @return None. 00033 */ 00034 void udelay(uint32_t usecs) 00035 { 00036 if (usecs) { 00037 // Unused variable - fix compiler warning 00038 } 00039 } 00040 00041 /** 00042 * @brief Generate miliseconds delay. 00043 * @param msecs - Delay in miliseconds. 00044 * @return None. 00045 */ 00046 void mdelay(uint32_t msecs) 00047 { 00048 if (msecs) { 00049 HAL_Delay(msecs); 00050 } 00051 } 00052
Generated on Tue Jul 12 2022 17:15:46 by
