Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 #if defined(TARGET_SAMR21G18A) || defined(TARGET_SAMD21J18A) || defined(TARGET_SAMD21G18A) || defined(TARGET_SAML21J18A)
00004 DigitalOut out(PB02);
00005 if defined(TARGET_SAMG55J19)
00006 DigitalOut out(PA17);
00007 #else
00008 DigitalOut out(p5);
00009 #endif
00010 
00011 int main() {
00012     while (true) {
00013         out = 1;
00014         out = 0;
00015     }
00016 }