0

I am using compiler “GCC for Renesas 4.9.2.201801-GNURL78 Linux Toolchain (ELF Format)” for RL78/I1b MCU,

I don’t know how to setup interrupt handler functions.

I tried below interrupt code which was generated from CS+ CA RENESAS IDE, it compiles successfully but i didn’t get output on RL78 MCU.

#pragma interrupt INTRTC r_rtc_interrupt

__interrupt static void r_rtc_interrupt(void)
{
if (1U == RIFG)
{
RTCWEN = 1U;
RTCC1 &= (uint8_t)~_08_RTC_INTC_GENERATE_FLAG;    /* clear RIFG */
RTCWEN = 0U;
r_rtc_callback_constperiod();
}
}

 

I am developing this code for Contiki-OS, I need support for setup interrupt handlers in Contiki-OS.

Andreea Petian answered