
linux内核
sxjaqq
这个作者很懒,什么都没留下…
展开
-
linux定时器使用范例
今天回顾一下内核定时器的使用方法。 static struct timer_list timer; static void lcd_scan_timer(unsigned long data){ timer.expires = jiffies + msecs_to_jiffies(500); add_timer(&timer); }原创 2011-06-17 17:05:00 · 1368 阅读 · 0 评论 -
gpio_set_value_cansleep
Some GPIO controllers must be accessed using message based busses like I2C or SPI. Commands to read or write those GPIO values re翻译 2011-07-06 10:07:41 · 7174 阅读 · 1 评论 -
查看linux源代码的内核版本号
打开根目录下面的Makefile,最顶层的几行代码。VERSION = 3PATCHLEVEL = 0SUBLEVEL = 8EXTRAVERSION =NAME = Sneaky Weasel此信息显示当前的内核版本号为3.0.8.原创 2012-04-11 13:40:05 · 9788 阅读 · 1 评论