跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

Specifying the same interrupt function with the difference interrupt source (RL78 CC-RL)

Latest Updated:12/05/2016

Question:

Using the RL78 CC-RL compiler, how to specify different interrupt sources that will use the same interrupt function?

Answer:

Multiple interrupt requests to one function cannot be specified on the source file. Instead, have all interrupt function sources point to an interrupt vector using the -vectn option of the CC-RL linker.
 
<Example>
The interrupt vector address : 0x04,0x06,0x0a
The interrupt function (C language) : dummy_int
 
In case for the above, please set the function as follows.
 
-vectn=4=_dummy_int,6=_dummy_int,a=_dummy_int
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family