From: Michel Pollet <buserror@gmail.com>
Date: Wed, 4 Sep 2013 07:41:26 +0000 (+0100)
Subject: megax8: Added a couple of timer modes
X-Git-Tag: v1.1~11
X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=b24dca2cefbc933cfb93ed003894fe597728b7ff;p=sx%2Fsimavr.git

megax8: Added a couple of timer modes

Pretty obvious timer modes were missing...

Signed-off-by: Michel Pollet <buserror@gmail.com>
---

diff --git a/simavr/cores/sim_megax8.h b/simavr/cores/sim_megax8.h
index 51f2d24..b0bc336 100644
--- a/simavr/cores/sim_megax8.h
+++ b/simavr/cores/sim_megax8.h
@@ -227,6 +227,8 @@ const struct mcu_t SIM_CORENAME = {
 			[5] = AVR_TIMER_WGM_FASTPWM8(),
 			[6] = AVR_TIMER_WGM_FASTPWM9(),
 			[7] = AVR_TIMER_WGM_FASTPWM10(),
+			[8] = AVR_TIMER_WGM_ICPWM(),
+			[9] = AVR_TIMER_WGM_OCPWM(),
 			[12] = AVR_TIMER_WGM_ICCTC(),
 			[14] = AVR_TIMER_WGM_ICPWM(),
 			[15] = AVR_TIMER_WGM_OCPWM(),