代码搜索结果
找到约 10,000 项符合
Switch 的代码
keyscan.c
#include
#include"delay.h"
#define uchar unsigned char
//#define uint unsigned int
uchar temp1;
extern uchar num;
uchar key_scan( )
{
num=0xff;
num=0;
P1
fun.m
%'s','s-shape','5*s-shape','gauss1','gauss2','cos','sin+cos'
function y=fun(x,flag,graph)
a=4; b=3;
switch graph
case 's'
switch flag
case 0
y=x;
guicallback.m
vda = get(da,'Value');
vdm = get(dm,'Value');
vmm = get(mm,'Value');
switch vda
case 1
cda = 'C';
case 2
cda = 'F';
case 3
cda = 'S';
case 4
cda = 'FS';
otherwise
error('Unknown actua
key_scanf.lst
C51 COMPILER V8.02 KEY_SCANF 03/01/2009 17:02:35 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE KEY_SCANF
OBJECT MODULE PLACED
key_scanf.c
#include
#include "hao.h"
uchar key_scanf()
{
uchar temp,num;
P1=0xfe;
temp=P1;
temp=temp&0xf0;
if(temp!=0xf0)
{
delay(50);
if(temp
keyscan.h
#define uchar unsigned char
#define uint unsigned int
//uchar num;
uchar temp1;
uchar num=0xff;
uchar key_scan( )
{
num=0;
P2=0xfe;
temp1=P2;
temp1=temp1&0xf0;
vec_table.asm
MEMORY
{
PAGE 0;
VEC: origin=1000h,length=0ffh
PROG: origin=1100h,length=8000h
PAGE 1:
DATA: origin=080h,length=0807fh
}
SECTIONS
{
.text > PROG PAGE 0
2410 core.opj
(ExpressProject "2410 core"
(ProjectVersion "19981106")
(ProjectType "PCB")
(Folder "Design Resources"
(Folder "Library"
(File ".\library1.olb"
(Type "Schematic Library")
sounds_and_display._h
void bell(uchar fff)
{
switch (fff)
{
case 0:DDR_PA3=1;_PA3=0;break;
case 1:DDR_PA3=1;_PA3=1;break;
default:break;
}
}
sounds_and_display.h
void bell(uchar fff)
{
switch (fff)
{
case 0:DDR_PA3=1;_PA3=0;break;
case 1:DDR_PA3=1;_PA3=1;break;
default:break;
}
}