TITLE: Generic Blink Example
AUTHOR: Chuck McManis
LAST UPDATE: 24-May-2014


This is a very generic example of what all ‘blink’ type programs start with. Unlike the hello.c example it cannot rely on standard libraries in the C language to function, instead there are always some particular things that need to be done on the specific system it is targeting.

Sometimes those are built in, like the Arduino Blink example, and other times you have to write that code yourself from information in the data sheets.

The Source Code

#include <custom-include-file.h>

void main() {
    initialize_io_pin(LED_PIN, OUTPUT_PIN);

    while (1) {


Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. You are free to play around with it and modify it but you are not licensed to use it for commercial purposes. Click the link above for more details on your rights under this license.