Skip to content

Commit 0778700

Browse files
author
Mark Sproul
committed
Changed from cpu #ifdefs to register #ifdefs
1 parent 7aed6f3 commit 0778700

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

hardware/arduino/cores/arduino/wiring_analog.c

100755100644
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,22 @@
2121
2222
$Id: wiring.c 248 2007-02-03 15:36:30Z mellis $
2323
*/
24+
//*******************************************************************************************
25+
//* Jul 27, 2010 <MLS> = Mark Sproul msproul-at-skychariot.com
26+
//* Jul 27, 2010 <MLS> Rewrite of analogWrite to better support various cpus
27+
//* Jul 27, 2010 <MLS> Refactoring analogWrite() to test for register, not cpu, definitions.
28+
//* Jul 28, 2010 <MLS> submited enhancment request #307
29+
//* Aug 3, 2010 <MLS> improved the #ifdefs, now compiles for atmega645
30+
//* Sep 5, 2010 <MLS> V0019 was released, migrated changes into 0019
31+
//* Sep 28, 2010 <MLS> V0020 was released, migrated changes into 0020
32+
//*******************************************************************************************
2433

2534
#include "wiring_private.h"
2635
#include "pins_arduino.h"
2736

2837
uint8_t analog_reference = DEFAULT;
2938

39+
//*********************************************************************
3040
void analogReference(uint8_t mode)
3141
{
3242
// can't actually set the register here because the default setting

0 commit comments

Comments
 (0)