会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yhaoo
博客园
首页
新随笔
联系
订阅
管理
2021年11月11日
关于上拉与下拉电阻
摘要: 以前,一直对上拉与下拉电阻认识不够透彻,今日再次阅读后,有所顿悟。 先看电路图(按键处的电阻可省略) 上拉电阻: 按键松开时,IN线路接+5V,处于高电平状态,IO状态为1 按键按下时,IN线路接地,处于低电平状态,IO状态为0 下拉电阻: 按键松开时,IN线路接地,处于低电平状态,IO状态为0 按
阅读全文
posted @ 2021-11-11 10:54 yhaoo
阅读(237)
评论(0)
推荐(0)
2021年10月20日
对自定义内核中断函数和任务调度器的理解
摘要: 1 struct Thread { 2 unsigned long ip; 3 unsigned long sp; 4 }; 5 6 typedef struct PCB { 7 int pid; 8 volatile long state; 9 char stack[KERNEL_STACK_SI
阅读全文
posted @ 2021-10-20 13:38 yhaoo
阅读(59)
评论(0)
推荐(0)
内核自定义启动代码0-定义任务
摘要: 1 /* 2 * Linux-3.9.4/mykernel/mypcb.h 3 * 内核自定义启动代码0-定义任务 4 */ 5 6 #define MAX_TASK_NUM 4 7 #define KERNEL_STACK_SIZE 1024*8 8 9 struct Thread { 10 un
阅读全文
posted @ 2021-10-20 12:36 yhaoo
阅读(42)
评论(0)
推荐(0)
内核自定义启动代码2-定时处理程序和任务调度器
摘要: 1 /* 2 * linux-3.9.4/mykernel/myinterrupt.c 3 * 内核自定义启动代码2-定时处理程序和任务调度器 4 */ 5 6 #include <linux/types.h> 7 #include <linux/string.h> 8 #include <linu
阅读全文
posted @ 2021-10-20 12:34 yhaoo
阅读(45)
评论(0)
推荐(0)
内核自定义启动代码01
摘要: 1 /* 2 * linux-3.9.4/mykernel/mymain.c 3 * 内核自定义启动代码 4 */ 5 6 #include <linux/types.h> 7 #include <linux/string.h> 8 #include <linux/ctypes.h> 9 #incl
阅读全文
posted @ 2021-10-20 12:25 yhaoo
阅读(60)
评论(0)
推荐(0)
公告