/[H8]/trunk/PIC/Torbens/delay.c
ViewVC logotype

Contents of /trunk/PIC/Torbens/delay.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77 - (show annotations) (download)
Mon May 7 19:42:43 2007 UTC (17 years ago) by torben
File MIME type: text/plain
File size: 309 byte(s)
Seems like I forgot to import my own code/project
1 /*
2 * Delay functions
3 * See delay.h for details
4 *
5 * Make sure this code is compiled with full optimization!!!
6 */
7
8 #include "delay.h"
9
10 void
11 DelayMs(unsigned char cnt)
12 {
13 unsigned char i;
14 while (cnt--) {
15 i=4;
16 while(i--) {
17 DelayUs(uS_CNT); /* Adjust for error */
18 } ;
19 } ;
20 }
21
22

  ViewVC Help
Powered by ViewVC 1.1.20