- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# /space/home/slher/rel/Beken/v6_4_5/macsw/plf/refip/src/driver/extint/extint.c

Go to the documentation of this file.

    00001
    00013 #include "trace.h"
    00014 #include "button.h"
    00015 #include "extint.h"
    00016
    00017 #if (NX_PLF_VER >= 30)
    00018 #include "reg_karst_if.h"
    00019 #endif //(NX_PLF_VER >= 30)
    00020
    00028 void extint_gen_handler(void)
    00029 {
    00030     #if (NX_PLF_VER >= 30)
    00031     uint32_t genirq_pending = karst_interrupt_status_get();
    00032
    00033     // clear all the interrupts
    00034     karst_interrupt_clear_set(genirq_pending);
    00035
    00036     if (genirq_pending & KARST_DOORBELL_INT_SET_BIT)
    00037     {
    00038         button_isr();
    00039     }
    00040     #endif //(NX_PLF_VER >= 30)
    00041 }
    00042