Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. void hilevel_handler_irq( ctx_t* ctx ) {
  2. PL011_putc( UART0, 'I', true );
  3. // read interupt IDentifier
  4. uint32_t id = GICC0->IAR;
  5.  
  6. //handle interupt and clear timer
  7. if ( id == GIC_SOURCE_TIMER0 ) {
  8. scheduler( ctx ); TIMER0->Timer1IntClr = 0x01;
  9. }
  10.  
  11. //write interupt identifier to signal
  12. GICC0->EOIR = id;
  13.  
  14. return;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement