wireless_uart

Dependencies:   fsl_phy_mcr20a fsl_smac mbed-rtos mbed

Fork of mcr20_wireless_uart by samuel belete

Committer:
crivera
Date:
Tue Mar 03 15:14:10 2015 -0600
Revision:
1:6055c6873f85
Parent:
0:01fb291427ce
Child:
2:3e7685cfb2a7
testing ability to commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sam_grove 0:01fb291427ce 1 // Hello world example of MCR20
sam_grove 0:01fb291427ce 2 #include "mbed.h"
sam_grove 0:01fb291427ce 3
sam_grove 0:01fb291427ce 4 SPI mcr20(D11, D12, D13);
sam_grove 0:01fb291427ce 5 DigitalOut cs(D10, 1);
sam_grove 0:01fb291427ce 6 DigitalOut led(LED1, 1);
sam_grove 0:01fb291427ce 7 Serial pc(USBTX, USBRX);
sam_grove 0:01fb291427ce 8
sam_grove 0:01fb291427ce 9 int main(void)
sam_grove 0:01fb291427ce 10 {
sam_grove 0:01fb291427ce 11 char control;
sam_grove 0:01fb291427ce 12 char buf[128];
sam_grove 0:01fb291427ce 13
sam_grove 0:01fb291427ce 14 while(1) {
sam_grove 0:01fb291427ce 15 if (pc.readable()) {
sam_grove 0:01fb291427ce 16 led = !led;
sam_grove 0:01fb291427ce 17 pc.getc();
sam_grove 0:01fb291427ce 18 }
sam_grove 0:01fb291427ce 19 //pc.scanf("%c%s\n", &control, &buf);
crivera 1:6055c6873f85 20
crivera 1:6055c6873f85 21 //Chris was here
sam_grove 0:01fb291427ce 22 }
sam_grove 0:01fb291427ce 23 }