代码搜索结果
找到约 10,000 项符合
Switch 的代码
onoffswitch14.java
// exceptions/OnOffSwitch14.java
// TIJ4 Chapter Exceptions, Exercise 14, page 476
// Show that the OnOffSwitch.java can fail by throwing a
// RuntimeException inside the try block.
public class
withfinally15.java
// exceptions/WithFinally15.java
// TIJ4 Chapter Exceptions, Exercise 15, page 476
// Show that WithFinally.java doesn't fail by throwing a
// RuntimeException inside the try block.
public clas
main._c
#include "iom128v.h"
#include "MyMacro.h"
#include "macros.h"
#pragma interrupt_handler Key:2
extern void Delay(unsigned int);
extern void ShutWatchDog(void);
extern void Show_LCD(void);
main.c
#include "iom128v.h"
#include "MyMacro.h"
#include "macros.h"
#pragma interrupt_handler Key:2
extern void Delay(unsigned int);
extern void ShutWatchDog(void);
extern void Show_LCD(void);
main.c
//ICC-AVR application builder : 2007-5-16 5:50:45
// Target : M16
// Crystal: 4.0000Mhz
#include
#include
extern void delay_ms (int time);
void port_init(void)
{
PORTA
51_00_os.lnp
"main.obj",
"OS_core.obj",
"task_switch.obj",
"UART.obj"
TO "51_00_OS"
RAMSIZE(256)
CODE( 0X0000-0X1FFF )
button_statusfetch.s
IMPORT switch_dummyAddress
IMPORT buttonScanDelay
IMPORT buttonStatus
EXPORT button_statusFetch
AREA button_statusFetch ,CODE ,READONLY
stmfd r13!,{r4,r5,r10,r11,r14}
ldr r10,=but
hex2int.m
function x_int=hex2int(x_hex);
x_int=0;
e=0;
for i1=length(x_hex):-1:1
str=x_hex(i1);
switch upper(str)
case '0', temp=0;
case '1', temp=1;
case '2', temp=2;
decoder3by8.cpp
#include "decoder3by8.h"
void decoder3by8::prc_decoder3by8()
{
switch(select3.read())
{
case 0:row8=0xFE; break;
case 1:row8=0xFD; break;
case 2:row8=0xFB; break;
case 3:row8=0xF7; break;
c
decoder3by8.cpp
// decoder3by8.cpp
#include "decoder3by8.h"
void decoder3by8::prc_decoder3by8()
{
switch(select.read())
{
case 0: z=0xFE;break;
case 1: z=0xFD;break;
case 2: z=0xFB;break;
case 3: z=0xF7;brea