Subversion Repositories Code-Repo

Rev

Rev 212 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 212 Rev 215
Line 89... Line 89...
89
        IFS0CLR = 0x01000000; // Clear the RX flag
89
        IFS0CLR = 0x01000000; // Clear the RX flag
90
    }
90
    }
91
#endif
91
#endif
92
 
92
 
93
    // Process SPI1 transmit flag
93
    // Process SPI1 transmit flag
94
    if (IFS0bits.SPI1TXIF) {
94
    if (IFS0bits.SPI1TXIF && IEC0bits.SPI1TXIE) {
95
        int i;
95
        int i;
96
        // Disable the transmit interrupt if all data has been sent
96
        // Disable the transmit interrupt if all data has been sent
97
        if (spi_data_ptr->buffer_out_len == 0) {
97
        if (spi_data_ptr->buffer_out_len == 0) {
98
            IEC0CLR=0x02000000;
98
            IEC0CLR=0x02000000;
99
            if (spi_data_ptr->tx_callback != NULL)
99
            if (spi_data_ptr->tx_callback != NULL)