My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SoftwareSerial.cpp 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. *
  18. */
  19. #if defined(__STM32F1__) && !defined(HAVE_SW_SERIAL)
  20. /**
  21. * Empty class for Software Serial implementation (Custom RX/TX pins)
  22. *
  23. * TODO: Optionally use https://github.com/FYSETC/SoftwareSerialM if TMC UART is wanted
  24. */
  25. #include "SoftwareSerial.h"
  26. // Constructor
  27. SoftwareSerial::SoftwareSerial(int8_t RX_pin, int8_t TX_pin) {}
  28. // Public
  29. void SoftwareSerial::begin(const uint32_t baudrate) {
  30. }
  31. bool SoftwareSerial::available() {
  32. return false;
  33. }
  34. uint8_t SoftwareSerial::read() {
  35. return 0;
  36. }
  37. uint16_t SoftwareSerial::write(uint8_t byte) {
  38. return 0;
  39. }
  40. void SoftwareSerial::flush() {}
  41. void SoftwareSerial::listen() {
  42. listening = true;
  43. }
  44. void SoftwareSerial::stopListening() {
  45. listening = false;
  46. }
  47. #endif //__STM32F1__