File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -424,8 +424,8 @@ impl Hardware {
424424 /// Give the device 10us when we do a retry.
425425 const SPI_RETRY_CPU_CLOCKS : u32 = 10_000 / Self :: NS_PER_CLOCK_CYCLE ;
426426
427- /// Give the BMC 4us to calculate its response
428- const BMC_REQUEST_RESPONSE_DELAY_CLOCKS : u32 = 4_000 / Self :: NS_PER_CLOCK_CYCLE ;
427+ /// Give the BMC 6us to calculate its response
428+ const BMC_REQUEST_RESPONSE_DELAY_CLOCKS : u32 = 6_000 / Self :: NS_PER_CLOCK_CYCLE ;
429429
430430 /// Data Direction Register A on the MCP23S17
431431 const MCP23S17_DDRA : u8 = 0x00 ;
@@ -607,11 +607,11 @@ impl Hardware {
607607 // CLK falling edge, and we sample the CIPO pin on the CLK rising
608608 // edge.
609609
610- // Set SPI up for 2 MHz clock, 8 data bits.
610+ // Set SPI up for 4 MHz clock, 8 data bits.
611611 spi_bus : hal:: Spi :: new ( spi) . init (
612612 resets,
613613 clocks. peripheral_clock . freq ( ) ,
614- 2_000_000 . Hz ( ) ,
614+ 4_000_000 . Hz ( ) ,
615615 & embedded_hal:: spi:: MODE_0 ,
616616 ) ,
617617 delay,
You can’t perform that action at this time.
0 commit comments