novic_irq_tbl.c 628 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2017-2019 Alibaba Group Holding Limited
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-08-20 zx.chen novic table init
  9. */
  10. #include <csi_config.h>
  11. #include <soc.h>
  12. extern void Default_Handler(void);
  13. extern void SysTick_Handler(void);
  14. extern void TIM4_NMIHandler(void);
  15. void (*g_irqvector[48])(void);
  16. void (*g_nmivector)(void);
  17. void irq_vectors_init(void)
  18. {
  19. int i;
  20. for (i = 0; i < 48; i++)
  21. {
  22. g_irqvector[i] = Default_Handler;
  23. }
  24. g_irqvector[CORET_IRQn] = SysTick_Handler;
  25. g_nmivector = TIM4_NMIHandler;
  26. }