Hi,all I want to use interrupt in rtx-os for at91sam7x256 . 1- usart interrupt 2- external interrupt. 3- timer interrupt Please help me how to config this peripheral for using in interrupt.
Thank you. Amir Zendehdel
hello Andrew Thank you very much,i dont know all of email that replay to my mail from keil.com was going to my spam mail.
dear friend i was used At91sam7x256 board and doing all example of rtx-os and all of them work goooood.
but when i was config usart interrupt same as normal mode(none RTX-OS) then each time its interrupt happen system fall in halted state.
in rtx-os documentation i saw a little thing about config interrupt in rtx-os .
------------------------ Keil Doc ------------------------------------------------- void isr_evt_set (unsigned short event_flags, OS_TID task); A typical task intended to handle interrupts will have the following structure: void Task3 (void) {
while (1) { os_evt_wait_or (0x0001, 0xffff); // Wait until ISR triggers an event … // Handle the interrupt } // Loop and go back to sleep } The actual interrupt source will contain a minimal amount of code. void IRQ_Handler (void) __irq {
isr_evt_set (0x0001, tsk3); // Signal Task 3 with an event EXTINT = 0x00000002; // Clear the peripheral interrupt flag VICVectAddr = 0x00000000; // Signal end of interrupt to the VIC } -------------------------------------------------------------------------------------- if keil have more document please help me. Please help me : for example if i want to use serial rx interrupt
Manyyyyyyyyyyyyyyyyyyyyyyyyyyyy many thanks Amir