10 #include <sys/types.h>
12 #include <sys/ioctl.h>
16 #define UP(N) set_pin(N, 1)
17 #define DOWN(N) set_pin(N, 0)
19 #define HI(N) set(N, 1)
20 #define LO(N) set(N, 0)
22 int main(int argc
, char *argv
[]) {
29 pcfg(1, 6, -1, INPUT
| PULLDOWN
, "ser");
30 pcfg(1, 13, 0, OUTPUT
, "clk");
31 pcfg(1, 15, 0, OUTPUT
, "shld");
32 pcfg(0, 27, 0, OUTPUT
, "clr");