2015年2月6日

摘要: SPI (Serial Peripheral Interface) bussesSPI busses can be described with a node for the SPI master deviceand a set of child nodes for each SPI slave o... 阅读全文
posted @ 2015-02-06 15:14 嵌入式操作系统 阅读(645) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(void){FILE *p=NULL;int i=0;p = fopen("/sys/class/gpio/export","w");fprintf(p,"%d",38);fclose(p);p =fopen(... 阅读全文
posted @ 2015-02-06 00:14 嵌入式操作系统 阅读(507) 评论(0) 推荐(0) 编辑
摘要: //example #include #include #include #include #define GPIO_TO_PIN(bank, gpio) (32 * (bank) + (gpio))int main(int argc, char * argv){ int i, n, fd; cha... 阅读全文
posted @ 2015-02-06 00:09 嵌入式操作系统 阅读(560) 评论(0) 推荐(0) 编辑

导航