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

📄 rtthread.java

📁 Java Op Processor java vhdl processor
💻 JAVA
字号:
/***	RtThread.java*/package joprt;import com.jopdesign.sys.RtThreadImpl;public class RtThread {	RtThreadImpl thr;		public static void initClass() {		RtThreadImpl.init();	}	// not necessary	// private RtThread() {};	public RtThread(int prio, int us) {			this(prio, us, 0);	}	public RtThread(int prio, int us, int off) {		thr = new RtThreadImpl(this, prio, us, off);	}	public void run() {		;							// nothing to do	}	public static void startMission() {				RtThreadImpl.startMission();	}	public boolean waitForNextPeriod() {		return thr.waitForNextPeriod();	}	/**	*	dummy yield() for compatibility reason.	*///	public static void yield() {}	/**	*	for 'soft' rt threads.	*/	public static void sleepMs(int millis) {				RtThreadImpl.sleepMs(millis);	}	/**	 * Waste CPU cycles to simulate work.	 * @param us execution time in us	 */	public static void busyWait(int us) {				RtThreadImpl.busyWait(us);	}	}

⌨️ 快捷键说明

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