Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //iniitializes uart 2 for the XBEE
- int initializeXbee() {
- //set pin 21 to uart 2 TX - output
- FILE* file = fopen("/sys/kernel/debug/omap_mux/spi0_d0", "w+");
- fprintf(file, "1");
- fclose(file);
- //set pin 22 to uart 2 RX - input
- file = fopen("/sys/kernel/debug/omap_mux/spi0_sclk", "w+");
- fprintf(file, "21");
- fclose(file);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement