Parent Directory | Revision Log
Imported sources
1 | mocchiut | 1.1 | #include <delay.h> |
2 | |||
3 | int delay(int selftrig){ | ||
4 | int i; | ||
5 | i = 0; | ||
6 | int del = 300; | ||
7 | // | ||
8 | while ((i < 16) && ((selftrig & (0x8000>>i)) == 0)) { | ||
9 | del += 50; | ||
10 | i++; | ||
11 | }; | ||
12 | if (i > 15) del = 1100; | ||
13 | return(del); | ||
14 | } |
ViewVC Help | |
Powered by ViewVC 1.1.23 |