vbextreme
ccb832c224
fix delay/yield on avr, if function called by yield takes more a millisecond the delay fails
2015-12-27 14:50:56 +01:00
Nico
b53611a0d1
Removed not needed Timer warning
...
Timer is declared above, so nothing is missing here.
2015-09-28 16:30:40 +02:00
Nico
5ab6edb114
Removed Timer warnings when Timer 2 is not present
2015-09-28 16:30:40 +02:00
Federico Fissore
37c29845f6
Removed a handful of SVN expansion keywords. See #277
2015-07-03 10:38:07 +02:00
Cristian Maglie
335d7b37ef
Indent fix.
2015-05-22 17:23:46 +02:00
Cano
04d34da55f
zero delay fix, ADC prescaler fix
2015-05-22 17:23:46 +02:00
Cano
d3ba34d3a1
delayMicroseconds(): added support for 1Mhz, 12Mhz and 24Mhz
...
1Mhz is a default clock speed on Atmega328, many users run it on the
internal 1Mhz clock to save battery power. Up until now
delayMicroseconds() function wasn't taking this frequencies into an
account.
2015-05-22 17:23:45 +02:00
Cristian Maglie
ee90e68e86
Merged 1.0.5
...
Merge remote-tracking branch 'arduino/master' into ide-1.5.x
Conflicts:
app/src/processing/app/Base.java
build/shared/revisions.txt
hardware/arduino/avr/cores/arduino/malloc.c
hardware/arduino/cores/arduino/avr-libc/malloc.c
hardware/arduino/cores/arduino/malloc.c
todo.txt
2013-04-03 13:51:04 +02:00
Cristian Maglie
ab41589c2b
Removed deprecated interrupt handlers
...
Fixes #831 #881 #955 #1123 #1140
2013-03-29 14:41:36 +01:00
Cristian Maglie
69aead513d
Added general yield()-hook for cooperative scheduling development (part 2)
2012-11-02 18:12:21 +01: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
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
David A. Mellis
aae9972a2b
Fixing delayMicroseconds() timing for 20 MHz clocks. (Erdem U. Altinyurt)
...
http://code.google.com/p/arduino/issues/detail?id=306
2011-12-02 17:04:20 -05:00
David A. Mellis
d3fa070d10
Lowering timer 1 prescale factor (to 8 from 64) for F_CPU less than 8 MHz.
...
Otherwise, you can see flicker on an LED.
2011-10-21 11:54:11 -04:00
David A. Mellis
e0c524b057
Using alternate timer 0 overflow interrupt signal name for ATtiny24/44/84.
2011-09-30 11:24:44 -04:00
David A. Mellis
bc416b14bd
Moving TCCR1B reset into #ifdef check.
2011-03-06 11:29:35 -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
6106779cc1
Fixing PWM on pins 9 & 10 on the Uno.
...
Resetting TCCR1B to 0 after it's configured by optiboot.
http://code.google.com/p/arduino/issues/detail?id=364
2010-10-02 13:38:10 -04:00
David A. Mellis
f9a3b5cfa9
1280 -> 1280/2560.
2010-09-08 22:33:33 +00:00
David A. Mellis
67c0a1995a
More accurate delay() function from BenF.
2010-05-25 20:16:15 +00:00
David A. Mellis
7ea4cb39bd
Fixing bug in calling micros() from interrupts: http://code.google.com/p/arduino/issues/detail?id=55
2009-12-18 17:44:08 +00:00
David A. Mellis
78a3d76f6c
No longer disabling interrupts in delayMicroseconds(): http://code.google.com/p/arduino/issues/detail?id=67
2009-12-18 17:04:51 +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
888f15f2a6
Optimizing the timer0 overflow handler (for millis()), based on work by WestFW and help from mikalhart. Increasing precision of math constants.
2009-05-12 10:55:26 +00:00
David A. Mellis
a42326aba2
Adding support for the Arduino Mega (ATmega1280) to the core and bootloader.
2009-03-25 10:50:00 +00:00
David A. Mellis
7a5a603042
Fixing delay() to delay at least N milliseconds.
...
Fixing register name in micros() for ATmega8.
2008-12-23 00:17:14 +00:00
David A. Mellis
051eb371a6
Adding micros() function.
2008-11-26 14:14:59 +00:00
David A. Mellis
b2e063e13e
Switching to new signal (interrupt handler) names for compatibility with the ATmega328.
2008-11-08 21:31:55 +00:00
David A. Mellis
de4710abc8
Switching tests for __AVR_ATmega168__ to tests for __AVR_ATmega8__ so that less changes are needed to support other processors.
2008-11-01 22:06:13 +00:00
David A. Mellis
6bc00d87b8
Adding ADXL3xx accelerometer example; minor comment changes.
2008-07-02 19:06:27 +00:00
David A. Mellis
e8465fbb45
Fixing millis() overflow: changing millis() and the timer 0 overflow handler so that the millis count is updated in the interrupt, and so we don't need to do a conversion inside millis(). Updated to do list.
2008-04-18 21:56:14 +00:00
David A. Mellis
8d93bbebbd
Adding to the todo list and readme; fixing a bit of indentation.
2008-03-08 22:05:23 +00:00
David A. Mellis
92ba50c7b2
Adding analogReference() function - needs testing on an ATmega8 (but works on the ATmega 168).
2007-12-14 04:21:59 +00:00
David A. Mellis
5f3976696d
Moving hardware/targets to hardware/cores.
2007-10-06 14:47:50 +00:00