1 /*******************************************************************************
\r
2 * (c) Copyright 2007-2013 Microsemi SoC Products Group. All rights reserved.
\r
4 * Legacy Actel HAL Cortex NVIC control functions.
\r
5 * The use of these functions should be replaced by calls to the equivalent
\r
6 * CMSIS function in your application code.
\r
8 * SVN $Revision: 5257 $
\r
9 * SVN $Date: 2013-03-21 12:24:10 +0000 (Thu, 21 Mar 2013) $
\r
11 #ifndef CORTEX_NVIC_H_
\r
12 #define CORTEX_NVIC_H_
\r
16 typedef void (*hal_nvic_irq_handler_t)(void);
\r
18 /*------------------------------------------------------------------------------
\r
21 void NVIC_init( void );
\r
23 /*------------------------------------------------------------------------------
\r
26 void NVIC_set_handler
\r
28 uint32_t interrupt_number,
\r
29 hal_nvic_irq_handler_t handler
\r
32 /*------------------------------------------------------------------------------
\r
35 void NVIC_set_priority
\r
37 uint32_t interrupt_number,
\r
38 uint8_t priority_level
\r
41 /*------------------------------------------------------------------------------
\r
44 void NVIC_enable_interrupt( uint32_t interrupt_number );
\r
46 /*------------------------------------------------------------------------------
\r
49 void NVIC_disable_interrupt( uint32_t interrupt_number );
\r
51 /*------------------------------------------------------------------------------
\r
54 void NVIC_clear_interrupt( uint32_t interrupt_number );
\r
56 #endif /*CORTEX_NVIC_H_*/
\r