|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
-
-
- #include "core_pins.h"
- #include "HardwareSerial.h"
- #include "usb_serial.h"
- #include "usb_seremu.h"
-
- void yield(void) __attribute__ ((weak));
- void yield(void)
- {
- static uint8_t running=0;
-
- if (running) return;
- running = 1;
- if (Serial.available()) serialEvent();
- if (Serial1.available()) serialEvent1();
- if (Serial2.available()) serialEvent2();
- if (Serial3.available()) serialEvent3();
- #ifdef HAS_KINETISK_UART3
- if (Serial4.available()) serialEvent4();
- #endif
- #ifdef HAS_KINETISK_UART4
- if (Serial5.available()) serialEvent5();
- #endif
- running = 0;
- };
|