/[H9]/trunk/Embedded/delay.lst
ViewVC logotype

Annotation of /trunk/Embedded/delay.lst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 139 - (hide annotations) (download)
Mon Dec 3 17:19:35 2007 UTC (16 years, 6 months ago) by hedin
File size: 882 byte(s)
Serial connection is initialized, and it can send a sms, but still WIP.
1 hedin 82 1: /*
2     2: * Delay functions
3     3: * See delay.h for details
4     4: *
5     5: * Make sure this code is compiled with full optimization!!!
6     6: */
7     7:
8     8: #include "delay.h"
9     9:
10     10: void
11     11: DelayMs(unsigned char cnt)
12     12: {
13     13: unsigned char i;
14     14: while (cnt--) {
15     15: i=4;
16     16: while(i--) {
17     17: DelayUs(uS_CNT); /* Adjust for error */
18     18: } ;
19     19: } ;
20     20: }
21     21:
22 hedin 139 22: void DelaySek(unsigned char cnt)
23     23: {
24     24: while (cnt--)
25     25: {
26     26: DelayMs(250);
27     27: DelayMs(250);
28     28: DelayMs(250);
29     29: DelayMs(250);
30     30: }
31     31: }

  ViewVC Help
Powered by ViewVC 1.1.20