Using std::ostream with TextLCD
Dependencies: ACM1602NI TextLCD
Dependents: TextLCD_ostream_sample
This is class library inherited std::ostream for TextLCD
Because a large amount of memory is needed, do not work in low memory MPU
Sample program is here. And notebook page is here (sorry notebook page is only in Japanese)
microlib_streamfix.cpp@6:2494d76a38b0, 2016-07-30 (annotated)
- Committer:
- jk1lot
- Date:
- Sat Jul 30 06:59:22 2016 +0000
- Revision:
- 6:2494d76a38b0
bug fixed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jk1lot | 6:2494d76a38b0 | 1 | // Dummy functions to avoid compile error. |
jk1lot | 6:2494d76a38b0 | 2 | // In fact, malfunctions Once these functions are called. |
jk1lot | 6:2494d76a38b0 | 3 | #include "mbed.h" |
jk1lot | 6:2494d76a38b0 | 4 | |
jk1lot | 6:2494d76a38b0 | 5 | #ifdef __MICROLIB /*__CC_ARM*/ |
jk1lot | 6:2494d76a38b0 | 6 | /// To suppress MDK-ARM Linker Error: L6218E: Undefined symbol __fread_bytes_avail (referred from ios.o). |
jk1lot | 6:2494d76a38b0 | 7 | size_t std::__fread_bytes_avail(void * __restrict ptr, |
jk1lot | 6:2494d76a38b0 | 8 | size_t count, FILE * __restrict stream) //__attribute__((__nonnull__(1,3))) |
jk1lot | 6:2494d76a38b0 | 9 | { |
jk1lot | 6:2494d76a38b0 | 10 | return 1; |
jk1lot | 6:2494d76a38b0 | 11 | } |
jk1lot | 6:2494d76a38b0 | 12 | |
jk1lot | 6:2494d76a38b0 | 13 | |
jk1lot | 6:2494d76a38b0 | 14 | #include <wchar.h> |
jk1lot | 6:2494d76a38b0 | 15 | /// To suppress MDK-ARM Linker Error: L6218E: Undefined symbol mbsinit (referred from ios.o). |
jk1lot | 6:2494d76a38b0 | 16 | int std::mbsinit(const mbstate_t * ps) |
jk1lot | 6:2494d76a38b0 | 17 | { |
jk1lot | 6:2494d76a38b0 | 18 | return -1; |
jk1lot | 6:2494d76a38b0 | 19 | } |
jk1lot | 6:2494d76a38b0 | 20 | |
jk1lot | 6:2494d76a38b0 | 21 | /// To suppress MDK-ARM Linker Error: L6218E: Undefined symbol mbsinit (referred from ios.o). |
jk1lot | 6:2494d76a38b0 | 22 | wchar_t *std::wmemmove(wchar_t * __restrict s1, |
jk1lot | 6:2494d76a38b0 | 23 | const wchar_t * __restrict s2, size_t n) //__attribute__((__nonnull__(1,2))) |
jk1lot | 6:2494d76a38b0 | 24 | { |
jk1lot | 6:2494d76a38b0 | 25 | return NULL; |
jk1lot | 6:2494d76a38b0 | 26 | } |
jk1lot | 6:2494d76a38b0 | 27 | #endif /*__MICROLIB*/ /*__CC_ARM*/ |