添加PAN159资料

This commit is contained in:
SXHome
2021-09-26 17:19:12 +08:00
parent 2109411cf7
commit 7fd213ef33
3783 changed files with 1783056 additions and 0 deletions
@@ -0,0 +1,34 @@
/*******************************************************************************
* @note Copyright (C) 2017 Shanghai Panchip Microelectronics Co., Ltd.
* All rights reserved.
*
* @file user_softdelay.c
* @brief Èí¼þÑÓʱ@48M
*
* @history - V1.0, 2017-10-18, huoweibin, first implementation.
*******************************************************************************/
#include "user_softdelay.h"
void delay_us(uint16_t us)
{
uint16_t i = 0;
while(i < us)
{
__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
i++;
}
}
void delay_ms(uint16_t ms)
{
uint16_t i = 0;
while(i < ms)
{
delay_us(1000);
i++;
}
}