Dear forum users
I have a question regarding mcuXpresso pin labels and a blinky.
1) what are the lables for ?(se the included picture)
2) and do I use the labels in the code below and how?
Sorry if it is a stupide question but it's my first time using the kinetis line of microcontrollers
Thank you in advance and with best regards Ben
<code>/* TODO: insert other definitions and declarations here. */
static void delay(volatile uint32_t nof) {
while(nof!=0) {
__asm("NOP");
nof--;
}
}
/*
* @brief Application entry point.
*/
int main(void) {
/* Init board hardware. */
BOARD_InitBootPins();
BOARD_InitBootClocks();
BOARD_InitBootPeripherals();
CLOCK_EnableClock(kCLOCK_PortC); /* enable clocks for port B */
PORT_SetPinMux(PORTB, 9u, kPORT_MuxAsGpio);// setting pin PTB9 as an output
/* Enter an infinite loop, just incrementing a counter. */
while(1)
{
GPIO_PinWrite(GPIOB, 9u, 1<<9u);
delay(1000);
GPIO_PinWrite(GPIOB, 9u, 0<<9u);
}
return 0 ;
}
</code>