上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 54 下一页
摘要: EXPORT_SYMBOL(mdrv_padmux_getpad); 阅读全文
posted @ 2022-03-06 17:17 cogitoergosum 阅读(122) 评论(0) 推荐(0)
摘要: uart0: uart0@1F221000 { compatible = "sstar,uart"; reg = <0x1F221000 0x100>; interrupts = <GIC_SPI INT_IRQ_UART_0 IRQ_TYPE_LEVEL_HIGH>; clocks = <&CLK 阅读全文
posted @ 2022-03-06 00:04 cogitoergosum 阅读(246) 评论(0) 推荐(0)
摘要: bug 一般分为这几类 1、crash, 最常见,一般要是对底层驱动寄存器没了解清楚,一个是对内核接口熟悉不够,导致调用出错 2 死锁, 出现在内核多线程或中断中 3、逻辑问题 4、性能优化, 在资源有限的情况下,需要进行优化,特别出现在不同硬件的运行性能时,需要考虑哪个硬件容易受瓶颈 调试工具的类 阅读全文
posted @ 2022-03-05 18:08 cogitoergosum 阅读(333) 评论(0) 推荐(0)
摘要: 头文件: linux-3.18\include\linux\kthread.h 源文件:linux-3.18\kernel\kthread.c 创建线程 kthread_run(threadfn, data, namefmt) 判断线程是否停止 bool kthread_should_stop(vo 阅读全文
posted @ 2022-03-03 14:01 cogitoergosum 阅读(178) 评论(0) 推荐(0)
摘要: 1、CMock、CUnit 2、keil单元测试只能用于Unity lwip单元测试:https://github.com/libcheck/checkrtos 单元测试:https://github.com/ThrowTheSwitch/Ceedling/tree/master, 支持cuint 阅读全文
posted @ 2022-03-03 08:41 cogitoergosum 阅读(56) 评论(0) 推荐(0)
摘要: 参考链接:https://blog.csdn.net/qqliyunpeng/article/details/105565528 阅读全文
posted @ 2022-03-01 17:49 cogitoergosum 阅读(71) 评论(0) 推荐(0)
摘要: 文件包含: #include<linux/timer.h> 声明文件位置: linux-3.19.3/include/linux/timer.h 初始化定时器 init_timer(struct timer_list *timer) setup_timer(struct timer_list *ti 阅读全文
posted @ 2022-03-01 11:26 cogitoergosum 阅读(347) 评论(0) 推荐(0)
摘要: 1、参考链接 https://zhuanlan.zhihu.com/p/89439043 rcu锁用于替换spin_lock 阅读全文
posted @ 2022-02-28 18:21 cogitoergosum 阅读(66) 评论(0) 推荐(0)
摘要: 1、spin_lock 不能处理硬件中断 2、spin_lock_irq 不能处理同个中断的多个锁 3、spin_lock_irqsave 解决上述锁的问题 参考链接: https://www.byteisland.com/自旋锁-spin_lock、-spin_lock_irq-以及-spin_l 阅读全文
posted @ 2022-02-28 18:18 cogitoergosum 阅读(160) 评论(0) 推荐(0)
摘要: top half 用于处理紧急事件 buttom half 用于处理非紧急事件,承接top half 接下来要处理的 buttom half 一般通过softirqs、tasklets、workqueues 软中断与硬中断的另_点区别是’软中断的处理函数必须是可重入的, 软中断的执行允许被硬中断抢占 阅读全文
posted @ 2022-02-23 08:50 cogitoergosum 阅读(102) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 54 下一页