hi, list:<br><br>  I need to configure CPM2 PORTC pin (PC9) for external interrupt, when I read the MPC8555ERM.pdf and cpm2-pic.c, I find that PC9 interrupt number is 56, and I request the IRQ in this way:<br><br>  hw_irq = 56;<br>
  virq = irq_create_mapping(cpm2_host, hw_irq);<br><br>  reqeust_irq(virq, ...);<br><br>  I can request the irq successfully, but the interrupt is never generated (ISR is not called) to the PC9 pins, even though the hardware said an interrupt was raised. (the hardware have a register with a special bit)<br>
<br>  Should I configure the cpm2 io port first to allow PORTC interrupt? I have read the cpm2 io port documentation, and I initialize the PC9 as:<br><br>  PPARC[pc9_bit] = 0;    /* for general purpose IO, not dedicated */<br>
  PSORC[pc9_bit] = 0;    /* no special option */<br>  PDIRC[pc9_bit] = 0;     /* for both input/output */<br>  <br>  Am I missing some thing? Any suggestion will be greatly appreciated.<br><br>  Best Regards,<br>- Wang<br>