...implement a FIQ interrupt service routine in C?

Comments

9 comments

  • Avatar
    Peter Scott

    in device specific _startup.s 

    fiq_handler:

    b fiq_service_routine

    simple as that?

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    The default exception handlers are usually defined as weak symbols, so you don't need to branch to your FIQ handler from the default handler, you just need to name it fiq_handler and it will be linked in instead of the default handler.

    0
    Comment actions Permalink
  • Avatar
    Peter Scott

    Thanks for being there

     

    but I'm still in trouble getting up a fiq handler

    how are the special fiq registers set in crt0.s ?

    Are there examples of timer driven FIQ setup and test in the literature.

     

    regards

    Peter Scott

     

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    You can't use the FIQ registers in a C function. You'll need to assembly code if you want to use the FIQ registers. I can send an example if you want one.

    0
    Comment actions Permalink
  • Avatar
    Peter Scott

    Michael Johnson

    yes please

    i'd like to see an example of timer driven FIQ etc...

     

    regards

    Peter Scott

    pete@comcen.com.au

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    I mailed the example to you.

    Regards

    Michael

    0
    Comment actions Permalink
  • Avatar
    Deng Deng

    Hi there,

    I'm currently trying to use the FIQ in C language on LPC2138, but I don't know what needs to be edited in the startup.s file and how to manipulate the fiq_handler function. Can you explain to me briefly and send me an example of FIQ as well? Any help will be much appreciated. :P

    Regards,

    Allen

    dengdeng168@163.com

    0
    Comment actions Permalink
  • Avatar
    nehal solanki

    Hi Michael,

    Can you please send me the example too.

    Thank you.

    nehal

    0
    Comment actions Permalink
  • Avatar
    Martin Wakely

    me too please

    0
    Comment actions Permalink

Please sign in to leave a comment.