NuMaker GPIO Interrupt with Debounce Setting

Files at this revision

API Documentation at this revision

Comitter:
SHLIU1@OANBE02333.nuvoton.com
Date:
Thu Feb 25 10:30:59 2021 +0800
Parent:
17:707b60147ca6
Child:
19:6e52d72cc78b
Commit message:
Support the both V5.X and V6.X for mbed os

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 707b60147ca6 -r a53eb3c1d7b7 main.cpp
--- a/main.cpp	Thu Oct 24 09:46:38 2019 +0000
+++ b/main.cpp	Thu Feb 25 10:30:59 2021 +0800
@@ -29,5 +29,8 @@
 }
 
 int main() {
+#ifdef MBED_MAJOR_VERSION
+    printf("Mbed OS version %d.%d.%d\r\n\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
+#endif
     button.rise(&flip);
 }