mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
HAL_ChibiOS: show all SPI clocks
This commit is contained in:
parent
243abe8751
commit
a7c91d1cb4
@ -398,8 +398,11 @@ void SPIDevice::test_clock_freq(void)
|
||||
hal.scheduler->delay(1000);
|
||||
hal.console->printf("Waiting %u\n", AP_HAL::millis());
|
||||
}
|
||||
hal.console->printf("SPI1_CLOCK=%u SPI2_CLOCK=%u SPI3_CLOCK=%u SPI4_CLOCK=%u\n",
|
||||
SPI1_CLOCK, SPI2_CLOCK, SPI3_CLOCK, SPI4_CLOCK);
|
||||
hal.console->printf("CLOCKS=\n");
|
||||
for (uint8_t i=0; i<ARRAY_SIZE(bus_clocks); i++) {
|
||||
hal.console->printf("%u:%u ", i+1, bus_clocks[i]);
|
||||
}
|
||||
hal.console->printf("\n");
|
||||
|
||||
// we will send 1024 bytes without any CS asserted and measure the
|
||||
// time it takes to do the transfer
|
||||
|
Loading…
Reference in New Issue
Block a user