Barometer program : Data Logger function includes Barometer & temperature (BMP180), Humidity & temp. (RHT03), Sunshine (Cds), RTC(M41T62) data. : Logging data saves into EEPROM (AT24C1024) using ring buffer function.

Dependencies:   AT24C1024 RHT03 TextLCD BMP180 M41T62

Fork of mbed_blinky by Mbed

Please see https://mbed.org/users/kenjiArai/notebook/mbed-lpc1114fn28-barometer-with-data-logging/#

redirect_stdio/redirect_stdio.h

Committer:
kenjiArai
Date:
2020-08-08
Revision:
18:b3a27f681171

File content as of revision 18:b3a27f681171:

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