edward0429 / arduino

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

Move ARDUINO_MAIN to wiring_digital, to allow override of main() #691

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What change would like to see?

The code in pins_arduino.h should be compiled inside wiring_digital, which 
actually makes use of it.

A lengthy discussion is on the forum:

http://arduino.cc/forum/index.php/topic,74927.30.html

A patch is attached.

Why?

Compiling it into main prevents users from providing their own main() function.

Would this cause any incompatibilities with previous versions?  If so, how
can these be mitigated?

No incompatibility expected.

Original issue reported on code.google.com by paul.sto...@gmail.com on 23 Oct 2011 at 6:32

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 24 Oct 2011 at 5:32

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/f729e0321b864bac6cc52a4adde5f7b059d85c
68

Original comment by dmel...@gmail.com on 24 Oct 2011 at 8:52