Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. int reg_ret = alt_iic_isr_register(IRQ_PIO_IRQ_INTERRUPT_CONTROLLER_ID, // IC_ID
  2. IRQ_PIO_IRQ, // IRQ_ID
  3. &pio_irq_isr, // Pointer to ISR function
  4. NULL, // Pointer to ISR context
  5. NULL); // Reserved
  6.  
  7. if(!reg_ret) {
  8. printf("Button interrupt service routine (ISR) well registered \n");
  9. } else {
  10. printf("Something went wrong in the registering; software exits");
  11. return 1;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement