Line No. | Rev | Author | Line |
---|---|---|---|
1 | 32 | kaklik | /****************************************************************************** |
2 | |||
3 | File Name: TimeDelay.c |
||
4 | Dependencies: None |
||
5 | Processor: PIC18/PIC24/dsPIC30/dsPIC33/PIC32 |
||
6 | Compiler: C30 v3.12 |
||
7 | Company: Microchip Technology, Inc. |
||
8 | |||
9 | Copyright ? 2009 Microchip Technology Inc. All rights reserved. |
||
10 | |||
11 | Microchip licenses to you the right to use, modify, copy and distribute |
||
12 | Software only when embedded on a Microchip microcontroller or digital signal |
||
13 | controller that is integrated into your product or third party product |
||
14 | (pursuant to the sublicense terms in the accompanying license agreement). |
||
15 | |||
16 | You should refer to the license agreement accompanying this Software for |
||
17 | additional information regarding your rights and obligations. |
||
18 | |||
19 | SOFTWARE AND DOCUMENTATION ARE PROVIDED ?AS IS? WITHOUT WARRANTY OF ANY KIND, |
||
20 | EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF |
||
21 | MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. |
||
22 | IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER |
||
23 | CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR |
||
24 | OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES |
||
25 | INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR |
||
26 | CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF |
||
27 | SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES |
||
28 | (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS. |
||
29 | |||
30 | Author Date Comments |
||
31 | -------------------------------------------------------------------------------- |
||
32 | AKN 2009.10.14 FILE CREATED |
||
33 | AKN 2009.10.15 CHANGED C18 DELAY ROUTINE TO DECREMENT ENTIRE NUMBER OF CYCLES |
||
34 | *******************************************************************************/ |
||
35 | |||
36 | #include "GenericTypedefs.h" |
||
37 | |||
38 | /**************************************************************************** |
||
39 | Function: |
||
40 | void Delay10us( UINT32 tenMicroSecondCounter ) |
||
41 | |||
42 | Description: |
||
43 | This routine performs a software delay in intervals of 10 microseconds. |
||
44 | |||
45 | Precondition: |
||
46 | None |
||
47 | |||
48 | Parameters: |
||
49 | UINT32 tenMicroSecondCounter - number of ten microsecond delays |
||
50 | to perform at once. |
||
51 | |||
52 | Returns: |
||
53 | None |
||
54 | |||
55 | Remarks: |
||
56 | None |
||
57 | ***************************************************************************/ |
||
58 | void Delay10us( UINT32 tenMicroSecondCounter ); |
||
59 | |||
60 | /**************************************************************************** |
||
61 | Function: |
||
62 | void DelayMs( UINT16 ms ) |
||
63 | |||
64 | Description: |
||
65 | This routine performs a software delay in intervals of 1 millisecond. |
||
66 | |||
67 | Precondition: |
||
68 | None |
||
69 | |||
70 | Parameters: |
||
71 | UINT16 ms - number of one millisecond delays to perform at once. |
||
72 | |||
73 | Returns: |
||
74 | None |
||
75 | |||
76 | Remarks: |
||
77 | None |
||
78 | ***************************************************************************/ |
||
79 | void DelayMs( UINT16 ms ); |
Powered by WebSVN v2.8.3