UKSS_ICE/v120/DSP2833x_examples/hrpwm_slider/Example_2833xHRPWM_slider.gel
nelolik b8a0477c5c init commit.
Проект каким он достался от Димы.
2021-02-15 09:56:27 +03:00

52 lines
1.3 KiB
Plaintext

/*
// TI File $Revision: /main/5 $
// Checkin $Date: August 9, 2007 17:17:42 $
//###########################################################################
//
// This .gel file can be used to help load and build the example project.
// It should be unloaded from Code Composer Studio before loading another
// project.
//
//###########################################################################
// $TI Release: DSP2833x/DSP2823x Header Files V1.20 $
// $Release Date: August 1, 2008 $
//###########################################################################
*/
menuitem "DSP2833x HRPWM Slider"
hotmenu Load_and_Build_Project()
{
GEL_ProjectLoad("Example_2833xHRPWM_slider.pjt");
GEL_ProjectBuild("Example_2833xHRPWM_slider.pjt");
Setup_WatchWindow();
}
hotmenu Load_Code()
{
GEL_Load(".\\debug\\Example_2833xHRPWM_slider.out");
Setup_WatchWindow();
}
hotmenu Setup_WatchWindow()
{
GEL_WatchReset();
GEL_WatchAdd("DutyFine");
GEL_WatchAdd("EPwm1Regs.CMPA.all");
GEL_WatchAdd("EPwm2Regs.CMPA.all");
GEL_WatchAdd("EPwm3Regs.CMPA.all");
GEL_WatchAdd("EPwm4Regs.CMPA.all");
GEL_WatchAdd("EPwm1Regs,x");
GEL_WatchAdd("EPwm2Regs,x");
GEL_WatchAdd("EPwm3Regs,x");
GEL_WatchAdd("EPwm4Regs,x");
}
menuitem "DSP2833x HRPWM FineDutySlider"
slider FineDutySlider(1, 255, 1, 1, finedutyvalue)
{
DutyFine = finedutyvalue;
}