Skip to content

Commit

Permalink
add note about pending work on SPI mode bits when activating device
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Nov 16, 2020
1 parent 6c97f67 commit 4016232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/pins/spi/gecko/modSPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ void modSPIActivateConfiguration(modSPIConfiguration config)
if (gConfig) {
// USART1->CLKDIV = config->clkdiv;
USART_BaudrateSyncSet(SPI_USART, 0, config->hz);
// @@ if there is more than one SPI device and they don't all use the same mode,
// the mode needs to be updated here (clockMode bits in usart->CTRL)
(gConfig->doChipSelect)(1, gConfig);
}
}
Expand Down

0 comments on commit 4016232

Please sign in to comment.