MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / pio_struct.h
blob8ce5176299799bcdd0b2132c9d2ccfd4cadc758d
1 // PIO Peripheral
3 // PIO Registers
4 typedef volatile struct
6 int np_piodata; // read/write, up to 32 bits
7 int np_piodirection; // write/readable, up to 32 bits, 1->output bit
8 int np_piointerruptmask; // write/readable, up to 32 bits, 1->enable interrupt
9 int np_pioedgecapture; // read, up to 32 bits, cleared by any write
10 } np_pio;
12 // PIO Routines
13 void nr_pio_showhex(int value); // shows low byte on pio named na_seven_seg_pio