dispatch for chip specific nvic
This commit is contained in:
parent
a7f5f9f576
commit
f705d1cd6e
@ -104,6 +104,8 @@ IRQ numbers -3 and -6 to -9 are reserved
|
|||||||
* specific header file in the corresponding subfolder.
|
* specific header file in the corresponding subfolder.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <libopencm3/dispatch/nvic.h>
|
||||||
|
|
||||||
/* --- NVIC functions ------------------------------------------------------ */
|
/* --- NVIC functions ------------------------------------------------------ */
|
||||||
|
|
||||||
BEGIN_DECLS
|
BEGIN_DECLS
|
||||||
|
@ -38,8 +38,7 @@
|
|||||||
#define LIBOPENCM3_VECTOR_H
|
#define LIBOPENCM3_VECTOR_H
|
||||||
|
|
||||||
#include <libopencm3/cm3/common.h>
|
#include <libopencm3/cm3/common.h>
|
||||||
|
#include <libopencm3/cm3/nvic.h>
|
||||||
// #include "irq.h" /* we'll nede some definitions */
|
|
||||||
|
|
||||||
/** Type of an interrupt function. Only used to avoid hard-to-read function
|
/** Type of an interrupt function. Only used to avoid hard-to-read function
|
||||||
* pointers in the efm32_vector_table_t struct. */
|
* pointers in the efm32_vector_table_t struct. */
|
||||||
@ -59,7 +58,7 @@ typedef struct {
|
|||||||
vector_table_entry_t reserved_x0034;
|
vector_table_entry_t reserved_x0034;
|
||||||
vector_table_entry_t pend_sv;
|
vector_table_entry_t pend_sv;
|
||||||
vector_table_entry_t systick;
|
vector_table_entry_t systick;
|
||||||
vector_table_entry_t irq[IRQ_COUNT];
|
vector_table_entry_t irq[NVIC_IRQ_COUNT];
|
||||||
} vector_table_t;
|
} vector_table_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -4,8 +4,13 @@
|
|||||||
# include <libopencm3/stm32/f2/nvic_f2.h>
|
# include <libopencm3/stm32/f2/nvic_f2.h>
|
||||||
#elif defined(STM32F4)
|
#elif defined(STM32F4)
|
||||||
# include <libopencm3/stm32/f4/nvic_f4.h>
|
# include <libopencm3/stm32/f4/nvic_f4.h>
|
||||||
|
|
||||||
|
#elif defined(TINYGECKO)
|
||||||
|
# include <libopencm3/efm32/tinygecko/nvic.h>
|
||||||
|
|
||||||
|
#elif defined(LPC43XX)
|
||||||
|
# include <libopencm3/lpc43xx/nvic.h>
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# error "stm32 family not defined."
|
# error "no chipset defined."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user