📄 _init_m04_c2.c
字号:
/****************************************************************************************************/
/* $Header : */
/* AUTHOR : CM Thong */
/* NAME: _INIT.C */
/* PURPOSE : INITIALIZE SETTING */
/* MODEL : 2004 CIS 2-CH AMP */
/* Copyright (c) 2004 Sony Corporation All Rights Reserved */
/****************************************************************************************************/
extern __interrupt void Start(void); /* Start */
extern __interrupt void Exceptions000(void); /* Exception */
extern __interrupt void StopIn(void); /* Stop In Interrupt */
extern __interrupt void IntSircs(void); /* 100us Timer Interrupt (SIRCS) */
extern __interrupt void SircsCodeTx(void); /* SIRCS data output */
static void IntDummy(void); /* Dummy Interrupt */
/****************************************************************************************************/
#define RESET Start /* */
#define MODE ((void *)0xff00) /* */
#define EXT_INT1011 Exceptions000 /* IRQ0 */
#define EXT_INT1213 StopIn /* IRQ1 */
#define IIC Exceptions000 /* IRQ2 */
#define CANNOT_USE Exceptions000 /* IRQ3 */
#define EXT_INT2027 Exceptions000 /* IRQ4 */
#define PWM1 Exceptions000 /* IRQ5 */
#define PWM2 Exceptions000 /* IRQ6 */
#define PWC IntSircs /* IRQ7 */
#define TIMER16 SircsCodeTx /* IRQ8 */
#define SERIAL Exceptions000 /* IRQ9 */
#define UART_SIO Exceptions000 /* IRQA */
#define UART_RX Exceptions000 /* IRQB */
#define UART_TX Exceptions000 /* IRQC */
#define AD_CONV Exceptions000 /* IRQD */
#define TIME_BASE Exceptions000 /* IRQE */
#define CLOCK Exceptions000 /* IRQF */
#define V_CALL Exceptions000 /* */
#define RSERV Exceptions000 /* */
/****************************************************************************************************/
/* Vector Entry Tables for MB8953x */
/****************************************************************************************************/
#pragma section CONST=VECT,attr=CONST /*,locate=0xffdc*/
__interrupt void (*const vector[])(void) = {
V_CALL, /* [ 15] [0xffc0-0xffc1] */
V_CALL, /* [ 15] [0xffc2-0xffc3] */
V_CALL, /* [ 15] [0xffc4-0xffc5] */
V_CALL, /* [ 15] [0xffc6-0xffc7] */
V_CALL, /* [ 15] [0xffc8-0xffc9] */
V_CALL, /* [ 15] [0xffca-0xffcb] */
V_CALL, /* [ 15] [0xffcc-0xffcd] */
V_CALL, /* [ 15] [0xffce-0xffcf] */
RSERV, /* [ 15] [0xffd0-0xffd1] */
RSERV, /* [ 15] [0xffd2-0xffd3] */
RSERV, /* [ 15] [0xffd4-0xffd5] */
RSERV, /* [ 15] [0xffd6-0xffd7] */
RSERV, /* [ 15] [0xffd8-0xffd9] */
RSERV, /* [ 15] [0xffda-0xffdb] */
CLOCK, /* [ 15] [0xffdc-0xffdd] */
TIME_BASE, /* [ 14] [0xffde-0xffdf] */
AD_CONV, /* [ 13] [0xffe0-0xffe1] */
UART_TX, /* [ 12] [0xffe2-0xffe3] */
UART_RX, /* [ 11] [0xffe4-0xffe5] */
UART_SIO, /* [ 10] [0xffe6-0xffe7] */
SERIAL, /* [ 09] [0xffe8-0xffe9] */
TIMER16, /* [ 08] [0xffea-0xffeb] */
PWC, /* [ 07] [0xffec-0xffed] */
PWM2, /* [ 06] [0xffee-0xffef] */
PWM1, /* [ 05] [0xfff0-0xfff1] */
EXT_INT2027, /* [ 04] [0xfff2-0xfff3] */
CANNOT_USE, /* [ 03] [0xfff4-0xfff5] */
IIC, /* [ 02] [0xfff6-0xfff7] */
EXT_INT1213, /* [ 01] [0xfff8-0xfff9] */
EXT_INT1011, /* [ 00] [0xfffa-0xfffb] */
MODE, /* [ **] [0xffda-0xffdb] */
RESET, /* [ **] [0xfffe-0xffff] */
};
/****************************************************************************************************/
/* Exceptions000 Routine */
/****************************************************************************************************/
__interrupt void Exceptions000(void){IntDummy();for(;;);}
/****************************************************************************************************/
/* IntDummy Routine */
/****************************************************************************************************/
static void IntDummy(void){}
/****************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -