Skip to content

Commit

Permalink
clang-format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Jul 27, 2021
1 parent ee9cf9f commit 7de35f1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions RGBmatrixPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,17 +944,17 @@ portEXIT_CRITICAL(&timer_spinlock[TIMER_GROUP_1]);
// up on opportunity for post-increment addressing mode.
// 5 instruction ticks per 'pew' = 160 ticks total
#define pew \
asm volatile("ld __tmp_reg__, %a[ptr]+" \
"\n\t" \
"out %[data] , __tmp_reg__" \
"\n\t" \
"out %[clk] , %[tick]" \
"\n\t" \
"out %[clk] , %[tock]" \
"\n" ::[ptr] "e"(ptr), \
[ data ] "I"(_SFR_IO_ADDR(DATAPORT)), \
[ clk ] "I"(_SFR_IO_ADDR(CLKPORT)), [ tick ] "r"(tick), \
[ tock ] "r"(tock));
asm volatile( \
"ld __tmp_reg__, %a[ptr]+" \
"\n\t" \
"out %[data] , __tmp_reg__" \
"\n\t" \
"out %[clk] , %[tick]" \
"\n\t" \
"out %[clk] , %[tock]" \
"\n" ::[ptr] "e"(ptr), \
[data] "I"(_SFR_IO_ADDR(DATAPORT)), [clk] "I"(_SFR_IO_ADDR(CLKPORT)), \
[tick] "r"(tick), [tock] "r"(tock));
#elif defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_ESP32)
#ifdef __SAMD51__ // No IOBUS on SAMD51
#define pew \
Expand Down

0 comments on commit 7de35f1

Please sign in to comment.