Skip to content

Commit

Permalink
Fix DUE parallel output when there are fewer than 8 lanes.
Browse files Browse the repository at this point in the history
  • Loading branch information
focalintent committed Oct 18, 2016
1 parent 32bae8e commit 1be6dca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions platforms/arm/sam/clockless_block_arm_sam.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ class InlineBlockClocklessController : public CPixelLEDController<RGB_ORDER, LAN
}

for(uint32_t i = LANES; i < 8; i++) {
while(DUE_TIMER_VAL > next_mark);

next_mark = DUE_TIMER_VAL - (TOTAL-3);
while(DUE_TIMER_VAL < next_mark);
next_mark = (DUE_TIMER_VAL+TOTAL);
*FastPin<FIRST_PIN>::sport() = PORT_MASK;

while((next_mark - DUE_TIMER_VAL) > (T2+T3+6));
Expand Down

0 comments on commit 1be6dca

Please sign in to comment.