Skip to content

where is the source code of takeOverTCA0( ) ? #993

Closed Answered by 6v6gt-duino
6v6gt-duino asked this question in Q&A
Discussion options

You must be logged in to vote

OK. I've found it in .....\ArduinoData\packages\megaTinyCore\hardware\megaavr\2.6.4\cores\megatinycore\wiring_analog.c

void takeOverTCA0() {
  TCA0.SPLIT.CTRLA = 0;                                 // Stop TCA0
  __PeripheralControl &= ~TIMERA0;                        // Mark timer as user controlled
  /* Okay, seriously? The datasheets and io headers disagree here */
  TCA0.SPLIT.CTRLESET = TCA_SPLIT_CMD_RESET_gc | 0x03;  // Reset TCA0
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 6v6gt-duino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant