Dependencies:   lpc1768

Aim

This program demonstrates the very simplest of programs, a flashing led, other projects have built on this library to use the ethernet, RTC, timers, SPI, uart1 and GPIO peripherals.

main/main.c

Committer:
andrewboyson
Date:
2018-12-06
Revision:
0:f4dd9936dfd9

File content as of revision 0:f4dd9936dfd9:

#include <stdint.h>
#include <stdbool.h>

#include "periphs.h"
#include "system.h"
#include "led.h"

int main()
{
    PeriphsInit();
    SystemInit();
    LedInit();
    
    int count = 0;
    while (true)
    {
        ++count;
        if (count > 10000000)
        {
            Led1Tgl();
            count = 0;
        }
    }
}