LPC546xx: CLOCK_EnableClock(kCLOCK_InputMux);

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC546xx: CLOCK_EnableClock(kCLOCK_InputMux);

970 Views
giusloq
Contributor III

In many SDK examples I see this instruction usually near the beginning of main() function:

CLOCK_EnableClock(kCLOCK_InputMux);

Obviously it enables the clock to the INPUTMUX peripheral that manages some external pins function (inputs to SCT, interrupts from external pins, DMA triggers from external pins, inputs for frequency meter).

I just started studying lpcxpresso54628_lwip_dhcp_bm project example and that instruction is present in the main(). Why? I don't think this project uses any of the INPUTMUX functions.

 

0 Kudos
Reply
1 Reply

943 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your feedback.

If the demo works without enabling the INPUTMUX, you can ignore that line. I’ll notify the team about this.

Regards, Daniel.

0 Kudos
Reply