Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The GPIO number can be calculated using the function below:
XX = Linux gpio number = <GPIO_controll_base> + <GPIO_Bank> * 8 + <GPIO_Bit>
XX = 120 + <GPIO_Bank> * 8 + <gpio_bit>

Example: To calculate the GPIO number of mikroBus J8 [pin 2] (RST)
Pad Name: P45_2 → {GPIO_Bank= 45; GPIO_Bit = 2}

XX = 120 + ( 45) * 8 + 2 = 120 + 362 = 482

...