Merge pull request #11813 from yarbcy/pr/arm-issue-11795

Fix ARM issue 11795: - Cypress: SPI FPGA test: tester always respond …
pull/11833/head
Martin Kojtal 2019-11-06 11:10:38 +01:00 committed by GitHub
commit b26f41202e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -169,9 +169,9 @@ static cy_en_scb_spi_sclk_mode_t cyhal_convert_mode_sclk(cyhal_spi_mode_t mode)
case 0: case 0:
return (CY_SCB_SPI_CPHA0_CPOL0); return (CY_SCB_SPI_CPHA0_CPOL0);
case 1: case 1:
return (CY_SCB_SPI_CPHA0_CPOL1);
case 2:
return (CY_SCB_SPI_CPHA1_CPOL0); return (CY_SCB_SPI_CPHA1_CPOL0);
case 2:
return (CY_SCB_SPI_CPHA0_CPOL1);
case 3: case 3:
return (CY_SCB_SPI_CPHA1_CPOL1); return (CY_SCB_SPI_CPHA1_CPOL1);
default: default: