#include #include #include #include #include #include #include "usrp_e.h" // Usage: usrp_e_uart #define UART_WRITE_ADDR (0x80 + 12) int main(int argc, char *argv[]) { int fp, i, ret; struct usrp_e_ctl16 d; char *str = argv[1]; if (argc < 2) { printf("Usage: usrp_e_uart n"); exit(-1); } fp = open("/dev/usrp_e0", O_RDWR); printf("fp = %d\n", fp); for (i=0; i