CMSIS-DAP
#include "LPC11xx.h" void SystemInit() { } void wait() { __IO int i = 200000; while(i-- > 0) ; } int main() { LPC_GPIO0->DIR = 1<<7; // PIO0_7 output while(1) { LPC_GPIO0->DATA ^= 1<<7; wait(); } }
#include "LPC11xx.h" void SystemInit() { } void wait() { __IO int i = 200000; while(i-- > 0) ; } int main() { LPC_GPIO0->DIR = 1<<7; // PIO0_7 output while(1) { LPC_GPIO0->DATA ^= 1<<7; wait(); } }