Skip to content

Instantly share code, notes, and snippets.

@n1ywb
Created December 31, 2017 23:36
Show Gist options
  • Save n1ywb/d7fa85b5cf056d4da50e36554e63c557 to your computer and use it in GitHub Desktop.
Save n1ywb/d7fa85b5cf056d4da50e36554e63c557 to your computer and use it in GitHub Desktop.
TC5->COUNT16.CTRLA.reg &= ~TC_CTRLA_ENABLE;
while (TC5->COUNT16.STATUS.bit.SYNCBUSY);
TC5->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
while (TC5->COUNT16.STATUS.bit.SYNCBUSY);
@n1ywb
Copy link
Author

n1ywb commented Jan 1, 2018

this didn't work because I fubard my gclk config and the tc was not clocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment