代码搜索:微内核
找到约 4,827 项符合「微内核」的源代码
代码结果 4,827
www.eeworm.com/read/239154/13300943
c 定时器中断跑马灯.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52 标准内核的头文件
sbit P10 = P1^0; //头文件中没有定义的IO 就要自己来定义了
sbit P11 = P1^1;
www.eeworm.com/read/320714/13419431
h system.h
//// 切换到用户模式运行。
// 该函数利用iret 指令实现从内核模式切换到用户模式(初始任务0)。
#define move_to_user_mode() \
__asm__ ( "movl %%esp,%%eax\n\t" \ // 保存堆栈指针esp 到eax 寄存器中。
"pushl $0x17\n\t" \ // 首先将堆栈段选择符(SS)入栈。
"pushl %%eax\n
www.eeworm.com/read/318359/13480809
h lcd_portconfig.h
//note:如果您使用C语言编写LCD的底层接口程序的话,这里的定义才会有用
// this file for MCU I/O port or the orther`s hardware config
// for LCD Display
#include "REG51.h"
#include "intrins.h" //包含此头文件可直接操作内核的寄存器以及一些定义好的宏
/
www.eeworm.com/read/314126/13574028
h lcd_portconfig.h
//note:如果您使用C语言编写LCD的底层接口程序的话,这里的定义才会有用
// this file for MCU I/O port or the orther`s hardware config
// for LCD Display
#include "REG51.h"
#include "intrins.h" //包含此头文件可直接操作内核的寄存器以及一些定义好的宏
www.eeworm.com/read/313493/13586457
h lcd_portconfig.h
//note:如果您使用C语言编写LCD的底层接口程序的话,这里的定义才会有用
// this file for MCU I/O port or the orther`s hardware config
// for LCD Display
#include "REG51.h"
#include "intrins.h" //包含此头文件可直接操作内核的寄存器以及一些定义好的宏
/
www.eeworm.com/read/313092/13596861
c 嘀声报警信号输出试验.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
char code dx516[3] _at_ 0x003b;//这是为了仿真设置的
sbit P10=P1
www.eeworm.com/read/312692/13606226
c 4main.c
模拟PWM输出控制灯的10个亮度级别
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
sbit K1=
www.eeworm.com/read/312692/13606229
c 1main.c
亮灯倒计时10秒,开始播放音乐
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
char code dx516[3] _at_ 0x003b;//这是为了仿真
www.eeworm.com/read/312612/13607761
c 2main.c
用2个按键分别控制LED灯亮灭
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
sbit K1=
www.eeworm.com/read/312612/13607763
c 5main.c
写入按键次数到24c02,并读出来显示在4个LED上
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
char code dx516[3] _at_