check program for EPSON RX-8025NB and STM M41T62 external RTC library

Dependencies:   RX8025NB M41T62

redirect_stdio/redirect_stdio.h

Committer:
kenjiArai
Date:
2020-08-07
Revision:
1:0fd657a82160
Parent:
0:564965644ed2

File content as of revision 1:0fd657a82160:

/*
 * 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);
}