Interrupt request on STMF3
Posted: Wed May 28, 2014 10:02 am
Hi, i need to pilot the following interrupt request by the user button on a STMF3
how can i do this?
Code: Select all
CH_IRQ_HANDLER(myIRQ) {
CH_IRQ_PROLOGUE();
/* Wakes up the thread.*/
chSysLockFromIsr();
if (tp != NULL) {
tp->p_u.rdymsg = (msg_t)55; /* Sending the message, optional.*/
chSchReadyI(tp);
tp = NULL;
}
chSysUnlockFromIsr().
CH_IRQ_EPILOGUE();
}how can i do this?