Skip to content

Commit 1fd7b1a

Browse files
committed
Run astyle on all FPGA files
Run astyle to correct formatting.
1 parent 11bd966 commit 1fd7b1a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/MbedTester.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ bool MbedTester::firmware_dump(mbed::FileHandle *dest, mbed::Callback<void(uint8
649649

650650
// Mapping intentionally different from control channel to prevent
651651
// unintentional activation (clk and mosi flipped)
652-
MbedTesterBlockDevice flash(*_clk, *_miso , *_mosi, *_aux, FLASH_SPI_FREQ_HZ);
653-
sys_pin_mode_spi_serial_flash(_clk_index , _miso_index, _mosi_index, _aux_index);
652+
MbedTesterBlockDevice flash(*_clk, *_miso, *_mosi, *_aux, FLASH_SPI_FREQ_HZ);
653+
sys_pin_mode_spi_serial_flash(_clk_index, _miso_index, _mosi_index, _aux_index);
654654

655655
progress(0);
656656

@@ -709,8 +709,8 @@ bool MbedTester::firmware_dump(mbed::FileHandle *dest, mbed::Callback<void(uint8
709709

710710
const uint8_t percent_done = (offset * 100) / firmware_size;
711711
if (percent_done != prev_percent_done) {
712-
progress(percent_done);
713-
prev_percent_done = percent_done;
712+
progress(percent_done);
713+
prev_percent_done = percent_done;
714714
}
715715
}
716716

@@ -730,8 +730,8 @@ bool MbedTester::firmware_dump_all(mbed::FileHandle *dest, mbed::Callback<void(u
730730

731731
// Mapping intentionally different from control channel to prevent
732732
// unintentional activation (clk and mosi flipped)
733-
MbedTesterBlockDevice flash(*_clk, *_miso , *_mosi, *_aux, FLASH_SPI_FREQ_HZ);
734-
sys_pin_mode_spi_serial_flash(_clk_index , _miso_index, _mosi_index, _aux_index);
733+
MbedTesterBlockDevice flash(*_clk, *_miso, *_mosi, *_aux, FLASH_SPI_FREQ_HZ);
734+
sys_pin_mode_spi_serial_flash(_clk_index, _miso_index, _mosi_index, _aux_index);
735735

736736
progress(0);
737737

@@ -762,8 +762,8 @@ bool MbedTester::firmware_dump_all(mbed::FileHandle *dest, mbed::Callback<void(u
762762

763763
const uint8_t percent_done = (pos * 100) / total_size;
764764
if (percent_done != prev_percent_done) {
765-
progress(percent_done);
766-
prev_percent_done = percent_done;
765+
progress(percent_done);
766+
prev_percent_done = percent_done;
767767
}
768768
}
769769

@@ -783,8 +783,8 @@ bool MbedTester::firmware_update(mbed::FileHandle *src, mbed::Callback<void(uint
783783

784784
// Mapping intentionally different from control channel to prevent
785785
// unintentional activation (clk and mosi flipped)
786-
MbedTesterBlockDevice flash(*_clk, *_miso , *_mosi, *_aux, FLASH_SPI_FREQ_HZ);
787-
sys_pin_mode_spi_serial_flash(_clk_index , _miso_index, _mosi_index, _aux_index);
786+
MbedTesterBlockDevice flash(*_clk, *_miso, *_mosi, *_aux, FLASH_SPI_FREQ_HZ);
787+
sys_pin_mode_spi_serial_flash(_clk_index, _miso_index, _mosi_index, _aux_index);
788788

789789
progress(0);
790790

components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/UARTTester.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void UARTTester::set_stops(uint8_t stop_bits)
4343
void UARTTester::set_parity(bool enable, bool odd_n_even)
4444
{
4545
uint8_t parity = (enable ? TESTER_UART_PARITY_ENABLE : 0) |
46-
(odd_n_even ? TESTER_UART_PARITY_ODD_N_EVEN : 0);
46+
(odd_n_even ? TESTER_UART_PARITY_ODD_N_EVEN : 0);
4747
write(TESTER_UART_PARITY, &parity, sizeof(parity));
4848
}
4949

0 commit comments

Comments
 (0)