-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterfaces_Tests.gel
158 lines (128 loc) · 3.11 KB
/
Interfaces_Tests.gel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/*
// TI File $Revision: /main/5 $
// Checkin $Date: August 9, 2007 17:25:04 $
//###########################################################################
//
// 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
/*******************************************************************
*
* DESCRIPTION:
* Esse arquivo .gel carrega o projeto HRPWM_Varredura, compila
* e carrega no DSP. O módulo PWM1 é configurado para realizar
* uma varredura de dutyMin a dutyMax, utilizando o HRPWM.
*
* AUTHOR: Gabriel Oehlmeyer Brunheira
*
* HISTORY:
* v1 - 06/fev/2012
*
*******************************************************************/
/** include files **/
/** local definitions **/
/** default settings **/
/** external functions **/
/** external data **/
/** internal functions **/
/** public data **/
/** private data **/
/** public functions **/
/** private functions **/
/* Adiciona linha horizontal para separação de menus */
menuitem "---------------------------------------------------------";
hotmenu _() {}
/*
menuitem "HRADC SPI Interface Test"
hotmenu Load_and_Build_Project()
{
GEL_ProjectLoad("DevelopmentKits_Test.pjt");
GEL_ProjectBuild("DevelopmentKits_Test.out.pjt");
Setup_WatchWindow();
}
hotmenu Load_Code()
{
GEL_Load(".\\FLASH\\DevelopmentKits_Test.out");
Setup_WatchWindow();
}
hotmenu Setup_WatchWindow()
{
GEL_WatchReset();
GEL_WatchAdd("command");
GEL_WatchAdd("SendCommand");
GEL_WatchAdd("SamplingEnable");
GEL_WatchAdd("HRADC_Status");
GEL_WatchAdd("i_rdata");
GEL_WatchAdd("rdata");
}*/
menuitem "Read_RTC"
dialog Read_RTC(comm "Rtc:")
{
//command = comm;
read_rtc = 1;
}
menuitem "Read_Status"
dialog Read_Status(samples "# status:")
{
//Nsamples = samples;
read_rtc_status = 1;
}
menuitem "Read_RS485_Address"
dialog Read_RS485_Address( )
{
read_add_rs485 = 1;
}
menuitem "Set_RS485_Address"
dialog Set_RS485_Address(address485 "# address:")
{
add485 = address485;
set_add_rs485 = 1;
}
menuitem "Read_IP_Address"
dialog Read_IP_Address( )
{
read_add_IP = 1;
}
menuitem "Set_IP_Address"
dialog Set_IP_Address(addressIP "# address:")
{
addIP = addressIP;
set_add_IP = 1;
}
menuitem "Read_Displ_Sts"
dialog Read_Displ_Sts( )
{
read_display_sts = 1;
}
menuitem "Set_Displ_Pwr"
dialog Set_Displ_Pwr(DspPwrSts "# Power Sts:")
{
stsdisp = DspPwrSts;
set_display_sts = 1;
}
menuitem "Read_ISO_DCDC_Sts"
dialog Read_ISO_DCDC_Sts( )
{
read_isodcdc_sts = 1;
}
menuitem "Set_ISO_DCDC_Pwr"
dialog Set_ISO_DCDC_Pwr(DcdcPwrSts "# Power Sts:")
{
stsisodcdc = DcdcPwrSts;
set_isodcdc_sts = 1;
}
/* Adiciona linha horizontal para separação de menus */
menuitem "---------------------------------------------------------";
hotmenu __() {}
menuitem "Read_ADCP"
dialog Read_ADCP( )
{
read_adcp = 1;
}
/* Adiciona linha horizontal para separação de menus */
menuitem "---------------------------------------------------------";
hotmenu ___() {}
menuitem "Read_FLASH_SN"
dialog Read_FLASH_SN( )
{
read_flash_sn = 1;
}