代码搜索结果
找到约 10,000 项符合
Switch 的代码
task_switch.h
/*******************************************************
本程序只供学习使用,未经作者许可,不得用于其它任何用途
Task_Switch.h file
Created by Computer-lov
Date: 2005.10.27
Edit date:2006.2.24
Version V1.1
Copyrig
task_switch.lst
C51 COMPILER V8.02 TASK_SWITCH 05/10/2008 17:14:26 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE TASK_SWITCH
OBJECT MODULE PLACE
task_switch.c
/*******************************************************
*************基于51内核的圈圈操作系统*****************
本程序只供学习使用,未经作者许可,不得用于其它任何用途
Task_Switch.c file
Created by Computer-lov
Date: 2005.10.27
task_switch.src
; .\task_switch.SRC generated from: task_switch.C
; COMPILER INVOKED BY:
; C:\Keil\C51\BIN\C51.EXE task_switch.C BROWSE DEBUG OBJECTEXTEND SRC(.\task_switch.SRC)
$NOMOD51
NAME TASK_SWIT
task_switch.__i
"task_switch.C" BROWSE DEBUG OBJECTEXTEND SRC (.\task_switch.SRC)
switch_wait.h
#ifndef _SWITCH_WAIT_H
#define _SWITCH_WAIT_H
#define switch_not_pressed (bit) 0 //开关变量
#define switch_pressed (bit) 1
void switch_init();
bit switch_get_input(const tByte) ; //采样数据
#endif
switch_wait.c
#include "main.h"
#include "port.h"
#include "switch_wait.h"
#include "delay_loop.h"
void switch_init()
{
Q1_pin=1;//读段口1的第临危
}
bit switch_get_input(const tByte de)
{
bit re_v=switch_no