Xtensa interrupt management function prototypes

This commit is contained in:
Angus Gratton 2015-05-07 14:05:23 +10:00
parent 6369b4cefa
commit 3a5b46a09a
2 changed files with 12 additions and 13 deletions

View file

@ -221,6 +221,7 @@ void vPortExitCritical( void )
handled in libmain.a (xtensa_vectors.o) which then can call into here handled in libmain.a (xtensa_vectors.o) which then can call into here
passing an interrupt mask. passing an interrupt mask.
*/ */
_xt_isr isr[16]; _xt_isr isr[16];
void _xt_isr_attach(uint8_t i, _xt_isr func) void _xt_isr_attach(uint8_t i, _xt_isr func)

View file

@ -190,20 +190,18 @@ not necessary for to use this port. They are defined so the common demo files
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters ) #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void _xt_user_exit (void); /* XTensa interrupt management functions, used in port.c.
void _xt_tick_timer_init (void); Implementations in blob libs */
void _xt_isr_unmask (uint32_t unmask); void _xt_int_exit (void);
void _xt_isr_mask (uint32_t mask); void _xt_user_exit (void);
uint32_t _xt_read_ints (void); void _xt_tick_timer_init (void);
void _xt_clear_ints(uint32_t mask); void _xt_isr_unmask (uint32_t unmask);
void _xt_isr_mask (uint32_t mask);
uint32_t _xt_read_ints (void);
/* interrupt related */ void _xt_clear_ints(uint32_t mask);
typedef void (* _xt_isr)(void); typedef void (* _xt_isr)(void);
void _xt_isr_attach (uint8_t i, _xt_isr func);
void _xt_isr_attach (uint8_t i, _xt_isr func); void _xt_timer_int1(void);
#ifdef __cplusplus #ifdef __cplusplus
} }