代码搜索:Control System
找到约 10,000 项符合「Control System」的源代码
代码结果 10,000
www.eeworm.com/read/210127/15206321
asm system.asm
.include hardware.inc
.external _sum
.define P_INT_Ctrl_NEW 0x702d
.code
.public _SP_INT_64Hz
.public F_SP_INT_64Hz;
_SP_INT_64Hz:
F_SP_INT_64Hz:
irq off
R1 = 0x0003;
[P_Tim
www.eeworm.com/read/210000/15209981
h system.h
#define move_to_user_mode() \
__asm__ ("movl %%esp,%%eax\n\t" \
"pushl $0x17\n\t" \
"pushl %%eax\n\t" \
"pushfl\n\t" \
"pushl $0x0f\n\t" \
"pushl $1f\n\t" \
"iret\n" \
"1:\tmovl $0x17,%%eax\n\t
www.eeworm.com/read/209586/15216987
wav system.wav
www.eeworm.com/read/209081/15227514
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/209062/15228591
c system.c
#include "config.h"
#include "GFD_reg.h"
#include "interrupt.h"
void pmc_init(U32 sysclk, U32 module)
{
U32 i;
U32 n,m;
*(RP32)(PMU_PCSR) |= module; // 打开所需要的模块
*(RP
www.eeworm.com/read/209062/15228621
o system.o
www.eeworm.com/read/208393/15247537
h system.h
// This code based on engine "Engine1"
// which written by David Dufke
// http://www.efd.lth.se/~e98dd/home/
#ifndef _SYSTEM_H
#define _SYSTEM_H
/* Functions */
int sysTime();
int sysLoadSe
www.eeworm.com/read/208393/15247540
cpp system.cpp
// This code based on engine "Engine1"
// which written by David Dufke
// http://www.efd.lth.se/~e98dd/home/
#include
#include
#include
#include
#in
www.eeworm.com/read/208232/15250441
asm system.asm
.include hardware.inc
.code
.public _Delay
_Delay: .proc //传入参数为1,延时2.5ms
push r1,r5 to [sp] //延时时间T = 2.5ms*n
bp = sp+3
L_Loop1:
r2 = r1
r3 = 1
r4 = 0x7012
[r4] = r3
call
www.eeworm.com/read/207820/15261432
h system.h
#define move_to_user_mode() \
__asm__ ("movl %%esp,%%eax\n\t" \
"pushl $0x17\n\t" \
"pushl %%eax\n\t" \
"pushfl\n\t" \
"pushl $0x0f\n\t" \
"pushl $1f\n\t" \
"iret\n" \
"1:\tmovl $0x17,%%eax\n\t