irq
mnlife_
这个作者很懒,什么都没留下…
展开
-
The Road to Linux Kernel - Interrupt (AArch64 Linux)
对于arm64系列的处理器,一个gpio边沿触发引起的中断如何进行处理,聚焦于gpio外设pl061,假设该gpio中断是通过request_threaded_irq设置的,下面将一一进行展开中断向量表是可以随意放置在任意地址的,最后中断的入口地址放在VBAR寄存器中,该向量表保存了如下entry:Table 10-2 shows one of the vector tables. The base address is given by VBAR_ELn and theneach entry has原创 2020-08-10 21:08:31 · 464 阅读 · 0 评论 -
The Road to Linux Kernel - GPIO Subsystem - descriptor-based GPIO interface(2)
struct gpio_desc *gpiod_get_optional(struct device *dev,const char *con_id,enum gpiod_flags flags)原创 2020-06-04 22:16:43 · 182 阅读 · 0 评论 -
The Road to Linux Kernel - GPIO Subsystem - Legacy GPIO Interfaces(1)
GPIO使用初探刚接触linux驱动中gpio方面的时候,常用的是gpio-legacy.c里面的接口,初始化gpio就像下面这样, 然后就可以调用get/set gpio的接口了。这时候就发现,初始化一个gpio,居然这么麻烦,要是通过dts进行配置,更麻烦了,就像下面这样。而如果要同时通过设备树读取,初始化几个gpio,更麻烦,首先调用of_property_read_u32_array,然后对读取的值进行判断,再调用下面这些接口,或者调用** gpio_request_array**,一个初始化原创 2020-06-03 20:43:18 · 142 阅读 · 0 评论