Example #1
0
//---------------------------------------------------------------------------
OS_INTERRUPT void Timer_ISR()
{
    OS::TISRW ISRW;
    T1IR = 0xFF; // T1IR;                    // clear int flag

    //--------------------------------------------------
    //
    //            Message test
    //
    //     Send data as message
    //
    TMamont m;           // create message content

    m.src  = TMamont::ISR_SRC;
    m.data = 10;
    MamontMsg = m;       // put the content to the OS::message object
    FIO0SET = (1<<2);
    MamontMsg.sendISR();    // send the message


    VICVectAddr = 0;    // Reset VIC logic
}