I'm studying lpcxpresso54628_spifi_polling_transfer SDK demo project.
I noticed there are two calls to BOARD_InitBootClocks(). Are they necessary or the second call is an error that doesn't cause any issue? Please note that the comments are different.
BOARD_InitBootClocks(); /* Boot up FROHF96M for SPIFI to use*/
BOARD_InitBootClocks(); /* Core clock boot to 220Mhz*/
Another question. There's also another strange instruction:
/* attach 12 MHz clock to SPI3 */
CLOCK_AttachClk(kFRO12M_to_FLEXCOMM9);
Why the presence of this instruction? It seems to me FLEXCOMM9 isn't used in this project.