Raspberry Pi MOT HAT Based on STM32F030R8. The clock needs to be changed to 8MHz after export.

Dependencies:   mbed

Revision:
0:633cef71e6ba
Child:
1:a6bcf44b90df
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AplicationLayer/SelfTest.cpp	Sun Aug 09 09:37:55 2015 +0000
@@ -0,0 +1,32 @@
+#include "SysConfig.h"
+
+void SelfTest(void)
+{
+    //Breath LED
+    int i, j;
+    led_mb = 0;
+    while(1)
+    {
+        for(j=0;j<=100;j++)
+        {            
+            for(i=0;i<=100;i++)
+            {
+                led_mb = 1;
+                wait_us(j);
+                led_mb = 0;
+                wait_us(100-j);
+            }
+        }
+        for(j=100;j>=0;j--)
+        {            
+            for(i=0;i<=100;i++)
+            {
+                led_mb = 1;
+                wait_us(j);
+                led_mb = 0;
+                wait_us(100-j);
+            }
+        }
+        wait_ms(200);
+    }      
+}
\ No newline at end of file