}//init /// <summary> /// The onLoad function is called after all the plugins have been loaded and their /// init methods called. /// </summary> public void onLoad(object sender, EventArgs e) { mEmbestBoardControl = new ARMSim.Plugins.UIControls.EmbestBoard(); Panel panel = mIHost.RequestPanel(this.PluginName); panel.Controls.Add(mEmbestBoardControl); //request that we get all SWI calls for the range 0x0200 - 0x0x2ff mIHost.RequestOpCodeRange(0x0f000200, 0x0fffff00, this.onExecute); }//onLoad
}//init /// <summary> /// The onLoad function is called after all the plugins have been loaded and their /// init methods called. /// </summary> private void onLoad(object sender, EventArgs e) { ARMSim.Plugins.UIControls.EmbestBoard embestBoardControl = new ARMSim.Plugins.UIControls.EmbestBoard(); InterruptControllerDisplay interruptControllerDisplay = new InterruptControllerDisplay(mInteruptController); mInteruptController = new InteruptController(mIHost, interruptControllerDisplay); mWatchDogTimer = new WatchDogTimer(mIHost, mInteruptController); mPWMTimer = new PWMTimer(mIHost, mInteruptController); mIOPorts = new IOPorts(mIHost); mLeds = new Leds(mIHost, mIOPorts, embestBoardControl.Leds); mBlackButtons = new BlackButtons(mIOPorts, mInteruptController, embestBoardControl.BlackButtons); mBlueButtons = new BlueButtons(mIHost, mIOPorts, mInteruptController, embestBoardControl.BlueButtons); mLcdDisplay = new LcdDisplay(mIHost, embestBoardControl.Lcd); mEightSegmentDisplay = new EightSegmentDisplay(mIHost, embestBoardControl.EightSegmentDisplay); mUarts = new Uarts(mIHost, mInteruptController); mIHost.RequestPanel(this.PluginName).Controls.Add(embestBoardControl); mIHost.RequestPanel("InterruptControllerDisplay").Controls.Add(interruptControllerDisplay); mIHost.Restart += onRestart; }//onLoad