| 1207 | #define IR_SEND_PIN 13 |
| 1208 | |
| 1209 | void timerEnableSendPWM() { |
| 1210 | TCD0.CTRLA = 0; // reset enable bit in order to unprotect the other bits |
| 1211 | _PROTECTED_WRITE(TCD0.FAULTCTRL, FUSE_CMPAEN_bm); // enable WOA output at pin 13/PA4 |
| 1212 | // _PROTECTED_WRITE(TCD0.FAULTCTRL, FUSE_CMPAEN_bm | FUSE_CMPBEN_bm); // enable WOA + WOB output pins at 13/PA4 + 14/PA5 |
| 1213 | TCD0.CTRLA = TCD_ENABLE_bm | TCD_CLKSEL_SYSCLK_gc | TCD_CNTPRES_DIV1_gc; // System clock, no prescale, no synchronization prescaler |
| 1214 | } |
| 1215 | |
| 1216 | void enableSendPWMByTimer() { |
| 1217 | timerEnableSendPWM(); |
no outgoing calls
no test coverage detected