git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9707 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2016-07-16 10:24:13 +00:00
parent 0ac8c37d5b
commit c7c6f26484
1 changed files with 8 additions and 4 deletions

View File

@ -260,13 +260,17 @@ void sd_lld_stop(SerialDriver *sdp) {
}
bool sd_lld_interrupt_pending(void) {
bool b;
bool b = false;
CH_IRQ_PROLOGUE();
b = connint(&SD1) || connint(&SD2) ||
inint(&SD1) || inint(&SD2) ||
outint(&SD1) || outint(&SD2);
#if USE_WIN32_SERIAL1
b |= connint(&SD1) || inint(&SD1) || outint(&SD1);
#endif
#if USE_WIN32_SERIAL2
b |= connint(&SD2) || inint(&SD2) || outint(&SD2);
#endif
CH_IRQ_EPILOGUE();