Skip to content

Commit fe91262

Browse files
author
yarb
committed
Fix ARM issue 11795: - Cypress: SPI FPGA test: tester always respond 0 when MODE other then 0 (CY MR 1202)
1 parent db0df6b commit fe91262

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/src

1 file changed

+2
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/src/cyhal_spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ static cy_en_scb_spi_sclk_mode_t cyhal_convert_mode_sclk(cyhal_spi_mode_t mode)
169169
case 0:
170170
return (CY_SCB_SPI_CPHA0_CPOL0);
171171
case 1:
172-
return (CY_SCB_SPI_CPHA0_CPOL1);
173-
case 2:
174172
return (CY_SCB_SPI_CPHA1_CPOL0);
173+
case 2:
174+
return (CY_SCB_SPI_CPHA0_CPOL1);
175175
case 3:
176176
return (CY_SCB_SPI_CPHA1_CPOL1);
177177
default:

0 commit comments

Comments
 (0)