[an error occurred while processing this directive]
|
sysreg_write(sysreg_IOPG, Interrupt_Controller_Page);
io_space_write(IPR0, 0xbbbb);
io_space_write(IPR1, 0xbbbb);
io_space_write(IPR2, 0x543b);
io_space_write(IPR3, 0xbb21);sysreg_write(sysreg_IOPG, General_Purpose_IO);
io_space_write(MASKAS, 0x0008); // Unmask GPIO interrupt A source
io_space_write(MASKBS, 0x0400); // Unmask GPIO interrupt B source
io_space_write(FSPR, 0x0408); // Active Low
io_space_write(FSSR, 0x0408); // Edge sensitive
io_space_write(FSBER, 0x0000); // Falling Edge Onlyinterrupt(SIG_INT5, FlagA_ISR);
interrupt(SIG_INT6, FlagB_ISR);
interrupt(SIG_INT7, Timer0_ISR);
interrupt(SIG_INT8, Timer1_ISR);
interrupt(SIG_INT9, Timer2_ISR);
E-mail: info@telesys.ru