5.11. Creating the enumerations for the register values

To create the enumerations for the appropriate register values:

  1. Right-click on the EthernetRouter Debug Configuration to display the context menu.

  2. Select Properties... from the context menu to open the Connection Properties dialog box.

  3. Click the Advanced button to open the Connection Properties window.

  4. Right-click on the *BoardChip_name EtherRouter setting in the right pane to display the context menu.

  5. Select Jump to Definition from the context menu.

    The *BOARD=EtherRouter group in the ...\EtherRouter.bcd entry is selected.

  6. Expand the following groups in turn:

    1. *BOARD=EtherRouter

    2. *Advanced_Information

    3. *ARM.

    4. Register_enum.

    A Default group is available.

  7. Create the E_REMAP enumeration:

    1. Right-click on Register_enum to display the context menu.

    2. Select Make New... from the context menu to open the Enter Name of New object dialog box. The name default is inserted.

    3. Enter E_REMAP for the name of the group.

    4. Click Create to close the dialog box. A new E_REMAP group is created.

    5. Select the E_REMAP group in the left pane. The group contents are displayed in the right pane.

    6. 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.

  8. Create the E_SWITCH enumeration:

    1. Right-click on *Register_enum to display the context menu.

    2. Select Make New... from the context menu to open the Enter Name of New object dialog box. The name default is inserted.

    3. Enter E_SWITCH for the name of the group.

    4. Click Create to close the dialog box. A new E_SWITCH group is created.

    5. Select the E_SWITCH group in the left pane. The group contents are displayed in the right pane.

    6. 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.

  9. Create the E_ENABLE enumeration:

    1. Right-click on the Default group to display the context menu.

    2. Select Rename from the context menu to open the Enter Value dialog box.

    3. Enter E_ENABLE for the name of the group.

    4. Click Rename. The name changes from Default to E_ENABLE.

    5. Select the E_ENABLE group in the left pane to display the group contents.

    6. 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.

      Figure 5.13. Creating enumerations

      Creating enumerations

  10. Select File → Save Changes from the menu to save the these changes.

See also:

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0182N
Non-ConfidentialID052111