Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Last active March 13, 2017 16:25
Show Gist options
  • Select an option

  • Save wdwalker/d73178c53bd262892225c701edfeb8f2 to your computer and use it in GitHub Desktop.

Select an option

Save wdwalker/d73178c53bd262892225c701edfeb8f2 to your computer and use it in GitHub Desktop.
CLKOUT example
/* Enable CLKOUT on pin 43 (P1.27) and have it show the CPU clock
* divided by 16. (p68, p120).
*/
LPC_SC->CLKOUTCFG = 0x000001F0;
LPC_PINCON->PINSEL3 &= ~((1 << 23) | (1 << 22));
LPC_PINCON->PINSEL3 |= (1 << 22);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment