Getting Started program for the mbed carrier module (EDP-CM-mbed) on the RS EDP (Embedded Development Platform). Read the 'Getting Started Guide for the ARM mbed Carrier Module' downloadable from the EDP Design Centre pages of the RS DesignSpark web site.

Dependencies:   mbed

main.cpp

Committer:
billmarshall
Date:
2010-12-16
Revision:
0:b3c216fa9a09

File content as of revision 0:b3c216fa9a09:

// EDP & mbed Hello World Program  WGM 2010
// Requires EDP-AM-CO1 communications module with PC COM port connection

#include "mbed.h"

Serial ASC0(p28, p27);              // Set up EDP ASC0 (default: 9600,8,N,1)
DigitalOut L1(LED1);

int main() {
    ASC0.printf("\nHello World\n"); // Print on EDP ASC0 terminal

    while(1) {                      // Flash User LED 1
        L1 = 1;
        wait(0.5);
        L1 = 0;
        wait(0.5);
    }
}