48433c5cbe7e3ef1d2aaccf66eaa9ac02cfc12fc
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)
49 /* call when clk is hi */
75 int main(int argc
, char *argv
[]) {
83 pcfg(1, 6, -1, INPUT
| PULLDOWN
, "ser");
84 pcfg(1, 13, 0, OUTPUT
, "clk");
85 pcfg(1, 15, 0, OUTPUT
, "shld");
86 pcfg(0, 27, 0, OUTPUT
, "clr");
87 pcfg(1, 2, 0, OUTPUT
, "clkinh");