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.cpp
- Revision:
- 0:633cef71e6ba
- Child:
- 1:a6bcf44b90df
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Aug 09 09:37:55 2015 +0000
@@ -0,0 +1,39 @@
+#include "SysConfig.h"
+
+void SystemHalt(void)
+{
+ printf("\n\rOops! System halted! O_o\n\r");
+ LedOffAll();
+ while(1)
+ {
+ LedToggle(0);
+ wait_ms(500);
+ }
+}
+
+int PeLayerInit(void)
+{
+ int ret = 0;
+ ret += BoardLibInit();
+ return ret;
+}
+
+int AppLayerInit(void)
+{
+ return 0;
+}
+
+int main(void)
+{
+ if(PeLayerInit() != 0)
+ SystemHalt();
+
+ if(AppLayerInit() != 0)
+ SystemHalt();
+
+ printf("System init done!\n\r");
+ SelfTest();
+
+ //Program should never go to here
+ SystemHalt();
+}