52 uint shift = (pin % 10) * 3;
void set(Address addr, u32 data)
Set bits in memory mapped register.
static const Address GPIOBase
virtual Result setAltFunction(Size pin, uint function)
Set alternate function.
BroadcomGPIO()
Constructor.
virtual Result initialize()
Initialize the Controller.
Arch::IO m_io
I/O instance.
Result map(Address phys, Size size=4096, Memory::Access access=Memory::Readable|Memory::Writable|Memory::User)
Map I/O address space.
#define PAGESIZE
ARM uses 4K pages.
unsigned int uint
Unsigned integer number.
unsigned int Size
Any sane size indicator cannot go negative.