MB91F465XA EMULATION
Chapter 5 Appendix
© Fujitsu Microelectronics Europe GmbH
- 37 -
MCU-AN-300015-E-V11
5.2.2 Vectors.c file
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES. */
/* (C) Fujitsu Microelectronics Europe GmbH */
/*------------------------------------------------------------------------
VECTORS.C
- Interrupt level (priority) setting
- Interrupt vector definition
31.04.05 1.00 UMa Initial Version
08.11.05 1.01 MSt SWB Mondeb switch for ICR00 Register added
27.02.06 1.02 UMa added comment in DefaultIRQHandler
17.03.06 1.03 UMa comment out ICR01
28.07.06 1.04 UMa changed comment
06.10.06 1.05 UMa changed DefaultIRQHandler
19.03.07 1.06 MSt Define setting for MB91F465XA emulation system added
-------------------------------------------------------------------------*/
#if (EMULATOR == 0)
#include "mb91465x.h"
#else
#include "mb91465x_emulator.h"
#endif
/*------------------------------------------------------------------------
InitIrqLevels()
This function pre-sets all interrupt control registers. It can be used
to set all interrupt priorities in static applications. If this file
contains assignments to dedicated resources, verify that the
appropriate controller is used. Not all devices of the MB91460 Series
offer all recources.
NOTE: value 31 disables the interrupt and value 16 sets highest priority.
-------------------------------------------------------------------------*/
void
InitIrqLevels(
void
)
{
/* ICRxx */
ICR00 = 31;
/* External Interrupt 0 */
/* External Interrupt 1 */
ICR01 = 31;
/* External Interrupt 2 */
/* External Interrupt 3 */
…
ICR63 = 31;
/* DMA Controller */
/* Main/Sub OSC stability wait */
#if
(EMULATOR == 1)
ICR05 = 31;
/* External Interrupt 10 */
/* External Interrupt 11 -> FlexRay Timer 0 & timer 1 */
ICR06 = 31;
/* External Interrupt 12 */
/* External Interrupt 13 -> FlexRay INT1 */
ICR07 = 31;
/* External Interrupt 14 */
/* External Interrupt 15 -> FlexRay INT0 */
ICR34 = 31;
/* USART (LIN, FIFO) 12 RX */
/* USART (LIN, FIFO) 12 TX */
ICR35 = 31;
/* USART (LIN, FIFO) 13 RX */
/* USART (LIN, FIFO) 13 TX */
#endif
}