From ff9bb8dd14ee7c4e2ee50f9a0957d0a37d0de430 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 8 Mar 2008 22:05:23 +0000 Subject: [PATCH] Adding to the todo list and readme; fixing a bit of indentation. --- hardware/cores/arduino/wiring.c | 16 ++++++++-------- readme.txt | 4 +++- todo.txt | 8 +++++++- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/hardware/cores/arduino/wiring.c b/hardware/cores/arduino/wiring.c index ae8fcdd16..dd07a5f8d 100755 --- a/hardware/cores/arduino/wiring.c +++ b/hardware/cores/arduino/wiring.c @@ -66,7 +66,7 @@ void delayMicroseconds(unsigned int us) //delay_us(us); #if F_CPU >= 16000000L - // for the 16 MHz clock on most Arduino boards + // for the 16 MHz clock on most Arduino boards // for a one-microsecond delay, simply return. the overhead // of the function call yields a delay of approximately 1 1/8 us. @@ -81,11 +81,11 @@ void delayMicroseconds(unsigned int us) // account for the time taken in the preceeding commands. us -= 2; #else - // for the 8 MHz internal clock on the ATmega168 + // for the 8 MHz internal clock on the ATmega168 - // for a one- or two-microsecond delay, simply return. the overhead of - // the function calls takes more than two microseconds. can't just - // subtract two, since us is unsigned; we'd overflow. + // for a one- or two-microsecond delay, simply return. the overhead of + // the function calls takes more than two microseconds. can't just + // subtract two, since us is unsigned; we'd overflow. if (--us == 0) return; if (--us == 0) @@ -96,9 +96,9 @@ void delayMicroseconds(unsigned int us) // delay requested. us <<= 1; - // partially compensate for the time taken by the preceeding commands. - // we can't subtract any more than this or we'd overflow w/ small delays. - us--; + // partially compensate for the time taken by the preceeding commands. + // we can't subtract any more than this or we'd overflow w/ small delays. + us--; #endif // disable interrupts, otherwise the timer 0 overflow interrupt that diff --git a/readme.txt b/readme.txt index 10c9e211c..10942d2d0 100644 --- a/readme.txt +++ b/readme.txt @@ -53,12 +53,14 @@ UPDATES * Added analogReference() function. * Added interrupts() and noInterrupts() functions. * Added degrees() and radians() functions. +* Added timeout parameter (in microseconds) to pulseIn(); default is 1 second. * Support for uploading sketch using a programmer (upload.using preference). * Improved detection of functions that need prototyping. * Placing function prototypes after #include's and #define's. * No longer moving #include statements to the top of the sketch. * Including a working version of the Firmata firmware. -* Can now drag .pde files onto the Arduino dock icon. +* Can now drag .pde files onto the Arduino dock icon on Mac OS X. + Thanks to Peter Sgouros. * New script for downloading the reference from Tom Pollard. Thanks Tom! * Miscellaneous Mac OS X and other patches from Wim Lewis. Thanks Wim! diff --git a/todo.txt b/todo.txt index 0663df9a5..a96da5bd0 100644 --- a/todo.txt +++ b/todo.txt @@ -9,7 +9,10 @@ Improve preprocessing of sketches: - [done] Don't move #include statements. - [done] Better determine which functions need prototypes Update version of the FTDI drivers (Windows). -Add timeout parameter to pulseIn(). +Move AVR ISP and giveio drivers elsewhere (Windows). +Add #defines for the analog input pins. +Deal with shorter screens (e.g. ASUS EEPC). +[done] Add timeout parameter to pulseIn(). [done] Update version of the FTDI drivers (Mac). [done] Allow disabling of serial flushing before upload (for the Arduino BT). [done] Modify parallel port programmer burning (add -F, lower or remove delay). @@ -30,6 +33,8 @@ Incorporate ladyada's new SoftwareSerial library. Good way to receive multiple values / complex messages over the serial port. Floating point support in the map() function. Consider moving millis() to timer 1, and configuring it so the interrupt is generated once a millisecond. +Fix millis() so it overflows on a nice variable-size boundary. +Fix delayMicroseconds(0). Add sleep function(s). Add SPI library. Add pulseOut(), etc. functions from Wiring. @@ -44,6 +49,7 @@ Include Arduino as AVR-ISP sketch in hardware/firmwares. COMPUTER +Multiple sketch windows. Easier library discovery and installation. Easier board installation. Clean up Library and LibraryManager.