Subversion Repositories svn.mios

Rev

Rev 766 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 766 Rev 767
Line 180... Line 180...
180
// Interrupt handler for DMX UART
180
// Interrupt handler for DMX UART
181
/////////////////////////////////////////////////////////////////////////////
181
/////////////////////////////////////////////////////////////////////////////
182
signed portBASE_TYPE x=pdFALSE;
182
signed portBASE_TYPE x=pdFALSE;
183
DMX_IRQHANDLER_FUNC
183
DMX_IRQHANDLER_FUNC
184
{
184
{
185
  if( (dmx_state == DMX_BREAK) && DMX->SR & USART_FLAG_TC ) { // Transmission Complete flag
185
  if( (dmx_state == DMX_BREAK) && (DMX->SR & USART_FLAG_TC) ) { // Transmission Complete flag
186
    // the combined break/MAB has been sent - disable TC interrupt, clear current TXE and enable TXE for next byte
186
    // the combined break/MAB has been sent - disable TC interrupt, clear current TXE and enable TXE for next byte
187
    USART_ITConfig(DMX, USART_IT_TC, DISABLE);
187
    USART_ITConfig(DMX, USART_IT_TC, DISABLE);
188
    DMX->SR &= ~USART_FLAG_TXE;
188
    DMX->SR &= ~USART_FLAG_TXE;
189
    USART_ITConfig(DMX, USART_IT_TXE, ENABLE);
189
    USART_ITConfig(DMX, USART_IT_TXE, ENABLE);
190
190