Jump to content

Low level implementation about CC3200

Recommended Posts

When I learned a CC3200 example about push buttons, I got some questions.

Firstly, why does the digital_pin_to_pin_num[] arrary not define its elements as PIN_01, PIN_02, .... in an ascendant order?


Why not define following PIN_04 as 0x0...04 ?


The first question results in my next question. I know the following PUSH1 variable is used as the index of digital_pin_to_pin_num[] arrary.ec48b94a9bdd3d35a3de78303163272.png.fe6f82880b55f25baaf8dffe3089726c.png3e8dada0b1f8dbc7f3e09d58be65c39.png.915c98f87b6feaabff440852b0001c15.png

Why doesn't assign 4 to PUSH1 corresponding to the physical pin number of GPIO_13, so that I can be easy to know the PUSH1 is used to control which button rather than looking up the digital_pin_to_pin_num[] arrary using index, which is so time-consuming.




Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...