Commit Graph

29 Commits

Author SHA1 Message Date
Federico Fissore 37c29845f6 Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
Matthijs Kooijman 3a48c9240d Support TIMER1C
Some devices, such as the atmega2560 or the atmega256rfr2 have a timer1c
output. It seems this output is not connected to anything on the Arduino
Mega, but this allows using it on third party hardware nonetheless.
2014-05-16 18:57:04 +02:00
Cristian Maglie 40b622a5d1 Merge branch 'issue1366' of github.com:Lauszus/Arduino into Lauszus-issue1366 2013-07-31 17:22:12 +02:00
Kristian Sloth Lauszus 8d7deb7a1f Removed double instance of the same code 2013-05-02 01:00:17 +02:00
Kristian Sloth Lauszus 0a7b402c45 Check if ATmega32u4 is defined
Needed in order to work with Arduino Leonardo
2013-04-18 00:15:06 +02:00
Kristian Sloth Lauszus 8d26462be2 Removed call to analogPinToChannel for Leonardo 2013-04-18 00:07:33 +02:00
Kristian Sloth Lauszus b9717187fd Use analogPinToChannel if it's defined 2013-04-17 19:49:40 +02:00
Kristian Sloth Lauszus ed42d95412 Added support for all variants of Sanguino 2013-04-04 20:55:15 +02:00
David A. Mellis aa218e803a Use analogPinToChannel() macro if present for ATtiny25/45/85.
This allows use of A0, A1, A2, A3 constants and for them to be mapped to the appropriate analog input channel. It should only be used if the macro is actually defined.
2013-03-06 17:49:44 -05:00
David A. Mellis 6d296e0fab Adding ATmega644P check to ATmega1284P check. 2012-10-09 13:53:09 -04:00
Zach Eveland 6ae1a17235 bugfix for configuring PWM on D6 and D13 too early. (thanks to Limor Fried)
was starting PWM on these pins too soon - in init() instead of when analogWrite() was called.  as a result doing output on port registers directly failed.
2012-04-19 15:52:16 -04:00
Zach Eveland 56ddc4637d bugfix for boards with a timer 4 but no channel D
compilation failed for Mega because the COM4D1 and OCR4D registers are defined for 32U4 but not for Mega
2012-04-19 15:46:32 -04:00
Zach Eveland 74863e4bdf Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
Conflicts:
	.gitignore
2012-03-03 13:28:39 -05:00
David A. Mellis 4fade7007f Small changes for the ATmega1284.
http://code.google.com/p/arduino/issues/detail?id=736
2012-03-02 18:58:53 -05:00
Zach Eveland 177641003c fixed digitalWrite on timer 4 pins (D6 and D13) 2011-12-18 14:18:38 -05:00
Zach Eveland c58fcf5554 fixed TIMER4 use on Leonardo
ATMEGA32U4 has major differences in TIMER4 registers compared to ATMEGA1280 and 2560.  turnOffPWM, analogWrite, and initialize routines had wrong registers, bit names, etc.
2011-12-11 19:56:50 -05:00
Zach Eveland 3c60b1e54f Fixed handling of Ax constants on Leonardo
Fixed mistake in assignment and handling of A6-A11 constants.  Renumbered constants for all Ax channels.
2011-11-16 10:49:41 -05:00
Zach Eveland 5bbe2a63e4 added support for TIMER4D used for PWM on Leonardo and Micro D6 2011-09-16 16:36:42 -04:00
Zach Eveland d0b0f3e45d fixed analog pin mapping for 32u4 2011-09-13 23:52:26 -04:00
David A. Mellis 63515122ca Revert "Adding noAnalogWrite() function to disable PWM."
This reverts commit 38d4a34fec6925b29a732d13e200f54ee4b42025.
2011-02-18 10:40:56 -05:00
David A. Mellis cd050d05d1 Adding noAnalogWrite() function to disable PWM.
Also, removing the inline version of digitalPinToTimer() (since we're not optimizing the functions that use it anyway).  The noAnalogWrite() function is in wiring_analog.c, deriving from the previous turnOffPWM() which has moved from wiring_digital.c.

http://code.google.com/p/arduino/issues/detail?id=476
2011-02-12 14:47:08 -05:00
David A. Mellis a4afb42b08 Modifying basic functions (digital and analog, read and write) to use register-based ifdefs, not cpu-based.
http://code.google.com/p/arduino/issues/detail?id=307
http://code.google.com/p/arduino/issues/detail?id=316
http://code.google.com/p/arduino/issues/detail?id=323
http://code.google.com/p/arduino/issues/detail?id=324
2010-10-17 17:55:53 -04:00
David A. Mellis f9a3b5cfa9 1280 -> 1280/2560. 2010-09-08 22:33:33 +00:00
David A. Mellis 04475f4bfe Adding A0=14, A1=15, etc. aliases for analog input pins and modifying analogRead() to accept them (in addition to 0, 1, 2, etc.). Removing some unused code elsewhere. 2010-05-16 04:05:40 +00:00
David A. Mellis 35f5f6e99f Improving third-party hardware support:
- moving back to multple cores per platform
- using target instead of platform
- moving per-board and per-programmer preferences out of Preferences.java and into a new Target class
- adding a new "target" preference
- support for platform:value values in board preferences for bootloader path and core
- XXX: need to support platform:value syntax for board upload.using preferences.
2009-11-21 23:23:43 +00:00
David A. Mellis 584dece7b0 Moving things around. 2009-11-07 17:05:21 +00:00
David A. Mellis 76737d4e28 Undoing revision 628 because it broke analogRead() on analog inputs 8 to 15 of the Arduino Mega. 2009-08-23 20:59:47 +00:00
David A. Mellis a0ba08b4f4 Changing analog read channel mask from 0x07 to 0x0f to allow for reading of the temperature and other extended channels. 2009-06-15 19:40:47 +00:00
David A. Mellis db605dd18b First integration of the Arduino code in Processing 5503: PreProcessor and Compiler have been integrated with changes to the Sketch.
Compilation still has problems (Thread error on success, and can't handle non-pde files in a sketch).
Modified the Mac OS X make.sh to copy the hardware, avr tools, and example over.
Removing some of the antlr stuff.  
Disabling the Commander (command-line execution) for now.
Added Library, LibraryManager, and Target.
Added support for prefixed preferences (e.g. for boards and programmers).
2009-06-01 08:32:11 +00:00