|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
-
- #ifndef SdFatUtil_h
- #define SdFatUtil_h
-
- #include <Arduino.h>
- #include <avr/pgmspace.h>
-
- #define PgmPrint(x) SerialPrint_P(PSTR(x))
-
- #define PgmPrintln(x) SerialPrintln_P(PSTR(x))
-
- #define NOINLINE __attribute__((noinline,unused))
- #define UNUSEDOK __attribute__((unused))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- static NOINLINE void SerialPrint_P(PGM_P str) {
- for (uint8_t c; (c = pgm_read_byte(str)); str++) Serial.write(c);
- }
-
-
- static NOINLINE void SerialPrintln_P(PGM_P str) {
- SerialPrint_P(str);
- Serial.println();
- }
- #endif
|