Commit b64300059875cfd053f321226348b340c5de97dc
authorMichel Pollet <buserror@gmail.com>
Sun, 14 Jun 2015 09:42:50 +0000 (10:42 +0100)
committerMichel Pollet <buserror@gmail.com>
Thu, 2 Jul 2015 18:02:54 +0000 (19:02 +0100)
This was commented out, dunno why..

Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/cores/sim_mega2560.c

index 2d22b4f2c693bde6c44899796e30091c3bfd2baf..c0ed603a7ee69f9c49b0889d92bf98227c95e719 100644 (file)
@@ -462,16 +462,16 @@ const struct mcu_t {
                                        },
                         },
                                // TIMER2_COMPB is only appeared in 2560
-                        //[AVR_TIMER_COMPB] = {
-                        //     .r_ocr = OCR2B,
-                        //     .com = AVR_IO_REGBITS(TCCR2A, COM2B0, 0x3),
-                        //     .com_pin = AVR_IO_REGBIT(PORTH, PH6),
-                        //     .interrupt = {
-                        //             .enable = AVR_IO_REGBIT(TIMSK2, OCIE2B),
-                        //             .raised = AVR_IO_REGBIT(TIFR2, OCF2B),
-                        //             .vector = TIMER2_COMPB_vect,
-                        //     },
-                        //},
+                        [AVR_TIMER_COMPB] = {
+                               .r_ocr = OCR2B,
+                               .com = AVR_IO_REGBITS(TCCR2A, COM2B0, 0x3),
+                               .com_pin = AVR_IO_REGBIT(PORTH, PH6),
+                               .interrupt = {
+                                       .enable = AVR_IO_REGBIT(TIMSK2, OCIE2B),
+                                       .raised = AVR_IO_REGBIT(TIFR2, OCF2B),
+                                       .vector = TIMER2_COMPB_vect,
+                               },
+                        },
                },
        },
        .timer3 = {