Skip to content

Commit fd76f44

Browse files
fix(PeriphDrivers): Fix clock speed configuration of SPI3 for MAX32650 (#1566)
MAX32650 SPI driver assumes the SPI3 peripheral clock is twice the frequency as other SPI instances even though there is no such indication in the user guide.
1 parent 1452bdd commit fd76f44

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Libraries/PeriphDrivers/Source/SPI/spi_me10.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ int MXC_SPI_ReadyForSleep(mxc_spi_regs_t *spi)
123123
/* ************************************************************************ */
124124
int MXC_SPI_GetPeripheralClock(mxc_spi_regs_t *spi)
125125
{
126-
if (MXC_SPI_GET_IDX(spi) == 3) {
127-
return PeripheralClock * 2;
128-
} else if (MXC_SPI_GET_IDX(spi) != -1) {
126+
if (MXC_SPI_GET_IDX(spi) != -1) {
129127
return PeripheralClock;
130128
} else {
131129
return E_BAD_PARAM;

0 commit comments

Comments
 (0)