07 2023 档案

摘要:git clone https://github.com/u-boot/u-boot.git cd u-boot make rock5b-rk3588_defconfig make # 出错后安装缺少的包 apt install swig apt install python-is-python3 阅读全文
posted @ 2023-07-31 00:09 杨大茄子 阅读(383) 评论(0) 推荐(0) 编辑
摘要:下载驱动:https://www.wch.cn/download/CH341SER_MAC_ZIP.html 有阻止的话输密码去允许,安装成功 我的usb串口板上的蓝色灯亮了 coolterm 软件点 rescan,上面就多一个 usbserial; 阅读全文
posted @ 2023-07-20 23:49 杨大茄子 阅读(691) 评论(0) 推荐(0) 编辑
摘要:CONFIG_OF 此内核配置启用设备树,使用相关 api 需要包含: #include <linux/of.h> #include <linux/of_device.h> 查看API: https://docs.kernel.org/devicetree/kernel-api.html An in 阅读全文
posted @ 2023-07-19 19:24 杨大茄子 阅读(47) 评论(0) 推荐(0) 编辑
摘要:Linux Device Driver Development - Everything You Need To Start With Device Driver Development For Linux Kernel 已经读到141页 4 Writing Character Device Dri 阅读全文
posted @ 2023-07-17 22:52 杨大茄子 阅读(25) 评论(0) 推荐(0) 编辑
摘要:Kernel interrupt handling 中断处理函数执行时间要短,原子操作 typedef irqreturn_t (*irq_handler_t)(int, void *); 安装中断handler需要知道中断线和产生中断的设备的唯一id识别号 <linux/interrupt.h> 阅读全文
posted @ 2023-07-17 10:44 杨大茄子 阅读(77) 评论(0) 推荐(0) 编辑
摘要:Implementing work-deferring mechanisms 延期任务 Softirqs: Executed in an atomic context # kernel/softirq.c ; <linux/interrupt.h>. Tasklets: Executed in an 阅读全文
posted @ 2023-07-16 23:02 杨大茄子 阅读(46) 评论(0) 推荐(0) 编辑
摘要:High-resolution timers (hrtimers) 高分辨率计时器 纳秒级的,内核配置:CONFIG_HIGH_RES_TIMERS ktime_t 头文件: #include <linux/hrtimer.h> 初始化: void hrtimer_init(struct hrtim 阅读全文
posted @ 2023-07-16 01:32 杨大茄子 阅读(295) 评论(0) 推荐(0) 编辑
摘要:Dynamic tick/tickless kernel If, however, a CPU leaves the idle state upon an interrupt (the architecture code calls handle_IRQ(), which indirectly ca 阅读全文
posted @ 2023-07-15 23:38 杨大茄子 阅读(31) 评论(0) 推荐(0) 编辑
摘要:#include <linux/delay.h> Simple sleeping in the kernel 简单睡眠函数。passive delay ,睡眠时让出CPU资源,非原子操作中用; usleep_range(unsigned long min, unsigned long max) #微 阅读全文
posted @ 2023-07-15 00:57 杨大茄子 阅读(148) 评论(0) 推荐(0) 编辑
摘要:三极管一共有 3 个极,从图 3-6 来看,横向左侧的引脚叫做基极(base),中间有一个箭头,一头连接基极,另外一头连接的是发射极 e(emitter),那剩下的一个引脚就是集电极 c(collector)了。这是必须要记住的内容,死记硬背即可,后边慢慢用的多了,每次死记硬背一次,多次以后就会深入 阅读全文
posted @ 2023-07-14 08:37 杨大茄子 阅读(43) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示