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

Committer:
billmarshall
Date:
Thu Dec 16 10:57:40 2010 +0000
Revision:
0:b3c216fa9a09

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
billmarshall 0:b3c216fa9a09 1 // EDP & mbed Hello World Program WGM 2010
billmarshall 0:b3c216fa9a09 2 // Requires EDP-AM-CO1 communications module with PC COM port connection
billmarshall 0:b3c216fa9a09 3
billmarshall 0:b3c216fa9a09 4 #include "mbed.h"
billmarshall 0:b3c216fa9a09 5
billmarshall 0:b3c216fa9a09 6 Serial ASC0(p28, p27); // Set up EDP ASC0 (default: 9600,8,N,1)
billmarshall 0:b3c216fa9a09 7 DigitalOut L1(LED1);
billmarshall 0:b3c216fa9a09 8
billmarshall 0:b3c216fa9a09 9 int main() {
billmarshall 0:b3c216fa9a09 10 ASC0.printf("\nHello World\n"); // Print on EDP ASC0 terminal
billmarshall 0:b3c216fa9a09 11
billmarshall 0:b3c216fa9a09 12 while(1) { // Flash User LED 1
billmarshall 0:b3c216fa9a09 13 L1 = 1;
billmarshall 0:b3c216fa9a09 14 wait(0.5);
billmarshall 0:b3c216fa9a09 15 L1 = 0;
billmarshall 0:b3c216fa9a09 16 wait(0.5);
billmarshall 0:b3c216fa9a09 17 }
billmarshall 0:b3c216fa9a09 18 }