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.
main.cpp
- Committer:
- nightseas
- Date:
- 2015-08-18
- Revision:
- 1:a6bcf44b90df
- Parent:
- 0:633cef71e6ba
- Child:
- 2:cff0fa966e58
File content as of revision 1:a6bcf44b90df:
#include "SysConfig.h"
void SystemHalt(void)
{
printf("\n\rOops! System halted! O_o\n\r");
LedOffAll();
while(1)
{
LedToggle(0);
wait_ms(100);
}
}
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();
}