Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO17 mask #10

Open
ptkatch opened this issue Sep 14, 2017 · 1 comment
Open

GPIO17 mask #10

ptkatch opened this issue Sep 14, 2017 · 1 comment

Comments

@ptkatch
Copy link

ptkatch commented Sep 14, 2017

Hello Matthew,

Mask to enable RTS and CTS is GPIO1617mask 0x00fc0000. What would be the mask to enable CTS only
and not RTS? Also, could you please recommend me any GPIO tutorial?

Thank you,

Pavel.

@jcwren
Copy link

jcwren commented Oct 2, 2017

The mask for CTS would be 0x001c0000, and the mask for RTS would be 0x00e00000. Each pin takes 3 bits to specify its mode. Each 32 word holds 10 pins worth of configuration information. The mask breaks down as shown below for GPIO10 to GPIO19. Bit 0 is on the right, bit 31 on the left.

00.000.000.000.111.000.000.000.000.000.000
    19  18  17  16  15  14  13  12  11  10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants