摘要: #include // 标准 GPIO_API intgpio_request(unsigned gpio, const char *label); 获得并占有 GPIO>。在/proc/mem应该会有地... 阅读全文
posted @ 2013-12-25 18:54 点点爱梦 阅读(2142) 评论(0) 推荐(0) 编辑
摘要: 关于preempt_enable和 preempt_disable允许抢占和禁止抢占。例如:内核态程序和 中断处理程序的互斥因为中断是异步的(不只要何时发生中断,也即随时可能发生中断),因此如果内核态的程序使用了... 阅读全文
posted @ 2013-12-25 16:34 点点爱梦 阅读(256) 评论(0) 推荐(0) 编辑
摘要: static inline int device_init_wakeup(struct device *dev, bool val){ device_set_wakeup_capable(dev, val)... 阅读全文
posted @ 2013-12-25 12:53 点点爱梦 阅读(597) 评论(0) 推荐(0) 编辑