naru naruken
/
mbed_blinky
measure MAC
Revision 0:62bb4b0c6b47, committed 2015-02-19
- Comitter:
- naru
- Date:
- Thu Feb 19 16:14:17 2015 +0000
- Commit message:
- measureMAC
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 19 16:14:17 2015 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" + +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); +DigitalOut myled3(LED3); +DigitalOut myled4(LED4); +int main() { + volatile int k; + while(1) { + for(int j=0;j<15;j++){ + for(volatile int i=0;i<1000*1000;i++){ + k+=i*j; + k+=i*j; + k+=i*j; + k+=i*j; + k+=i*j; + k+=i*j; + k+=i*j; + k+=i*j; + } + myled1 = j & 0x0001; + myled2 = j & 0x0002; + myled3 = j & 0x0004; + myled4 = j & 0x0008; + } + // wait(0.1); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Feb 19 16:14:17 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9ad691361fac \ No newline at end of file