/* * -------------------------------------------------------------------------------------- * Company : 江苏中信博新能源科技股份有限公司上海子公司 2020-2021 版权所有 * -------------------------------------------------------------------------------------- * file Name : delay.c * Description : delay-lib * -------------------------------------------------------------------------------------- * Tool Versions : uVision V5.29.0.0 * Target Device : STM32F103|GD32F103 * -------------------------------------------------------------------------------------- * Engineer : tangtao * Revision : V0.0 * Created Date : 2021.09.18 * -------------------------------------------------------------------------------------- * Engineer : * Revision : * Modified Date : * Additional Comments : * -------------------------------------------------------------------------------------- */ /************************************************* Function : delay_ms() Description : delay_ms Input : time Output : null Return : null Engineer : tangtao Revision : V0.0 Modified Date : 2021.09.23 Additional Comments : *************************************************/ void delay_ms(unsigned short time) { unsigned short i=0; while(time--) { i=6000; while(i--); } }