__interrupt static void r_uart1_interrupt_send(void) { if (g_uart1_tx_count > 0U) { TXD1 = *gp_uart1_tx_address; gp_uart1_tx_address++; g_uart1_tx_count--; } else { r_uart1_callback_sendend(); } }
/*********************************************************************************************************************** * Function Name: r_uart1_interrupt_send * Description : This function is INTST1 interrupt service routine. * Arguments : None * Return Value : None ***********************************************************************************************************************/ __interrupt static void r_uart1_interrupt_send(void) { if (g_uart1_tx_count > 0U) { TXD1 = *gp_uart1_tx_address; gp_uart1_tx_address++; g_uart1_tx_count--; } else { SMR02 &= ~_0001_SAU_BUFFER_EMPTY; if ((SSR02 & _0040_SAU_UNDER_EXECUTE) == 0U) { r_uart1_callback_sendend(); } } }