⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buzzer_tester.h.svn-base

📁 德国Erlangen大学教学操作系统源码。
💻 SVN-BASE
字号:
#ifndef __buzzer_tester_include__#define __buzzer_tester_include__#include "user/appl.h"#include "syscall/guarded_buzzer.h"#include "device/cgastr.h"#include "guard/secure.h"extern CGA_Stream kout;class BuzzerTester : public Application{public:	BuzzerTester(void* tos, int row) : Application(tos, row) {}	virtual ~BuzzerTester() {}		void action ()	{		Guarded_Buzzer buzzer;				int i = 0;		while(true) {			buzzer.set(1000*_row);			buzzer.sleep();			do {				Secure lock;				int type_x, type_y;				kout.getpos(type_x, type_y);				kout.setpos(0, _row);				kout << _row << " buzzer wait:" << _row << " ringed: " << i++ << endl;				kout.flush();				kout.setpos(type_x, type_y);			} while(0);		}	}};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -