随笔分类 -  传统的linux驱动和通信协议

摘要:// Documenation/devicetree/binding/arm/gic.txt #interrput-cells 为3 1:interrupts=<0 168 4 >,<0 169 4>; 2:0 spi interrupts,1 for PPI interrupts; spi 0-9 阅读全文
posted @ 2020-11-28 11:15 卷哭你 阅读(516) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-11-24 01:27 卷哭你 阅读(92) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-11-15 16:34 卷哭你 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-13 22:30 卷哭你 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-09 08:12 卷哭你 阅读(0) 评论(0) 推荐(0)
摘要:# define jiffies raid6_jiffies() // 函数调用 #undef HZ#define HZ 1000 static inline uint32_t raid6_jiffies(void){ struct timeval tv; gettimeofday(&tv, NUL 阅读全文
posted @ 2020-10-07 20:17 卷哭你 阅读(235) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-07 19:42 卷哭你 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-07 16:44 卷哭你 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-07 11:19 卷哭你 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-07 10:53 卷哭你 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-06 17:53 卷哭你 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-06 12:30 卷哭你 阅读(5) 评论(0) 推荐(0)
摘要:头文件: #include <linux/delay.h> printk("usleep range\n"); //msleep_interruptible(unsigned int msecs) msleep_interruptible(10);// 可以被中断延时 // 下面延时类似让cpu 死 阅读全文
posted @ 2020-10-04 19:49 卷哭你 阅读(516) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-04 14:49 卷哭你 阅读(4) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-03 20:38 卷哭你 阅读(2) 评论(0) 推荐(0)
摘要:aarch64-linux-gnu-gcc 阅读全文
posted @ 2020-07-24 10:47 卷哭你 阅读(90) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-07-12 22:11 卷哭你 阅读(109) 评论(0) 推荐(0)
摘要:并行传输和串行传输 按消息传送的方向和时间的关系 Transmitter 和 Receiver 是针对 数据是由谁发送和接受的 master 和 slave 是针对clock哪个产生的 由谁发送给谁 阅读全文
posted @ 2020-07-12 10:12 卷哭你 阅读(1358) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-07-11 05:29 卷哭你 阅读(4) 评论(0) 推荐(0)
摘要:在需要的地方 文件前 | 函数内 #define DEBUG 1 #define mled_dbg 1 #if mled_dbg == 1 #define mled_dbgmsg(args...) printk(args) #else #define mled_dbgmsg(args...) do{ 阅读全文
posted @ 2020-07-08 16:42 卷哭你 阅读(359) 评论(0) 推荐(0)