#define hetREG1 ((hetBASE_t *)0xFFF7B800U)
#define hetPORT1 ((gioPORT_t *)0xFFF7B84CU)
void gioSetDirection(gioPORT_t *port, uint32_t dir)
{
port->DIR = dir;
}
void gioSetBit(gioPORT_t *port, uint32_t bit, uint32_t value)
{
if (value != 0)
{
port->DSET = 1 << bit;
}
else
{
port->DCLR = 1 << bit;
}
}
int main(void)
{
hetREG1->GCR = 0x01000001;
hetREG1->PULDIS = 0x00000000;
gioSetDirection(hetPORT1,0xFFFFFFFF);
gioSetBit(hetPORT1,0,1);
gioSetBit(hetPORT1,17,1);
gioSetBit(hetPORT1,18,1);
gioSetBit(hetPORT1,25,1);
gioSetBit(hetPORT1,29,1);
gioSetBit(hetPORT1,31,1);
while(1);
}