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: main_init.h
- Revision:
 - 6:019ab407ac3c
 - Parent:
 - 5:daab0e0e67e2
 - Child:
 - 12:9f8c7f4da5f6
 
--- a/main_init.h	Fri Jan 22 14:06:54 2021 +0000
+++ b/main_init.h	Mon Jan 25 13:21:57 2021 +0000
@@ -4,17 +4,24 @@
 /*Digital outputs*/
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
-DigitalOut led3(LED3);
+//DigitalOut led3(LED3);
 DigitalOut led4(LED4);
 DigitalOut fpga_rstb(p21);   //p21 of MBED is connectted to p4 of the FPGA CMOD for 90415FPGA_EVB2
 
+void reset_fpga(){
+    fpga_rstb = 0;
+}
+
+void enbale_fpga(){
+    fpga_rstb = 1;
+}
+
 void main_init(){
     led1 = 1;
     led2 = 0;
-    led3 = 0;
+    //led3 = 0;
     led4 = 0;
-    fpga_rstb = 0;
+    reset_fpga();
 }
-
-
+    
 #endif
\ No newline at end of file
    