Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: utils.cpp
- Revision:
- 1:8faddee0e52f
- Child:
- 3:1b7eb426247e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/utils.cpp Sat Sep 28 22:29:57 2019 +0000
@@ -0,0 +1,21 @@
+#include "utils.h"
+
+bool b_UTILS_flag_button = false;
+bool b_UTILS_flag_emergency_stop = false;
+Serial pc(USBTX, USBRX);
+InterruptIn button(USER_BUTTON);
+
+
+void init_interruptions(){
+ button.fall(&it_pressed);
+}
+
+void it_pressed(){
+ b_UTILS_flag_button = true;
+ return;
+ }
+
+void initGPIOs()
+{
+ return;
+}
\ No newline at end of file