Skip to content

Commit b4d209d

Browse files
author
yannick.le.ny.56
committed
replace timer 1 by timer 0 for the timer used by duinos kernel - backport patches from Robert Sanders - rsanders/DuinOS@061086c and rsanders/DuinOS@13190ab - missing file
git-svn-id: http://duinos.googlecode.com/svn/trunk@31 542b9b23-42aa-b9a1-add2-148d3e16e5b3
1 parent 3830b18 commit b4d209d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arduino.DuinOS/wiring_analog.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,15 @@ void analogWrite(uint8_t pin, int val)
8888
pinMode(pin, OUTPUT);
8989

9090
if (digitalPinToTimer(pin) == TIMER1A) {
91-
/* Because DuinOS uses the timer 1 for its kernel, disable this part:
9291
// connect pwm to pin on timer 1, channel A
9392
sbi(TCCR1A, COM1A1);
9493
// set pwm duty
9594
OCR1A = val;
96-
*/
9795
} else if (digitalPinToTimer(pin) == TIMER1B) {
98-
/* Because DuinOS uses the timer 1 for its kernel, disable this part:
9996
// connect pwm to pin on timer 1, channel B
10097
sbi(TCCR1A, COM1B1);
10198
// set pwm duty
10299
OCR1B = val;
103-
*/
104100
#if defined(__AVR_ATmega8__)
105101
} else if (digitalPinToTimer(pin) == TIMER2) {
106102
// connect pwm to pin on timer 2, channel B

0 commit comments

Comments
 (0)