|
0
|
1 |
#include "ndelay.h"
|
|
|
2 |
#include "open.h"
|
|
|
3 |
#include "triggerpull.h"
|
|
|
4 |
|
|
|
5 |
void triggerpull()
|
|
|
6 |
{
|
|
|
7 |
int fd;
|
|
|
8 |
|
|
|
9 |
fd = open_write("lock/trigger");
|
|
|
10 |
if (fd >= 0)
|
|
|
11 |
{
|
|
|
12 |
ndelay_on(fd);
|
|
|
13 |
write(fd,"",1); /* if it fails, bummer */
|
|
|
14 |
close(fd);
|
|
|
15 |
}
|
|
|
16 |
}
|