#include "MKL25Z4.h" void Delay() { int i; for (i = 0; i < 1000000; i++) asm("nop"); } int main() { SIM_BASE_PTR->SCGC5 |= SIM_SCGC5_PORTB_MASK; PORTB_BASE_PTR->PCR[17] = PORT_PCR_MUX(1); PTB_BASE_PTR->PDDR = 1 << 17; for(;;) { PTB_BASE_PTR->PSOR = 1 << 17; Delay(); PTB_BASE_PTR->PCOR = 1 << 17; Delay(); } return 0; }