Skip to content

Please comment on "config_registers ... bit_range: [x, y] " is 'x' included ? (possible bug): #2

Closed
@Pe3ucTop

Description

@Pe3ucTop

Hi, great work !
I looked for example of bit definition and get confused :

      - bit_range: [7, 0]
        name: RDPR
        description: Read Protection. 0xA5 for unprotected, otherwise read-protected(ignoring WRP)
        explaination:
          0xa5: Unprotected
          _: Protected

in compare to:

      - bit_range: [23, 21]
        name: SRAM_CODE_MODE
        description: SRAM Code Mode
        explaination:
          0b00: CODE-192KB + RAM-128KB
          0b01: CODE-224KB + RAM-96KB
          0b10: CODE-256KB + RAM-64KB
          0b11: CODE-228KB + RAM-32KB

So question: 'bit_range: [x , y]' is 'x' included in range ?
Is second part 3 bit or 2 bit ?
Which one is correct way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions