代码搜索:微内核
找到约 4,827 项符合「微内核」的源代码
代码结果 4,827
www.eeworm.com/read/323731/3509580
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/422435/2037250
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/396496/2414542
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/351171/3110555
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/264367/4287981
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/267259/11188584
c main.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
sbit K1= P3^2; //按键K1
c
www.eeworm.com/read/267258/11188607
c main.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
sbit K1= P3^2; //按键K1,开灯用
www.eeworm.com/read/267017/11196986
c main.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //头文件中没有定义的IO就要自己来定义了
char code dx516[3]
www.eeworm.com/read/267017/11197038
c main.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/267017/11197204
c main.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#define ulong unsigned long
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
sbit K1= P3^2; //按键K1
cha