From f11cae0eb80d1361f16b224ee1ab58d9004d5ffe Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Mon, 24 Jul 2017 16:40:50 +1000 Subject: [PATCH] Guard boost/vvt control from stm32 --- speeduino/auxiliaries.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/speeduino/auxiliaries.ino b/speeduino/auxiliaries.ino index 41c5bb52..66125cf3 100644 --- a/speeduino/auxiliaries.ino +++ b/speeduino/auxiliaries.ino @@ -28,6 +28,7 @@ void fanControl() } } +#if defined(CORE_AVR) || defined(CORE_TEENSY) void initialiseAuxPWM() { #if defined(CORE_AVR) @@ -36,6 +37,8 @@ void initialiseAuxPWM() TIFR1 = 0x00; //Timer1 INT Flag Reg: Clear Timer Overflow Flag TCCR1A = 0x00; //Timer1 Control Reg A: Wave Gen Mode normal (Simply counts up from 0 to 65535 (16-bit int) TCCR1B = (1 << CS12); //Timer1 Control Reg B: Timer Prescaler set to 256. 1 tick = 16uS. Refer to http://www.instructables.com/files/orig/F3T/TIKL/H3WSA4V7/F3TTIKLH3WSA4V7.jpg + #elif defined(CORE_TEENSY) + //REALLY NEED TO DO THIS! #endif boost_pin_port = portOutputRegister(digitalPinToPort(pinBoost)); @@ -172,7 +175,7 @@ void vvtControl() } } -#if defined(CORE_STM32) +#elif defined(CORE_STM32) //YET TO BE IMPLEMENTED ON STM32 void initialiseAuxPWM() { } void boostControl() { }