delete led heartbeat.

Dependencies:   EALib USBDevice mbed

Fork of LPC4088test_ledonly by fuyuno sakura

Committer:
mio
Date:
Mon Oct 07 21:50:14 2013 +0000
Revision:
2:99167489971a
Parent:
1:65017af721b9
delete led heartbeat.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mio 0:0e8a8d6e4cfd 1 #include "mbed.h"
mio 1:65017af721b9 2 //#include "sdram.h"
mio 1:65017af721b9 3 //#include "USBSerial.h"
mio 0:0e8a8d6e4cfd 4
mio 2:99167489971a 5 //DigitalOut led1(LED1);
mio 1:65017af721b9 6 //USBSerial cdc;
mio 0:0e8a8d6e4cfd 7 Serial pc(USBTX,USBRX);
mio 0:0e8a8d6e4cfd 8
mio 2:99167489971a 9 //#define SIZE (1024*1024)
mio 0:0e8a8d6e4cfd 10
mio 2:99167489971a 11 //int alloccount = 0;
mio 2:99167489971a 12 //unsigned char *ptr[100] ;
mio 0:0e8a8d6e4cfd 13
mio 0:0e8a8d6e4cfd 14 int main() {
mio 1:65017af721b9 15 //sdram_init();
mio 0:0e8a8d6e4cfd 16 while(1) {
mio 1:65017af721b9 17 //ptr[alloccount] = (unsigned char *)malloc(SIZE) ;
mio 1:65017af721b9 18 //cdc.printf ("Allocated Address = %08X\r\n",ptr[alloccount]);
mio 2:99167489971a 19 //pc.printf ("Allocated Address = %08X\r\n",ptr[alloccount]);
mio 2:99167489971a 20 pc.printf ("Allocated Address = XXXXXXXXXXX\r\n");
mio 1:65017af721b9 21 //if (ptr[alloccount] == NULL) {
mio 1:65017af721b9 22 // cdc.printf("MAX ALLOC MEMORY %d MB\r\n",alloccount);
mio 1:65017af721b9 23 // pc.printf("MAX ALLOC MEMORY %d MB\r\n",alloccount);
mio 1:65017af721b9 24 // for (int i=0;i<alloccount;i++) {
mio 1:65017af721b9 25 // free(ptr[i]);
mio 1:65017af721b9 26 // }
mio 1:65017af721b9 27 // alloccount = 0;
mio 1:65017af721b9 28 //} else {
mio 1:65017af721b9 29 // alloccount++ ;
mio 1:65017af721b9 30 //}
mio 2:99167489971a 31 //led1 = 1;
mio 2:99167489971a 32 //wait(0.1);
mio 2:99167489971a 33 //led1 = 0;
mio 2:99167489971a 34 //wait(0.1);
mio 0:0e8a8d6e4cfd 35 }
mio 0:0e8a8d6e4cfd 36 }