Kenji Arai
/
LPC1114_SPI_LCD_ST7565family_test
Controller chip is ST7565
SPI LCD: AQM1248A (Akizuki) or AD-12864-SPI (antendo)
Diff: redirect_stdio/redirect_stdio.h
- Revision:
- 5:9b4d9c139186
- Parent:
- 4:9d99684c6373
--- a/redirect_stdio/redirect_stdio.h Sat Aug 08 04:20:39 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -/* - * mbed Application program - * Redirect Standard Input/Output - * - * Copyright (c) 2020 Kenji Arai / JH1PJL - * http://www7b.biglobe.ne.jp/~kenjia/ - * https://os.mbed.com/users/kenjiArai/ - * Created: August 7th, 2020 - * Revised: August 7th, 2020 - */ - -extern BufferedSerial pc; - -FileHandle *mbed::mbed_override_console(int fd); - -inline uint8_t readable(void) -{ - return pc.readable(); -} - -inline void putc(uint8_t c) -{ - char dt = c; - pc.write(&dt, 1); -} - -inline uint8_t getc(void) -{ - int c = getchar(); - return (uint8_t)c; -} - -inline void puts_wo_cr(char *bf, uint32_t len) -{ - pc.write(bf, len); -}