注册 登录
电子工程世界-论坛 返回首页 EEWORLD首页 频道 EE大学堂 下载中心 Datasheet 专题
jerryleung的个人空间 https://home.eeworld.com.cn/space-uid-984757.html [收藏] [复制] [分享] [RSS]
日志

RH850的中断问题

已有 2170 次阅读2018-4-9 17:08

#pragma interrupt INTRLIN31UR0 RL31UR0_Interrupt
__interrupt void RL31UR0_Interrupt(void)
{
}

为什么这种写法,编译的时候会报错啊?


CS+生成的代码是这种格式的#pragma,但始终无法进入中断处理函数,Debug过程中看到中断标志位已被置位。
/***********************************************************************************************************************
* Function Name: r_Config_UART1_interrupt_send
* Description  : This function is UART1 send interrupt service routine
* Arguments    : None
* Return Value : None
***********************************************************************************************************************/
#pragma interrupt r_Config_UART1_interrupt_send(enable=false, channel=121, fpu=false, callt=false)
void r_Config_UART1_interrupt_send(void)
{
   if (g_uart1_tx_count > 0U)
   {
      RLN31.LUTDR.UINT16= *gp_uart1_tx_address;
      gp_uart1_tx_address++;
      g_uart1_tx_count--;
   }
   else
   {
      r_Config_UART1_callback_sendend();
   }
}

还有查看寄存器的过程中发现串口发送的过程jLEST寄存器的Bit error的错误标志位被置位,请问是什么造成的。

本文来自论坛,点击查看完整帖子内容。

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

热门文章