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