Kenji Arai
/
LPC1114_SPI_LCD_ST7565family_test
Controller chip is ST7565
Embed:
(wiki syntax)
Show/hide line numbers
check_revision.cpp
00001 /* 00002 * Check Mbed revision 00003 * 00004 * Copyright (c) 2019,'20,'21 Kenji Arai / JH1PJL 00005 * http://www7b.biglobe.ne.jp/~kenjia/ 00006 * https://os.mbed.com/users/kenjiArai/ 00007 * Created: July 17th, 2019 00008 * Revised: February 27th, 2021 00009 */ 00010 00011 #include "mbed.h" 00012 00013 // RUN ONLY ON mbed-os-6.8.0 00014 // https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.8.0 00015 #if (MBED_MAJOR_VERSION == 6) &&\ 00016 (MBED_MINOR_VERSION == 8) &&\ 00017 (MBED_PATCH_VERSION == 0) 00018 #else 00019 # error "Please use mbed-os-6.8.0" 00020 #endif 00021 00022 void print_revision(void) 00023 { 00024 printf("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION); 00025 printf("MINOR = %d, ", MBED_MINOR_VERSION); 00026 printf("PATCH = %d\r\n", MBED_PATCH_VERSION); 00027 }
Generated on Sat Jul 16 2022 19:23:09 by 1.7.2