diff options
| author | krolyxon <me@krolyxon.com> | 2026-06-08 23:12:15 +0530 |
|---|---|---|
| committer | krolyxon <me@krolyxon.com> | 2026-06-08 23:12:15 +0530 |
| commit | 8a4d103196312b8a18afc0a2ba0fc13ff1a0b180 (patch) | |
| tree | a92424ac65fbdb93702ea8c44a5c52c9fd66e28c /.pio/libdeps/esp32-s3-n16r8/RF24/printf.h | |
| parent | 1d557527be495c59bbc07f194d903b1cec1780d3 (diff) | |
remove .pio
Diffstat (limited to '.pio/libdeps/esp32-s3-n16r8/RF24/printf.h')
| -rw-r--r-- | .pio/libdeps/esp32-s3-n16r8/RF24/printf.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/.pio/libdeps/esp32-s3-n16r8/RF24/printf.h b/.pio/libdeps/esp32-s3-n16r8/RF24/printf.h deleted file mode 100644 index df06c52..0000000 --- a/.pio/libdeps/esp32-s3-n16r8/RF24/printf.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - Copyright (C) 2011 J. Coliz <maniacbug@ymail.com> - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - version 2 as published by the Free Software Foundation. - */ -/* Galileo support from spaniakos <spaniakos@gmail.com> */ - -/** - * @file printf.h - * - * Setup necessary to direct stdout to the Arduino Serial library, which - * enables 'printf' - */ - -#ifndef RF24_PRINTF_H_ -#define RF24_PRINTF_H_ - -#if defined(ARDUINO_ARCH_AVR) || defined(__ARDUINO_X86__) || defined(ARDUINO_ARCH_MEGAAVR) - -int serial_putc(char c, FILE*) -{ - Serial.write(c); - return c; -} - -#elif defined(ARDUINO_ARCH_MBED) -REDIRECT_STDOUT_TO(Serial); - -#endif // defined (ARDUINO_ARCH_AVR) || defined (__ARDUINO_X86__) || defined (ARDUINO_ARCH_MBED) || defined (ARDUINO_ARCH_MEGAAVR) - -void printf_begin(void) -{ -#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR) - fdevopen(&serial_putc, 0); - -#elif defined(__ARDUINO_X86__) - // For redirect stdout to /dev/ttyGS0 (Serial Monitor port) - stdout = freopen("/dev/ttyGS0", "w", stdout); - delay(500); - printf("Redirecting to Serial..."); -#endif // defined(__ARDUINO_X86__) -} - -#endif // RF24_PRINTF_H_ |
