Last active
March 13, 2017 16:25
-
-
Save wdwalker/d73178c53bd262892225c701edfeb8f2 to your computer and use it in GitHub Desktop.
CLKOUT example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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