Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- overkiller
- Date:
- 2015-06-23
- Revision:
- 2:09cc6b203fe4
- Parent:
- 1:90d75436758b
- Child:
- 3:def8a92db030
File content as of revision 2:09cc6b203fe4:
#include "mbed.h"
#include "include/EngineDriver.h"
Serial pc(SERIAL_TX, SERIAL_RX);
int initDrivingUnit(int testLoops)
{
        pc.printf("Testing engines...\n\r");
        enableAll();
        int i = 0;
        while(i < testLoops)
        {
            testEngines();
            applyStates();
            i++;
        }
    resetEngines();
    return 0;
}
int main()
{
    if(initDrivingUnit(5) == 0)
    {
        pc.printf("Ready to accept commands.\n\r$>");
    }
    while (true) 
    {
    }
}