Kenji Arai
/
Check_external_RTC
check program for EPSON RX-8025NB and STM M41T62 external RTC library
Embed:
(wiki syntax)
Show/hide line numbers
redirect_stdio.cpp
00001 /* 00002 * mbed Application program 00003 * Redirect Standard Input/Output 00004 * 00005 * Copyright (c) 2020 Kenji Arai / JH1PJL 00006 * http://www7b.biglobe.ne.jp/~kenjia/ 00007 * https://os.mbed.com/users/kenjiArai/ 00008 * Created: August 7th, 2020 00009 * Revised: August 7th, 2020 00010 */ 00011 00012 #include "mbed.h" 00013 00014 // Create a BufferedSerial object to be used by the system I/O retarget code 00015 BufferedSerial pc(USBTX, USBRX, 9600); 00016 00017 // the system I/O retarget 00018 FileHandle *mbed::mbed_override_console(int fd) 00019 { 00020 return &pc; 00021 }
Generated on Sat Jul 16 2022 05:40:32 by 1.7.2