You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
857 B
47 lines
857 B
1 year ago
|
/*****************************************************************************
|
||
|
* uart.c: UART API file for NXP LPC17xx Family Microprocessors
|
||
|
*
|
||
|
* Copyright (c) 2023 CCSENS
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* History
|
||
|
* 2009.05.27 ver 1.00 Prelimnary version, first Release
|
||
|
*
|
||
|
******************************************************************************/
|
||
|
|
||
|
|
||
|
#include "c_type51.h"
|
||
|
#include "c_delay.h"
|
||
|
extern void Delay100us();
|
||
|
|
||
|
extern void Delay1ms();
|
||
|
|
||
|
extern void Delay1us();
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
void Lc_delay_us(vU16 i)
|
||
|
{
|
||
|
vU16 m;
|
||
|
for(m=i;m>0;m--)
|
||
|
{
|
||
|
Delay1us();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
void Lc_delay_ms(vU16 i)
|
||
|
{
|
||
|
vU16 m;///,n;
|
||
|
for(m=i;m>0;m--)
|
||
|
{
|
||
|
Delay1ms();
|
||
|
}
|
||
|
}
|
||
|
/******************************************************************************
|
||
|
|
||
|
** End Of File
|
||
|
******************************************************************************/
|
||
|
|