The “super loop” software architecture



What is the minimum software environment you need to create an
embedded C program?

Solution


void main(void)
{
/* Prepare for task X */
X_Init();
while(1) /* 'for ever' (Super Loop) */
{
X(); /* Perform the task */
}
}