| |||
| Home > Debug Configuration Tutorial > Creating the enumerations for the register values | |||
To create the enumerations for the appropriate register values:
Right-click on the EthernetRouter Debug
Configuration to display the context menu.
Select Properties... from the context menu to open the Connection Properties dialog box.
Click the Advanced button to open the Connection Properties window.
Right-click on the *BoardChip_name EtherRouter setting
in the right pane to display the context menu.
Select Jump to Definition from the context menu.
The *BOARD=EtherRouter group in the ...\EtherRouter.bcd entry
is selected.
Expand the following groups in turn:
*BOARD=EtherRouter
*Advanced_Information
*ARM.
Register_enum.
A Default group is available.
Create the E_REMAP enumeration:
Right-click on Register_enum to
display the context menu.
Select Make New... from the
context menu to open the Enter Name of New object dialog box. The
name default is inserted.
Enter E_REMAP for the name of the group.
Click Create to close the
dialog box. A new E_REMAP group is created.
Select the E_REMAP group in the
left pane. The group contents are displayed in the right pane.
Set the value of Names in the
right pane to RAM,ROM. Press Enter to complete
the entry. A new *Names "RAM,ROM" setting is
created.
Create the E_SWITCH enumeration:
Right-click on *Register_enum to
display the context menu.
Select Make New... from the
context menu to open the Enter Name of New object dialog box. The
name default is inserted.
Enter E_SWITCH for the name of the group.
Click Create to close the
dialog box. A new E_SWITCH group is created.
Select the E_SWITCH group in
the left pane. The group contents are displayed in the right pane.
Set the value of Names in the
right pane to Off,On. Press Enter to complete
the entry. A new *Names "Off,On" setting is created.
Create the E_ENABLE enumeration:
Right-click on the Default group
to display the context menu.
Select Rename from the context menu to open the Enter Value dialog box.
Enter E_ENABLE for the name of the group.
Click Rename. The name changes
from Default to E_ENABLE.
Select the E_ENABLE group in
the left pane to display the group contents.
Set the value of the Names setting
in the right pane to Disable,Enable. Press
Enter to complete the entry. A new *Names "Disable,Enable" setting
is created, shown in Figure 5.13.
Select File → Save Changes from the menu to save the these changes.
See also: