Grundstruktur in C für das mySTM32 Board Light

//---------------------------------------------------------------------------
// Title     : Basic main code pattern of a simple ARM C application in SiSy
//---------------------------------------------------------------------------
// Function  : ...
// Wiring    : ...
//---------------------------------------------------------------------------
// Hardware  : ...
// Clock     : ... MHz
// Language  : ARM C
// Date      : ...
// Version   : ...
// Author    : ...
//---------------------------------------------------------------------------
#include <stddef.h>
#include <stdlib.h>
#include "hardware.h"

void initApplication()
{
    // config 10ms SystemTimer
    SysTick_Config(SystemCoreClock/100);
    // user initializations here
    
}

int main(void)
{
    SystemInit();
    initApplication();
    do{
 
 		// main loop
               
    } while (true);
    return 0;
}

extern "C" void SysTick_Handler(void)
{
    // Application SysTick default 10ms
}
//------------------------------------------------------------------------------

Weiter mit