代码搜索结果
找到约 10,000 项符合
Control System 的代码
system.h
//System.h
//bits
#define BIT0 0x00000001
#define BIT1 0x00000002
#define BIT2 0x00000004
#define BIT3 0x00000008
#define BIT4 0x00000010
#define
system.c
#include "system.h"
#include "AT91SAM7S64.h"
extern void Delay_s (unsigned long a);
AT91PS_PMC pPMC = AT91C_BASE_PMC;
AT91PS_PIO p_pPio = AT91C_BASE_PIOA;
AT91PS_PMC p_pPMC = AT91
system.h
/////////////////////////////////////////////////////////////////////////////////////////
//
// The SFR of Winboand CPU define
//
/////////////////////////////////////////////////////////////////
system.h
// system.h
// Init Frequency
void InitFreq(void);
system.c
//system.c
#include "system.h"
#include
// Init Frequency
void InitFreq(void) {
POWKEY1 = 0x01;
POWCON = 0x02; //11.272MHz
POWKEY2 = 0xF4;
}
system.h
// system.h
// All global variables used in Nachos are defined here.
//
// Copyright (c) 1992-1993 The Regents of the University of California.
// All rights reserved. See copyright.h for copyright
system.cc
// system.cc
// Nachos initialization and cleanup routines.
//
// Copyright (c) 1992-1993 The Regents of the University of California.
// All rights reserved. See copyright.h for copyright notice an