📄 int_3062p.h
字号:
/**************************************************************************/
/**************************************************************************/
/****************** Renesas Technology Europe GmbH ************************/
/**************************************************************************/
/**************************************************************************/
/* DISCLAIMER: */
/* We (Renesas Technology Europe GmbH) do not warrant that the Software */
/* is free from claims by a third party of copyright, patent, trademark, */
/* trade secret or any other intellectual property infringement. */
/* */
/* Under no circumstances are we liable for any of the following: */
/* */
/* 1. third-party claims against you for losses or damages; */
/* 2. loss of, or damage to, your records or data; or */
/* 3. economic consequential damages (including lost profits or */
/* savings) or incidental damages, even if we are informed of */
/* their possibility. */
/* */
/* We do not warrant uninterrupted or error free operation of the */
/* Software. We have no obligation to provide service, defect */
/* correction, or any maintenance for the Software. We have no */
/* obligation to supply any Software updates or enhancements to you */
/* even if such are or later become available. */
/* */
/* IF YOU DOWNLOAD OR USE THIS SOFTWARE YOU AGREE TO THESE TERMS. */
/* */
/* THERE ARE NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING THE */
/* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
/* PARTICULAR PURPOSE. */
/**************************************************************************/
/**************************************************************************/
/* */
/* Name: int_3062P.h */
/* Description: Interrupt vectors for the M16C/62P */
/* Date: 17.04.2003 */
/* Author: BWE @ Renesas Technology Europe GmbH */
/* Change: (Date) (Author) (Description) */
/* */
/* */
/**************************************************************************/
/**************************** prototypes start ****************************/
#define XIN_FREQ_2 22118400 // 11.0592x2(PLL=2) MHz
#define XIN_FREQ 11059200 // 11.0592x2(PLL=not used) MHz
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef UBYTE
#define UBYTE unsigned char
#define UINT unsigned int
#endif
/**************************************************************************/
/*************************** Renesas Compiler ****************************/
/**************************************************************************/
// Interrupts in fixed interrupt table
#pragma INTERRUPT __undefined_instruction_handler
#pragma INTERRUPT __overflow_handler
#pragma INTERRUPT __break_instruction_handler
#pragma INTERRUPT __address_match_handler
#pragma INTERRUPT __single_step_handler
#pragma INTERRUPT __watchdog_timer_handler
#pragma INTERRUPT __DBC_handler
#pragma INTERRUPT __NMI_handler
// Interrupts in variable interrupt table
#pragma INTERRUPT BRK_interrupt
#pragma INTERRUPT int3_interrupt
#pragma INTERRUPT timer_b5_interrupt
#pragma INTERRUPT timer_b4_uart1_bus_collision_interrupt
#pragma INTERRUPT timer_b3_uart0_bus_collision_interrupt
#pragma INTERRUPT sio4_int5_interrupt
#pragma INTERRUPT sio3_int4_interrupt
#pragma INTERRUPT uart2_bus_collision_interrupt
#pragma INTERRUPT dma0_interrupt
#pragma INTERRUPT dma1_interrupt
#pragma INTERRUPT key_input_interrupt
#pragma INTERRUPT ad_interrupt
#pragma INTERRUPT uart2tx_interrupt
#pragma INTERRUPT uart2rx_interrupt
#pragma INTERRUPT uart0tx_interrupt
#pragma INTERRUPT uart0rx_interrupt
#pragma INTERRUPT uart1tx_interrupt
#pragma INTERRUPT uart1rx_interrupt
#pragma INTERRUPT timer_a0_interrupt
#pragma INTERRUPT timer_a1_interrupt
#pragma INTERRUPT timer_a2_interrupt
#pragma INTERRUPT timer_a3_interrupt
#pragma INTERRUPT timer_a4_interrupt
#pragma INTERRUPT timer_b0_interrupt
#pragma INTERRUPT timer_b1_interrupt
#pragma INTERRUPT timer_b2_interrupt
#pragma INTERRUPT int0_interrupt
#pragma INTERRUPT int1_interrupt
#pragma INTERRUPT int2_interrupt
#pragma INTERRUPT soft32_interrupt
// more software interrupts can be added here
#pragma INTERRUPT soft63_interrupt
// some general definitions
#define __disable_interrupt() asm("FCLR I")
#define __enable_interrupt() asm("FSET I")
#define __wait_for_interrupt() asm("WAIT")
#define __interrupt
#define __regbank_interrupt
#define __nop _asm("\tNOP");
#define __unlock() prcr = 0x03 /*Protect off */
#define __unlock_1() prcr =0x01 //protect off bit 1
#define __unlock_all() prcr =0x0b //protect off bit 1
#define __lock() prcr = 0x00 /*Protect on
#define __M16C62P_expansion_mode 0x01
/*************************** Function declaration *************************/
void software_reset (void);
/*********************************** E O F ********************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -