[an error occurred while processing this directive]
|
#include __irq __arm void T0isr (void) //----------------------------------------- int main(void) __enable_interrupt();
#include
{
static int val;
val = T0CR0;
T0IR |= 0x1; //Clear match 0 interrupt
VICVectAddr = 0x00000000;//Dummy write to signal end of interrupt
}
{
IODIR = 0x00000000;
VPBDIV = 2;// Pclk 30 Mhz
PINSEL0_bit.P0_14 = 2;
VICDefVectAddr = (unsigned)T0isr;
MEMMAP = 1;
VICIntEnable = 0x10; //Enable the interrupt
while(1);
}
Ответы
Перейти к списку ответов
|||
Конференция
|||
Архив
|||
Главная страница
|||
Содержание