Added comment reference. master
authorJ. Hendrix <gitweb@localhost>
Thu, 13 Mar 2014 07:19:00 +0000 (08:19 +0100)
committerJ. Hendrix <gitweb@localhost>
Thu, 13 Mar 2014 07:19:00 +0000 (08:19 +0100)
millisecondInterrupt.ino

index bced407..61850ac 100644 (file)
@@ -53,6 +53,7 @@ ISR( TIMER2_COMPA_vect ) {
 /*
  * This function ensures that a volatile variable can be read from memory without being interrupted.
  * If the variable is updated in ISR while the loop is retrieving the bytes from SRAM, the value read can get corrupted.
+ * http://arduino.stackexchange.com/questions/707/high-precision-timing-on-arduino-for-serial-communication/713?noredirect=1#comment1310_713
  * http://electronics.stackexchange.com/questions/102699/reading-a-multibyte-volatile-variable-that-is-updated-in-an-isr/102710?noredirect=1#comment202192_1027101
  */ 
 inline uint32_t atomic_int32 ( volatile uint32_t *var )