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

Dependencies:   mbed

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(); 
}