OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_68/] [or1ksim/] [testbench/] [support/] [int.h] - Diff between revs 376 and 378

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 376 Rev 378
 
 
/* Number of interrupt handlers */
/* Number of interrupt handlers */
#define MAX_INT_HANDLERS        32
#define MAX_INT_HANDLERS        32
 
 
/* High - low priority */
/* High - low priority */
#define INT_HIGH_PRI            1
#define INT_HIGH_PRI            1
#define INT_LOW_PRI             0
#define INT_LOW_PRI             0
 
 
/* Interrupt vectors */
/* Interrupt vectors */
#define V_TICK                  3
#define V_TICK                  3
 
 
/* Handler entry */
/* Handler entry */
struct ihnd {
struct ihnd {
        void    (*handler)();
        void    (*handler)();
        void    *arg;
        void    *arg;
};
};
 
 
/* Add interrupt handler */
/* Add interrupt handler */
int int_add(unsigned long vect, void (* handler)(), void *arg/*, int hilo*/);
int int_add(unsigned long vect, void (* handler)(), void *arg/*, int hilo*/);
 
 
/* Initialize routine */
/* Initialize routine */
int int_init(void);
int int_init();
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.