code8825 / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Leonardo pins_arduino.h defects #915

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

Arduino 1.0 with an ATmega32u4

Please provide any additional information below.

As sizeof(digital_pin_to_timer_PGM) and sizeof(analog_pin_to_channel_PGM) do 
not work, getting the number of digital and analog pins requires a macro or 
constant. The original Arduino "pins_arduino.h" provided NUM_DIGITAL_PINS and 
NUM_ANALOG_INPUTS, but the Leonardo version does not.

Additionally, the PWM timer mapping does not extend to all digital pins, which 
can lead to undefined behavior (for D15 or higher).

See https://github.com/arduino/Arduino/pull/82 for a fix.

Original issue reported on code.google.com by justin.r...@gmail.com on 15 May 2012 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 5 Sep 2012 at 2:19

GoogleCodeExporter commented 9 years ago
fixed thanks

https://github.com/arduino/Arduino/commit/554c211ec4a4eb02e665badce62f493c0c1a84
8b

Original comment by c.mag...@bug.st on 30 Nov 2012 at 2:18