Skip to content

GPIO_MAX_PIN does not match datasheet? #58

@rwalle

Description

@rwalle

https://github.com/babbleberry/rpi4-osdev/blob/c9a2a1429ae7cf0f6d1632c3f4a92fb8457e6c07/part3-helloworld/io.c#L12

The tutorial here is for Raspberry Pi 4 which comes with BCM2711, and there are clearly 58 GPIO lines in the datasheet (Section 5.1). It is not clear where the number 53 comes from. Maybe it is from datasheet for BCM2835 used in older models?

Likely this does not matter for the tutorial, but it should be fixed if incorrect. More generally, the tutorial could use more comments to help people understand what the code is doing and where those magic numbers come from. (I happen to have a tiny little bit of knowledge of embedded programming to be able to look up things myself, probably not for most people who are reading the tutorial.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions