Combine 8 GPIO pins into a PORT?

Hi all,

Is there away to mask/combine 8 GPIO into a 8-bit PORT?

So that the PORT can be assigned as a number like:

PORTA=0xFF;

Thanks

Hi all,

Is there away to mask/combine 8 GPIO into a 8-bit PORT?

So that the PORT can be assigned as a number like:

PORTA=0xFF;

The OMAP doesn't support a port mode like you might now from i.e. the Atmel
chips.

In case you want to do something like the above you would need to make the
functionality in SW updating 8 independent GPIO, which might cause you
trouble, since the update might not be atomic due to possible writes to
different HW registers in multiple GPIO blocks internally in the OMAP...

Choosing a continuous range of GPIOs (not crossing a modulo 32 boundary -
i.e. 9-16 or 100-107) will however make it possible to make the update
atomic using the "right/proper" SW. I don't know if such a driver already
exist for Linux - I have never heard about it, but it might be out there
somewhere :slight_smile:

Good luck
  Søren