Commit a9fc2bf3 authored by Paul Molloy's avatar Paul Molloy

adding comments explaining SystemInit and some skeleton comments to main

parent bc6999ff
#ifndef __NO_SYSTEM_INIT
//option to create your own C library system initialization
//Currently define __STARTUP_CLEAR_BSS when building to use
//initialization provided by startup_ARMCM0.S that zero's the BSS section
void SystemInit()
{}
#endif
//include target chip port definition library files
void main()
{
//Initialize clocks
//Initialize interupts
//Initialize WDT, core features, etc
//Initialize io, etc
//Initialize board/system
//main infinite loop
for (;;);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment