Project

General

Profile

Revision 1392

Minor documentation improvements

View differences:

trunk/code/projects/libdragonfly/lights.c
385 385

  
386 386
static void apply_orbs (void) {
387 387
	/*
388
	 * Some timing tests: Time for apply_orbs with interrupts disabled, in us:
388
	 * Some timing tests: Time for apply_orbs with interrupts disabled, in microseconds:
389 389
     *             Values in:     Correct order      Reverse order
390 390
     * Naive bubble sort:         148                217
391 391
     * Aborting bubble sort:       71                232
......
675 675
    
676 676
    // Normal mode, Compare match output off, Prescaler
677 677
    TCCR0=_BV(CS02) | _BV(CS01); // 256, 120 Hz
678
	// The next higher prescaler would be 1024 (30 Hz) which makes the orbs flicker visibly.
678 679

  
679 680
    // Enable the interrupts
680 681
    TIMSK|= _BV(OCIE0) | _BV(TOIE0);

Also available in: Unified diff